Size: 115
Comment:
|
Size: 507
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 5: | Line 5: |
* DateRange | |
Line 6: | Line 7: |
* Data alignment | |
Line 10: | Line 12: |
import pandas as P import Nio hamNc = Nio.open_file('10147-precip.nc') helNc = Nio.open_file('10015-precip.nc') hamTime = hamNc.variables['time'][:] helTime = helNc.variables['time'][:] hamRain = hamNc.variables['rainfall_rate_hour'][:] helRain = helNc.variables['rainfall_rate_hour'][:] ham = hamNc.variables['rainfall_rain_rate'][:] }}} |
Pandas
1 import numpy as np
2 import pandas as P
3 import Nio
4
5 hamNc = Nio.open_file('10147-precip.nc')
6 helNc = Nio.open_file('10015-precip.nc')
7
8 hamTime = hamNc.variables['time'][:]
9 helTime = helNc.variables['time'][:]
10
11 hamRain = hamNc.variables['rainfall_rate_hour'][:]
12 helRain = helNc.variables['rainfall_rate_hour'][:]
13 ham = hamNc.variables['rainfall_rain_rate'][:]