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.

Alternate scanning directions not honored in NBM GRIB files

See original GitHub issue

I was attempting to read some NBM (National Blend of Models) GRIB files using xarray and cfgrib: t_ds = xr.open_dataset('blend.t12z.core.f%03d.co.grib2'%12, filter_by_keys={'stepType': 'instant', 'typeOfLevel': 'surface','paramId':130}) The reading operation was successful in that it didn’t throw an error… but it also ended up looking really screwy when I went to make a very quick plot t_ds['t'].plot(): nbm_gribreadfail

The twitter hive mind (thread for reference: https://twitter.com/JackSillin/status/1484617258852888582) quickly assessed that this was due to cfgrib not honoring some flag/option in the NBM GRIBs that reads the rows in the alternating order in which they were written. I’ve only ever had this issue with NBM gribs (to replicate the issue you may want to find yourself one or two https://noaa-nbm-grib2-pds.s3.amazonaws.com/index.html#blend.20220121/12/core/).

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
shahramncommented, Mar 4, 2022
0reactions
iainrussellcommented, Oct 6, 2022

That’s great, thanks for letting me know!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Implement handling for "alternativeRowScanning" by dopplershift ...
I'm not sure if this is the most elegant approach (honestly the index handling here was ... Alternate scanning directions not honored in...
Read more >
NBM v3.2 GRIB All Sections - MDL - Virtual Lab - NOAA VLab
This section is not used by NBM products at this time. ... All rows scan in the same direction; Points within odd rows...
Read more >
GRIB2 Encoding Details for the NDFD - Graphical Forecast
The purpose of this document is to describe, in detail, the techniques that will be used to encode NWS forecasts into NDFD GRIB2...
Read more >
HEC-MetVue - Hydrologic Engineering Center
instructions, searching existing data sources, gathering and maintaining the data needed, and completing and reviewing the collection of information.
Read more >
Grib Weather [OpenCPN Manuals]
What is a grib file? If you are not familiar with grib weather files, make sure you understand the basics, before you start...
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