Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading HRRR data at different levels #63

Closed
blaylockbk opened this issue Feb 27, 2019 · 4 comments
Closed

Reading HRRR data at different levels #63

blaylockbk opened this issue Feb 27, 2019 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@blaylockbk
Copy link
Contributor

blaylockbk commented Feb 27, 2019

I am testing cfgrib on Windows to read NOAA's HRRR model output.
Here is an example HRRR file: https://pando-rgw01.chpc.utah.edu/hrrr/sfc/20190227/hrrr.t00z.wrfsfcf08.grib2

I have read this data as follows:

dt = xarray.open_dataset('hrrr.t00z.wrfsfcf08.grib2', engine='cfgrib', backend_kwargs={'filter_by_keys': {'typeOfLevel': 'heightAboveGround', 'stepType': 'instant'}})

HRRR grib files have multiple messages for U and V wind component at heightAboveGround. There is 10-m height and an 80-m height. I see the u10 variable loaded, but not u80.
Below shows the loaded variables:
image

Does the "skipping variable" have anything to do with this when opening a file? This is part of the message when the data was loading...

dt = xarray.open_dataset('hrrr.t00z.wrfsfcf00.grib2', engine='cfgrib', backend_kwargs={'filter_by_keys': {'typeOfLevel': 'heightAboveGround', 'stepType': 'instant'}})
skipping variable: paramId==131 shortName='u'
Traceback (most recent call last):
  File "C:\Users\------\AppData\Local\conda\conda\envs\TEST_cfgrib\lib\site-packages\cfgrib\dataset.py", line 468, in build_dataset_components
    dict_merge(variables, vars)
  File "C:\Users\------\AppData\Local\conda\conda\envs\TEST_cfgrib\lib\site-packages\cfgrib\dataset.py", line 430, in dict_merge
    "key=%r value=%r new_value=%r" % (key, master[key], value))
cfgrib.dataset.DatasetBuildError: key present and new value is different: key='heightAboveGround' value=Variable(dimensions=('heightAboveGround',), data=array([1000, 4000])) new_value=Variable(dimensions=(), data=80)
skipping variable: paramId==132 shortName='v'
Traceback (most recent call last):
  File "C:\Users\------\AppData\Local\conda\conda\envs\TEST_cfgrib\lib\site-packages\cfgrib\dataset.py", line 468, in build_dataset_components
    dict_merge(variables, vars)
  File "C:\Users\------\AppData\Local\conda\conda\envs\TEST_cfgrib\lib\site-packages\cfgrib\dataset.py", line 430, in dict_merge
    "key=%r value=%r new_value=%r" % (key, master[key], value))
cfgrib.dataset.DatasetBuildError: key present and new value is different: key='heightAboveGround' value=Variable(dimensions=('heightAboveGround',), data=array([1000, 4000])) new_value=Variable(dimensions=(), data=80)

(continued with other variables being skipped)

How does one use key filter arguments to get 10-m height and 80-m height when opening the dataset?

Also, the u and v variables don't indicate what level they are for. How can I find out the level for that?
I am also expecting to see variables for gusts at 10-m, reflectivity at 1-km above ground level, etc. For reference, here is a GRIB table for the HRRR files: https://rapidrefresh.noaa.gov/hrrr/GRIB2Table_hrrrncep_2d.txt

@blaylockbk blaylockbk changed the title Reading HRRR data: winds at 10 and 80 meters Reading HRRR data at different levels Feb 27, 2019
@alexamici alexamici self-assigned this Feb 28, 2019
@alexamici alexamici added the bug Something isn't working label Feb 28, 2019
@alexamici
Copy link
Contributor

Note that this is connected to, but different from #66. In this case the additional bug is that we lose the information about single value coordinates.

@alexamici
Copy link
Contributor

@blaylockbk what you are seeing are really a number of bugs:

  1. in some cases variable declared skipped were not really skipped,
  2. when ecCodes assigns the same cfVarName to different variables (u and u80 in the file above) cfgrib ended up overwriting one with the other,
  3. not all variables can be extracted using filter_by_keys.

