| 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
|
extract data, lats and lons for a subset region defined by the keywords lat1,lat2,lon1,lon2. The default values of lat1,lat2,lon1,lon2 are None, which means the entire grid is returned. If the grid type is unprojected lat/lon and a geographic subset is requested (by using the lat1,lat2,lon1,lon2 keywords), then 2-d arrays are returned, otherwise 1-d arrays are returned. |
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 Mon Dec 29 14:23:16 2014 | http://epydoc.sourceforge.net |