Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2012-10-24 13:45:05
Size: 115
Editor: MikhailItkin
Comment:
Revision 4 as of 2012-10-24 15:16:15
Size: 507
Editor: MikhailItkin
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'][:]

LehreWiki: PythonCourse/PythonLES/Pandas (last edited 2012-11-05 10:53:39 by anonymous)