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.

Missing "v"-component of wind from NAM GRIB files.

See original GitHub issue

I commented on #45 a few weeks ago, but I decided to create a new ticket since that ticket is closed and most likely not being tracked. For reference, I was the original reporter of that Issue. Here is the comment from that ticket:

I’m just now revisiting this, and I’m still experiencing the same bug where the u winds are present but the v winds are not. This is using cfgrib version 0.9.7.3. Below is the output from opening a NAM awphys** GRIB2 file which can be found within this database. I’ve made sure to check all the xarray.Dataset objects output by the cfgrib.open_datasets method and none contain v winds.

<xarray.Dataset>
Dimensions:        (isobaricInhPa: 39, x: 614, y: 428)
Coordinates:
    time           datetime64[ns] 2019-10-30
    step           timedelta64[ns] 00:00:00
  * isobaricInhPa  (isobaricInhPa) int64 1000 975 950 925 900 ... 125 100 75 50
    latitude       (y, x) float64 12.19 12.22 12.25 12.28 ... 57.39 57.36 57.33
    longitude      (y, x) float64 226.5 226.6 226.8 226.9 ... 310.3 310.4 310.6
    valid_time     datetime64[ns] 2019-10-30
Dimensions without coordinates: x, y
Data variables:
    t              (isobaricInhPa, y, x) float32 ...
    u              (isobaricInhPa, y, x) float32 ...
    w              (isobaricInhPa, y, x) float32 ...
    gh             (isobaricInhPa, y, x) float32 ...
    r              (isobaricInhPa, y, x) float32 ...
    tke            (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 

Additional information requested from your contributing guidelines:

  • OS: macOS High Sierra v10.13.6
  • Installed using pip with xarray==0.14.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15

github_iconTop GitHub Comments

1reaction
xebadircommented, May 22, 2020

Testing for GFS and RAP also confirms this is now resolved in 0.9.8.2. Great work on solving this.

1reaction
bbonenfantcommented, May 21, 2020

I just tested on a NAM grib and it appears that the u and v components are now available. Thank you for the continued support of this issue. I hope this turns out to be stable and reliable!

Read more comments on GitHub >

github_iconTop Results From Across the Web

NDFD GRIB All Sections - MDL - Virtual Lab - NOAA VLab
When contents are described as "Missing," all bits are set to "1" in accordance with regulation 92.1. 4.
Read more >
Nerd talk: Interpolation Part Two: Wind - LuckGrib
Most GRIB files use the first method to represent wind - the files describe wind as a vector defined at each point.
Read more >
qgis - Missing Global Forecast System wind data in northern ...
I've also opened the GRIB2 files in Panoply and the both wind components at all levels offered are there and complete. Does this...
Read more >
cfgrib · PyPI
Python interface to map GRIB files to the NetCDF Common Data Model ... used in some GRIB products to store u and v...
Read more >
wind vector direction in NAM and NARR data
and then added the rotations to the m file for NAM/NARR winds. ... to Matlab "ncread" parts of the code since it can't...
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