Current branch stable/0.9.6.x should solve 1. and 2. As to what you can do regarding 3. here are some examples (working in the stable/0.9.6.x branch):

>>> import xarray as xr
>>> xr.open_dataset('hrrr.t00z.wrfsfcf08.grib2', engine='cfgrib', backend_kwargs=dict(filter_by_keys={'typeOfLevel': 'heightAboveGround', 'level': 2}))
<xarray.Dataset>
Dimensions:            (x: 1799, y: 1059)
Coordinates:
    time               datetime64[ns] ...
    step               timedelta64[ns] ...
    heightAboveGround  int64 ...
    latitude           (y, x) float64 ...
    longitude          (y, x) float64 ...
    valid_time         datetime64[ns] ...
Dimensions without coordinates: x, y
Data variables:
    t2m                (y, x) float32 ...
    pt                 (y, x) float32 ...
    q                  (y, x) float32 ...
    d2m                (y, x) float32 ...
    r2                 (y, x) float32 ...
Attributes:
    GRIB_edition:            2
    GRIB_centre:             kwbc
    GRIB_centreDescription:  US National Weather Service - NCEP 
    GRIB_subCentre:          0
    Conventions:             CF-1.7
    institution:             US National Weather Service - NCEP 
    history:                 2019-04-11T23:08:59 GRIB to CDM+CF via cfgrib-0....
>>> xr.open_dataset('hrrr.t00z.wrfsfcf08.grib2', engine='cfgrib', backend_kwargs=dict(filter_by_keys={'typeOfLevel': 'heightAboveGround', 'level': 10}))
<xarray.Dataset>
Dimensions:            (x: 1799, y: 1059)
Coordinates:
    time               datetime64[ns] ...
    step               timedelta64[ns] ...
    heightAboveGround  int64 ...
    latitude           (y, x) float64 ...
    longitude          (y, x) float64 ...
    valid_time         datetime64[ns] ...
Dimensions without coordinates: x, y
Data variables:
    u10                (y, x) float32 ...
    v10                (y, x) float32 ...
    si10               (y, x) float32 ...
    unknown            (y, x) float32 ...
Attributes:
    GRIB_edition:            2
    GRIB_centre:             kwbc
    GRIB_centreDescription:  US National Weather Service - NCEP 
    GRIB_subCentre:          0
    Conventions:             CF-1.7
    institution:             US National Weather Service - NCEP 
    history:                 2019-04-11T23:09:27 GRIB to CDM+CF via cfgrib-0....
>>> xr.open_dataset('hrrr.t00z.wrfsfcf08.grib2', engine='cfgrib', backend_kwargs=dict(filter_by_keys={'typeOfLevel': 'heightAboveGround', 'level': 80}))
<xarray.Dataset>
Dimensions:            (x: 1799, y: 1059)
Coordinates:
    time               datetime64[ns] ...
    step               timedelta64[ns] ...
    heightAboveGround  int64 ...
    latitude           (y, x) float64 ...
    longitude          (y, x) float64 ...
    valid_time         datetime64[ns] ...
Dimensions without coordinates: x, y
Data variables:
    u                  (y, x) float32 ...
    v                  (y, x) float32 ...
Attributes:
    GRIB_edition:            2
    GRIB_centre:             kwbc
    GRIB_centreDescription:  US National Weather Service - NCEP 
    GRIB_subCentre:          0
    Conventions:             CF-1.7
    institution:             US National Weather Service - NCEP 
    history:                 2019-04-11T23:09:15 GRIB to CDM+CF via cfgrib-0....

@alexamici
Copy link
Contributor

@blaylockbk using the new heuristic for cfgrib.open_datasets introduced with version 0.9.7 you should get all, or almost all, variable correctly.

Please open a new issue if you still find that some variable is not usable.

>>> import cfgrib
>>> cfgrib.open_datasets('hrrr.t00z.wrfsfcf08.grib2')
[<xarray.Dataset>
 Dimensions:                (x: 1799, y: 1059)
 Coordinates:
     time                   datetime64[ns] 2019-02-27
     step                   timedelta64[ns] 08:00:00
     adiabaticCondensation  int64 0
     latitude               (y, x) float64 ...
     longitude              (y, x) float64 ...
     valid_time             datetime64[ns] ...
 Dimensions without coordinates: x, y
 Data variables:
     gh                     (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:     (x: 1799, y: 1059)
 Coordinates:
     time        datetime64[ns] 2019-02-27
     step        timedelta64[ns] 08:00:00
     atmosphere  int64 0
     latitude    (y, x) float64 21.14 21.15 21.15 21.16 ... 47.86 47.85 47.84
     longitude   (y, x) float64 237.3 237.3 237.3 237.4 ... 299.0 299.0 299.1
     valid_time  datetime64[ns] 2019-02-27T08:00:00
 Dimensions without coordinates: x, y
 Data variables:
     unknown     (y, x) float32 ...
     tcc         (y, x) float32 ...
     hail        (y, x) float32 ...
     veril       (y, x) float32 ...
     refc        (y, x) float32 ...
     ltng        (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:     (x: 1799, y: 1059)
 Coordinates:
     time        datetime64[ns] 2019-02-27
     step        timedelta64[ns] 08:00:00
     cloudBase   int64 0
     latitude    (y, x) float64 21.14 21.15 21.15 21.16 ... 47.86 47.85 47.84
     longitude   (y, x) float64 237.3 237.3 237.3 237.4 ... 299.0 299.0 299.1
     valid_time  datetime64[ns] 2019-02-27T08:00:00
 Dimensions without coordinates: x, y
 Data variables:
     pres        (y, x) float32 ...
     gh          (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:     (x: 1799, y: 1059)
 Coordinates:
     time        datetime64[ns] 2019-02-27
     step        timedelta64[ns] 08:00:00
     cloudTop    int64 0
     latitude    (y, x) float64 21.14 21.15 21.15 21.16 ... 47.86 47.85 47.84
     longitude   (y, x) float64 237.3 237.3 237.3 237.4 ... 299.0 299.0 299.1
     valid_time  datetime64[ns] 2019-02-27T08:00:00
 Dimensions without coordinates: x, y
 Data variables:
     unknown     (y, x) float32 ...
     pres        (y, x) float32 ...
     gh          (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:         (x: 1799, y: 1059)
 Coordinates:
     time            datetime64[ns] 2019-02-27
     step            timedelta64[ns] 08:00:00
     depthBelowLand  int64 0
     latitude        (y, x) float64 ...
     longitude       (y, x) float64 ...
     valid_time      datetime64[ns] ...
 Dimensions without coordinates: x, y
 Data variables:
     mstav           (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:            (heightAboveGround: 2, x: 1799, y: 1059)
 Coordinates:
     time               datetime64[ns] 2019-02-27
     step               timedelta64[ns] 08:00:00
   * heightAboveGround  (heightAboveGround) int64 10 1000
     latitude           (y, x) float64 ...
     longitude          (y, x) float64 ...
     valid_time         datetime64[ns] ...
 Dimensions without coordinates: x, y
 Data variables:
     unknown            (heightAboveGround, y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:            (x: 1799, y: 1059)
 Coordinates:
     time               datetime64[ns] 2019-02-27
     step               timedelta64[ns] 08:00:00
     heightAboveGround  int64 2
     latitude           (y, x) float64 21.14 21.15 21.15 ... 47.86 47.85 47.84
     longitude          (y, x) float64 237.3 237.3 237.3 ... 299.0 299.0 299.1
     valid_time         datetime64[ns] 2019-02-27T08:00:00
 Dimensions without coordinates: x, y
 Data variables:
     pt                 (y, x) float32 ...
     q                  (y, x) float32 ...
     t2m                (y, x) float32 ...
     d2m                (y, x) float32 ...
     r2                 (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:            (x: 1799, y: 1059)
 Coordinates:
     time               datetime64[ns] 2019-02-27
     step               timedelta64[ns] 08:00:00
     heightAboveGround  int64 80
     latitude           (y, x) float64 21.14 21.15 21.15 ... 47.86 47.85 47.84
     longitude          (y, x) float64 237.3 237.3 237.3 ... 299.0 299.0 299.1
     valid_time         datetime64[ns] 2019-02-27T08:00:00
 Dimensions without coordinates: x, y
 Data variables:
     u                  (y, x) float32 ...
     v                  (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:            (x: 1799, y: 1059)
 Coordinates:
     time               datetime64[ns] 2019-02-27
     step               timedelta64[ns] 08:00:00
     heightAboveGround  int64 10
     latitude           (y, x) float64 21.14 21.15 21.15 ... 47.86 47.85 47.84
     longitude          (y, x) float64 237.3 237.3 237.3 ... 299.0 299.0 299.1
     valid_time         datetime64[ns] 2019-02-27T08:00:00
 Dimensions without coordinates: x, y
 Data variables:
     u10                (y, x) float32 ...
     v10                (y, x) float32 ...
     si10               (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:            (heightAboveGround: 2, x: 1799, y: 1059)
 Coordinates:
     time               datetime64[ns] 2019-02-27
     step               timedelta64[ns] 08:00:00
   * heightAboveGround  (heightAboveGround) int64 1000 4000
     latitude           (y, x) float64 ...
     longitude          (y, x) float64 ...
     valid_time         datetime64[ns] ...
 Dimensions without coordinates: x, y
 Data variables:
     refd               (heightAboveGround, y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:                 (heightAboveGroundLayer: 3, x: 1799, y: 1059)
 Coordinates:
     time                    datetime64[ns] 2019-02-27
     step                    timedelta64[ns] 08:00:00
   * heightAboveGroundLayer  (heightAboveGroundLayer) int64 2000 3000 5000
     latitude                (y, x) float64 ...
     longitude               (y, x) float64 ...
     valid_time              datetime64[ns] ...
 Dimensions without coordinates: x, y
 Data variables:
     unknown                 (heightAboveGroundLayer, y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:                 (heightAboveGroundLayer: 3, x: 1799, y: 1059)
 Coordinates:
     time                    datetime64[ns] 2019-02-27
     step                    timedelta64[ns] 08:00:00
   * heightAboveGroundLayer  (heightAboveGroundLayer) int64 2000 3000 5000
     latitude                (y, x) float64 ...
     longitude               (y, x) float64 ...
     valid_time              datetime64[ns] ...
 Dimensions without coordinates: x, y
 Data variables:
     unknown                 (heightAboveGroundLayer, y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:                 (heightAboveGroundLayer: 2, x: 1799, y: 1059)
 Coordinates:
     time                    datetime64[ns] 2019-02-27
     step                    timedelta64[ns] 08:00:00
   * heightAboveGroundLayer  (heightAboveGroundLayer) int64 1000 2000
     latitude                (y, x) float64 ...
     longitude               (y, x) float64 ...
     valid_time              datetime64[ns] ...
 Dimensions without coordinates: x, y
 Data variables:
     vo                      (heightAboveGroundLayer, y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:                 (x: 1799, y: 1059)
 Coordinates:
     time                    datetime64[ns] 2019-02-27
     step                    timedelta64[ns] 08:00:00
     heightAboveGroundLayer  int64 0
     latitude                (y, x) float64 21.14 21.15 21.15 ... 47.85 47.84
     longitude               (y, x) float64 237.3 237.3 237.3 ... 299.0 299.1
     valid_time              datetime64[ns] 2019-02-27T08:00:00
 Dimensions without coordinates: x, y
 Data variables:
     vucsh                   (y, x) float32 ...
     vvcsh                   (y, x) float32 ...
     ustm                    (y, x) float32 ...
     vstm                    (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:                 (heightAboveGroundLayer: 2, x: 1799, y: 1059)
 Coordinates:
     time                    datetime64[ns] 2019-02-27
     step                    timedelta64[ns] 08:00:00
   * heightAboveGroundLayer  (heightAboveGroundLayer) int64 1000 3000
     latitude                (y, x) float64 ...
     longitude               (y, x) float64 ...
     valid_time              datetime64[ns] ...
 Dimensions without coordinates: x, y
 Data variables:
     hlcy                    (heightAboveGroundLayer, y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:        (isobaricInhPa: 5, x: 1799, y: 1059)
 Coordinates:
     time           datetime64[ns] 2019-02-27
     step           timedelta64[ns] 08:00:00
   * isobaricInhPa  (isobaricInhPa) int64 1000 925 850 700 500
     latitude       (y, x) float64 21.14 21.15 21.15 21.16 ... 47.86 47.85 47.84
     longitude      (y, x) float64 237.3 237.3 237.3 237.4 ... 299.0 299.0 299.1
     valid_time     datetime64[ns] 2019-02-27T08:00:00
 Dimensions without coordinates: x, y
 Data variables:
     t              (isobaricInhPa, y, x) float32 ...
     dpt            (isobaricInhPa, y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:        (isobaricInhPa: 7, x: 1799, y: 1059)
 Coordinates:
     time           datetime64[ns] 2019-02-27
     step           timedelta64[ns] 08:00:00
   * isobaricInhPa  (isobaricInhPa) int64 1000 925 850 700 500 300 250
     latitude       (y, x) float64 21.14 21.15 21.15 21.16 ... 47.86 47.85 47.84
     longitude      (y, x) float64 237.3 237.3 237.3 237.4 ... 299.0 299.0 299.1
     valid_time     datetime64[ns] 2019-02-27T08:00:00
 Dimensions without coordinates: x, y
 Data variables:
     u              (isobaricInhPa, y, x) float32 ...
     v              (isobaricInhPa, y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:        (isobaricInhPa: 4, x: 1799, y: 1059)
 Coordinates:
     time           datetime64[ns] 2019-02-27
     step           timedelta64[ns] 08:00:00
   * isobaricInhPa  (isobaricInhPa) int64 1000 850 700 500
     latitude       (y, x) float64 ...
     longitude      (y, x) float64 ...
     valid_time     datetime64[ns] ...
 Dimensions without coordinates: x, y
 Data variables:
     gh             (isobaricInhPa, y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:        (x: 1799, y: 1059)
 Coordinates:
     time           datetime64[ns] 2019-02-27
     step           timedelta64[ns] 08:00:00
     isobaricLayer  int64 500
     latitude       (y, x) float64 ...
     longitude      (y, x) float64 ...
     valid_time     datetime64[ns] ...
 Dimensions without coordinates: x, y
 Data variables:
     lftx           (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:       (x: 1799, y: 1059)
 Coordinates:
     time          datetime64[ns] 2019-02-27
     step          timedelta64[ns] 08:00:00
     isothermZero  int64 0
     latitude      (y, x) float64 21.14 21.15 21.15 21.16 ... 47.86 47.85 47.84
     longitude     (y, x) float64 237.3 237.3 237.3 237.4 ... 299.0 299.0 299.1
     valid_time    datetime64[ns] 2019-02-27T08:00:00
 Dimensions without coordinates: x, y
 Data variables:
     pres          (y, x) float32 ...
     gh            (y, x) float32 ...
     r             (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:     (isothermal: 2, x: 1799, y: 1059)
 Coordinates:
     time        datetime64[ns] 2019-02-27
     step        timedelta64[ns] 08:00:00
   * isothermal  (isothermal) int64 253 263
     latitude    (y, x) float64 ...
     longitude   (y, x) float64 ...
     valid_time  datetime64[ns] ...
 Dimensions without coordinates: x, y
 Data variables:
     gh          (isothermal, y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:     (x: 1799, y: 1059)
 Coordinates:
     time        datetime64[ns] 2019-02-27
     step        timedelta64[ns] 08:00:00
     isothermal  int64 263
     latitude    (y, x) float64 ...
     longitude   (y, x) float64 ...
     valid_time  datetime64[ns] ...
 Dimensions without coordinates: x, y
 Data variables:
     refd        (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:     (x: 1799, y: 1059)
 Coordinates:
     time        datetime64[ns] 2019-02-27
     step        timedelta64[ns] 08:00:00
     isothermal  int64 263
     latitude    (y, x) float64 ...
     longitude   (y, x) float64 ...
     valid_time  datetime64[ns] ...
 Dimensions without coordinates: x, y
 Data variables:
     refd        (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:     (x: 1799, y: 1059)
 Coordinates:
     time        datetime64[ns] 2019-02-27
     step        timedelta64[ns] 08:00:00
     meanSea     int64 0
     latitude    (y, x) float64 ...
     longitude   (y, x) float64 ...
     valid_time  datetime64[ns] ...
 Dimensions without coordinates: x, y
 Data variables:
     mslma       (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:     (x: 1799, y: 1059)
 Coordinates:
     time        datetime64[ns] 2019-02-27
     step        timedelta64[ns] 08:00:00
     nominalTop  int64 0
     latitude    (y, x) float64 21.14 21.15 21.15 21.16 ... 47.86 47.85 47.84
     longitude   (y, x) float64 237.3 237.3 237.3 237.4 ... 299.0 299.0 299.1
     valid_time  datetime64[ns] 2019-02-27T08:00:00
 Dimensions without coordinates: x, y
 Data variables:
     unknown     (y, x) float32 ...
     uswrf       (y, x) float32 ...
     ulwrf       (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:                  (x: 1799, y: 1059)
 Coordinates:
     time                     datetime64[ns] 2019-02-27
     step                     timedelta64[ns] 08:00:00
     pressureFromGroundLayer  int64 10000
     latitude                 (y, x) float64 ...
     longitude                (y, x) float64 ...
     valid_time               datetime64[ns] ...
 Dimensions without coordinates: x, y
 Data variables:
     unknown                  (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:                  (pressureFromGroundLayer: 3, x: 1799, y: 1059)
 Coordinates:
     time                     datetime64[ns] 2019-02-27
     step                     timedelta64[ns] 08:00:00
   * pressureFromGroundLayer  (pressureFromGroundLayer) int64 9000 18000 25500
     latitude                 (y, x) float64 21.14 21.15 21.15 ... 47.85 47.84
     longitude                (y, x) float64 237.3 237.3 237.3 ... 299.0 299.1
     valid_time               datetime64[ns] 2019-02-27T08:00:00
 Dimensions without coordinates: x, y
 Data variables:
     cape                     (pressureFromGroundLayer, y, x) float32 ...
     cin                      (pressureFromGroundLayer, y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:                  (x: 1799, y: 1059)
 Coordinates:
     time                     datetime64[ns] 2019-02-27
     step                     timedelta64[ns] 08:00:00
     pressureFromGroundLayer  int64 18000
     latitude                 (y, x) float64 ...
     longitude                (y, x) float64 ...
     valid_time               datetime64[ns] ...
 Dimensions without coordinates: x, y
 Data variables:
     4lftx                    (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:                  (x: 1799, y: 1059)
 Coordinates:
     time                     datetime64[ns] 2019-02-27
     step                     timedelta64[ns] 08:00:00
     pressureFromGroundLayer  int64 25500
     latitude                 (y, x) float64 ...
     longitude                (y, x) float64 ...
     valid_time               datetime64[ns] ...
 Dimensions without coordinates: x, y
 Data variables:
     plpl                     (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:     (x: 1799, y: 1059)
 Coordinates:
     time        datetime64[ns] 2019-02-27
     step        timedelta64[ns] 08:00:00
     sigma       int64 0
     latitude    (y, x) float64 ...
     longitude   (y, x) float64 ...
     valid_time  datetime64[ns] ...
 Dimensions without coordinates: x, y
 Data variables:
     hail        (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:     (x: 1799, y: 1059)
 Coordinates:
     time        datetime64[ns] 2019-02-27
     step        timedelta64[ns] 08:00:00
     sigmaLayer  int64 1
     latitude    (y, x) float64 ...
     longitude   (y, x) float64 ...
     valid_time  datetime64[ns] ...
 Dimensions without coordinates: x, y
 Data variables:
     wz          (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:     (x: 1799, y: 1059)
 Coordinates:
     time        datetime64[ns] 2019-02-27
     step        timedelta64[ns] 08:00:00
     surface     int64 0
     latitude    (y, x) float64 21.14 21.15 21.15 21.16 ... 47.86 47.85 47.84
     longitude   (y, x) float64 237.3 237.3 237.3 237.4 ... 299.0 299.0 299.1
     valid_time  datetime64[ns] 2019-02-27T08:00:00
 Dimensions without coordinates: x, y
 Data variables:
     unknown     (y, x) float32 ...
     siconc      (y, x) float32 ...
     cape        (y, x) float32 ...
     t           (y, x) float32 ...
     sp          (y, x) float32 ...
     lsm         (y, x) float32 ...
     sr          (y, x) float32 ...
     vis         (y, x) float32 ...
     prate       (y, x) float32 ...
     sde         (y, x) float32 ...
     cin         (y, x) float32 ...
     orog        (y, x) float32 ...
     tp          (y, x) float32 ...
     lhtfl       (y, x) float32 ...
     shtfl       (y, x) float32 ...
     asnow       (y, x) float32 ...
     crain       (y, x) float32 ...
     cfrzr       (y, x) float32 ...
     cicep       (y, x) float32 ...
     csnow       (y, x) float32 ...
     cpofp       (y, x) float32 ...
     snowc       (y, x) float32 ...
     sdwe        (y, x) float32 ...
     gust        (y, x) float32 ...
     fricv       (y, x) float32 ...
     hpbl        (y, x) float32 ...
     dswrf       (y, x) float32 ...
     uswrf       (y, x) float32 ...
     dlwrf       (y, x) float32 ...
     ulwrf       (y, x) float32 ...
     bgrun       (y, x) float32 ...
     ssrun       (y, x) float32 ...
     gflux       (y, x) float32 ...
     cnwat       (y, x) float32 ...
     frzr        (y, x) float32 ...
     vbdsf       (y, x) float32 ...
     vddsf       (y, x) float32 ...
     gppbfas     (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:     (x: 1799, y: 1059)
 Coordinates:
     time        datetime64[ns] 2019-02-27
     step        timedelta64[ns] 08:00:00
     surface     int64 0
     latitude    (y, x) float64 ...
     longitude   (y, x) float64 ...
     valid_time  datetime64[ns] ...
 Dimensions without coordinates: x, y
 Data variables:
     sdwe        (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ,
 <xarray.Dataset>
 Dimensions:     (x: 1799, y: 1059)
 Coordinates:
     time        datetime64[ns] 2019-02-27
     step        timedelta64[ns] 08:00:00
     level       int64 0
     latitude    (y, x) float64 21.14 21.15 21.15 21.16 ... 47.86 47.85 47.84
     longitude   (y, x) float64 237.3 237.3 237.3 237.4 ... 299.0 299.0 299.1
     valid_time  datetime64[ns] 2019-02-27T08:00:00
 Dimensions without coordinates: x, y
 Data variables:
     unknown     (y, x) float32 ...
     pres        (y, x) float32 ...
     gh          (y, x) float32 ...
     r           (y, x) float32 ...
     pwat        (y, x) float32 ...
     lcc         (y, x) float32 ...
     mcc         (y, x) float32 ...
     hcc         (y, x) float32 ...
 Attributes:
     GRIB_edition:            2
     GRIB_centre:             kwbc
     GRIB_centreDescription:  US National Weather Service - NCEP 
     GRIB_subCentre:          0
     Conventions:             CF-1.7
     institution:             US National Weather Service - NCEP ]

@blaylockbk
Copy link
Contributor Author

Awesome! I'll give it a spin and let you know if I run into anything else. Thank you for supporting this package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants