question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Radar-derived precipitation rates unrecognized (NEXRAD data, MRMS reanalysis dataset)

See original GitHub issue

Disclaimer: I’m a beginner to python and wrangling climate datasets in general. I did my best to scour the web and the issues page to find a solution with no luck. I hope I’ve provided enough information!

Data source: http://edc.occ-data.org/nexrad/mosaic/#data-updates

  • Using ‘MRMS_PrecipRate_00.00_20010101-120000.grib2’ which is the first file in the 2001 dataset

Problem: The ‘PrecipRate’ attribute I know to be in the grib is unrecognized resulting in na data values. I confirmed that these data are there using the pygrib library, but I need this to work with cgrib so I can use the ‘open_mfdataset’ function.

Code:

ds = xr.open_dataset('MRMS_PrecipRate_00.00_20010101-120000.grib2', engine = 'cfgrib')

print(ds)

<xarray.Dataset>
Dimensions:     (latitude: 3500, longitude: 7000)
Coordinates:
    time        datetime64[ns] 2001-01-01T12:00:00
    step        timedelta64[ns] 00:00:00
    surface     float64 0.0
  * latitude    (latitude) float64 54.99 54.98 54.98 54.97 ... 20.03 20.02 20.01
  * longitude   (longitude) float64 230.0 230.0 230.0 ... 300.0 300.0 300.0
    valid_time  datetime64[ns] 2001-01-01T12:00:00
Data variables:
    unknown     (latitude, longitude) float32 ...
Attributes:
    GRIB_edition:            2
    GRIB_centre:             161
    GRIB_centreDescription:  161
    GRIB_subCentre:          0
    Conventions:             CF-1.7
    institution:             161
    history:                 2021-05-04T13:11 GRIB to CDM+CF via cfgrib-0.9.9...

print(ds['unknown'].values)

[[nan nan nan ... nan nan nan]
 [nan nan nan ... nan nan nan]
 [nan nan nan ... nan nan nan]
 ...
 [nan nan nan ... nan nan nan]
 [nan nan nan ... nan nan nan]
 [nan nan nan ... nan nan nan]]

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
YasharGIScommented, Apr 29, 2022

thank you Shahram! it worked.

1reaction
shahramncommented, May 4, 2021

The fields in these files use a non-standard (i.e., local) encoding. For example the discipline is 209 which is not a WMO standard value

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multi-Radar Multi-Sensor (MRMS) Quantitative Precipitation ...
The radar data can be integrated with high-resolution numerical weather prediction model data, satellite data, and lightning and rain gauge ...
Read more >
Mosaic Precipitation Reanalysis
The NEXRAD data is provided in polar coordinates, which one file per volume per radar. Frequently users of this data wish to have...
Read more >
Climate Data Record (CDR) Program - National Centers for ...
NOAA's NEXRAD Reanalysis ... Radar Only Precipitation Rates . ... control of hourly rain gauge data based on multiple sensors in MRMS system....
Read more >
(PDF) Multi-Radar Multi-Sensor (MRMS) Quantitative ...
The radar data can be integrated with high-resolution numerical weather prediction model data, satellite data, and lightning and rain gauge ...
Read more >
Multi-Radar Multi-Sensor (MRMS) Quantitative Precipitation ...
The radar data can be integrated with high-resolution numerical weather ... Reanalysis of Remotely Sensed Storms (MYRORSS) data set blends ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found