-
Notifications
You must be signed in to change notification settings - Fork 83
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Hi,
I was wondering if it's possible to use cfgrib to open Stage-IV GRIB rainfall data (downloaded here). I attempted this in Jupyter notebook:
cfgrib.open_dataset('/glade/scratch/doughert/stage_iv/2008/ST4.2008031900.01h')
And received the following error:
EcCodesError: ('Key/value not found (-10).', -10)
During handling of the above exception, another exception occurred:
..
KeyError: 'latitudes
I am guessing this is due to the structure of the Stage-IV data, which is seen by opening the dataset via the usual xarray function:
xr.open_dataset('/glade/scratch/doughert/stage_iv/2008/ST4.2008031900.01h', engine='pynio')
<xarray.Dataset>
Dimensions: (g5_x_0: 881, g5_y_1: 1121)
Coordinates:
g5_lat_0 (g5_x_0, g5_y_1) float32 ...
g5_lon_1 (g5_x_0, g5_y_1) float32 ...
Dimensions without coordinates: g5_x_0, g5_y_1
Data variables:
g5_rot_2 (g5_x_0, g5_y_1) float32 ...
VAR_237_GDS5_SFC_acc1h (g5_x_0, g5_y_1) float32 ...
Where the coordinates and variables aren't the usual "latitude" and "longitude" I've seen in the examples of cfgrib so far. So does this mean this package would be unusable for Stage IV data?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working