-
Notifications
You must be signed in to change notification settings - Fork 28
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
Radiosonde data - apparent (and misterious) disparity in data shape #35
Comments
Are you sure the fields are missing in the output of pybufrkit? I suspect there is some issue in your python script especially since both pybufrkit and eccodes give you the same result. If you can share one of the BUFR file that is giving you this issue, I can take a closer look at it. |
Hi Yang. thank you so much for your kind and prompt reply. I have enclosed both BUFR files, as well as my python script (with eccodes). Is there any way I could get a clean, reproducible, understandable python code to simply get As mentioned, my aim is to combine all my (hundreds of) files into one whole xarray dataset. But for that, I need to have a clearer understanding, and be able to align the data. Thank you so much for your kind help! |
The BUFR sequence contains a block of data for the radiosonde profile (at 0 to n levels) followed by a block of data containing the wind shear (at a different 0 to n levels). The additional latitude, longitude and date/time are coming from the wind shear block. If you run bufr_dump from eccodes on the second file you should see the wind sheer data at the end of the output:
Hope this helps. |
Hi David, Thanks for your kind answer. Yes, it helped. Things start appearing less fuzzy now. When reading in the data (adapted from this link should I mask the data to only get block #1 ? And also (from the same link): what is significance level? Is it some kind of quality check? Thanks! |
You want only the children of the
to get the latitude displacements etc. |
Dear David! THANK YOU for your kind hint, for the PDF link and for pointing me in the right direction.
And I compare this new reader to the ever first message I posted on this thread.
|
Glad to know your problem is solved. Thanks for helping out @david-i-berry 👍 |
[like] GEA Computing reacted to your message:
…________________________________
From: Yang Wang ***@***.***>
Sent: Friday, May 17, 2024 8:24:25 AM
To: ywangd/pybufrkit ***@***.***>
Cc: GEA Computing ***@***.***>; Author ***@***.***>
Subject: Re: [ywangd/pybufrkit] Radiosonde data - apparent (and misterious) disparity in data shape (Issue #35)
Glad to know your problem is solved. Thanks for helping out @david-i-berry<https://github.com/david-i-berry> 👍
—
Reply to this email directly, view it on GitHub<#35 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BDX6ZRFKQNLKDUATHCDUJG3ZCW5DTAVCNFSM6AAAAABHZVTQ7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJXGAYTGNZVGU>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hello.
I have some Radiosonde profiles, in BUFR format. I have tried reading them using both
pybufrkit
andeccodes
. Specifically for eccodes, I adapted this script from confluence.ecmwf.intMy aim is to read in the whole sequence of BUFR and concatenate/convert them to an xarray dataset.
Specifically, when running following command,
pybufrkit decode -a bufr309052_all_20240125_1108_3.bfr > "../testout.json"
I have:
However, in both cases (
pybufrkit
andeccodes
), depending on the file I ingest in my python function inside my loop, i observe a mismatch in size (shape) of my data:len(airT) = len(dewT) = len(time) -1
More specifically:
Now my questions:
Why is that? Shouldn't lat, lon, time and parameters always be the same size?
How can I proceed? Should I filter? Skip? Ignore?
Thanks for any suggestion or constructive comment you might be willing to share with me.
The text was updated successfully, but these errors were encountered: