Home | Trees | Indices | Help |
---|
|
object --+ | gribmessage
Grib message object.
Each grib message has attributes corresponding to grib message keys
for GRIB1 and GRIB2. Parameter names are are given by the
name
, shortName
and paramID
keys. pygrib also defines some special attributes which
are defined below under the heading Instance Variables.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
a new object with type S, a subtype of T |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Instance Variables | |
analDate A python datetime instance describing the analysis date and time for the forecast. |
|
expand_reduced If True (default), reduced lat/lon and gaussian grids will be expanded to regular grids when data is accessed via "values" key. |
|
fcstimeunits A string representing the forecast time units (an empty string if not defined). |
|
messagenumber The grib message number in the file. |
|
projparams A dictionary containing proj4 key/value pairs describing the grid. |
|
validDate A python datetime instance describing the valid date and time for the forecast. |
Properties | |
Inherited from |
Method Details |
x.__delattr__('name') <==> del x.name
|
x.__getattribute__('name') <==> x.name
|
access values associated with grib keys. The key "values" will return the data associated with the grib message. The data is returned as a numpy array, or if missing values or a bitmap are present, a numpy masked array. Reduced lat/lon or gaussian grid data is automatically expanded to a regular grid using linear interpolation (nearest neighbor if an adjacent grid point is a missing value). |
x.__init__(...) initializes x; see help(type(x)) for signature
|
|
prints a short inventory of the grib message
|
x.__setattr__('name', value) <==> x.name = value
|
compute lats and lons (in degrees) of grid. Currently handles reg. lat/lon, global gaussian, mercator, stereographic, lambert conformal, albers equal-area, space-view, azimuthal equidistant, reduced gaussian, reduced lat/lon, lambert azimuthal equal-area, rotated lat/lon and rotated gaussian grids.
|
Instance Variable Details |
analDateA python datetime instance describing the analysis date and time for the forecast. Only set if forecastTime and julianDay keys exist. |
expand_reducedIf True (default), reduced lat/lon and gaussian grids will be expanded to regular grids when data is accessed via "values" key. If False, data is kept on unstructured reduced grid, and is returned in a 1-d array. |
projparamsA dictionary containing proj4 key/value pairs describing the grid. Set toNone for unsupported grid types.
|
validDateA python datetime instance describing the valid date and time for the forecast. Only set if forecastTime and julianDay keys exist, and fcstimeunits is defined. If forecast time is a range, thenvalidDate corresponds to the end of the range.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sat Mar 24 14:58:04 2012 | http://epydoc.sourceforge.net |