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

how to decode wx.bin or ds.wx.bin ,and get messages like this: #214

Open
zibuyu888 opened this issue Nov 1, 2022 · 2 comments
Open

how to decode wx.bin or ds.wx.bin ,and get messages like this: #214

zibuyu888 opened this issue Nov 1, 2022 · 2 comments

Comments

@zibuyu888
Copy link

element, unit, refTime, validTime, (34.088636,-83.704283)
Wx, [-], 202211010300, 202211010600, Patchy:F:::
Wx, [-], 202211010300, 202211010900, Patchy:F:::
Wx, [-], 202211010300, 202211011200, Patchy:F:::
Wx, [-], 202211010300, 202211011500, ::::
Wx, [-], 202211010300, 202211011800, ::::
Wx, [-], 202211010300, 202211012100, ::::
Wx, [-], 202211010300, 202211020000, ::::
Wx, [-], 202211010300, 202211020300, ::::
Wx, [-], 202211010300, 202211020600, ::::
Wx, [-], 202211010300, 202211020900, ::::
Wx, [-], 202211010300, 202211021200, ::::
Wx, [-], 202211010300, 202211021500, ::::
Wx, [-], 202211010300, 202211021800, ::::
Wx, [-], 202211010300, 202211022100, ::::
Wx, [-], 202211010300, 202211030000, ::::
Wx, [-], 202211010300, 202211030300, ::::
Wx, [-], 202211010300, 202211030600, ::::
Wx, [-], 202211010300, 202211030900, ::::
Wx, [-], 202211010300, 202211031200, ::::
Wx, [-], 202211010300, 202211031500, ::::
Wx, [-], 202211010300, 202211031800, ::::
Wx, [-], 202211010300, 202211032100, ::::
Wx, [-], 202211010300, 202211040000, ::::


The file connection address is :https://tgftp.nws.noaa.gov/SL.us008001/ST.expr/DF.gr2/DC.ndfd/AR.conus/VP.001-003/ds.wx.bin

@zibuyu888
Copy link
Author

Wx, [-], 202211010300, 202211031800, SChc:RW:-::
Wx, [-], 202211010300, 202211032100, SChc:RW:-::
Wx, [-], 202211010300, 202211040000, Lkly:RW:-::^SChc:T:::

Wx, [-], 202211010300, 202211031800, Slight Chance of Light Rain Showers
Wx, [-], 202211010300, 202211032100, Slight Chance of Light Rain Showers
Wx, [-], 202211010300, 202211040000, Likely Light Rain Showers and Slight Chance of Thunderstorms


ds.wx. bin is a weather file. I need to obtain the weather data of a certain longitude and latitude at a certain time. The data format is similar to the above. What should I do?

@marty-sullivan
Copy link

The codes you're looking for are stored in a table in the "Local Use Section" (section 2) of each grib message. The number in the actual values of the grib message refers to the row in the table that the grid point refers to. Unfortunately, I don't think pygrib supports reading the local use section at all, at least I can't figure out how to do it.

You used to be able to read this section using the "ncepgrib2" module that was included with pygrib, but that's no longer included nor supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants