-
Notifications
You must be signed in to change notification settings - Fork 18
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
NEXRADLevel2 Reader Error for Older Files #256
Comments
Thanks @TCAlert for filing this issue. I'm adding the example from #258 added by @ghiggi: import os
import fsspec
import xradar as xd
import subprocess
local_tmp_dir = "tmp"
fs_args = {}
_ = fs_args.setdefault("anon", True)
fs = fsspec.filesystem("s3", **fs_args)
s3_filepath = "noaa-nexrad-level2/1996/07/01/KFSX/KFSX19960701_044028.gz"
s3_filepath = "noaa-nexrad-level2/2002/01/01/KABX/KABX20020101_001308.gz"
s3_filepath = "noaa-nexrad-level2/2005/08/28/KLIX/KLIX20050828_180149.gz"
local_filepath = os.path.join(local_tmp_dir, os.path.basename(s3_filepath))
fs.download(s3_filepath, local_tmp_dir)
subprocess.run(["gzip", "-d", local_filepath], check=True)
dt = xd.io.open_nexradlevel2_datatree(local_filepath.replace(".gz", "")) I've tracked down the issue. Obviously the file does conform to some older NEXRAD standard. The https://www.roc.noaa.gov/public-documents/icds/2620010C.pdf Old Format
https://www.roc.noaa.gov/public-documents/icds/2620010D_Final_052708.pdf Since 2008:
So we are trying to read data from wrong locations as we extend the type 15 messages into the type 13. I'll have a PR out shortly which fixes this issue. |
OK, as we only have implemented It looks like this might be straightforward... |
Description
I was loading in some radar data from KLIX on 8/28/2005 at 1800z using the NEXRADLevel2 engine for xarray that xradar provides and ran into this error. Seems to only happen with the pre-super resolution radars -- I haven't encountered any issues with the modern sites.
What I Did
Traceback
The text was updated successfully, but these errors were encountered: