-
Notifications
You must be signed in to change notification settings - Fork 268
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
ENH: Read new variation of hdf5 file format #1513
Comments
Hello @megumillia ! I can take a look real quick and see. My guess is the attribute nsweep is not an integer |
@megumillia The issue i'm seeing is alot of the attributes in this file are in arrays, instead of strings, int etc. For example your nsweeps instead of 11 is np.ndarray([11]) scan_type is ['ppi'] instead of ppi, etc which py-art does not like as its not expecting arrays for these values |
@megumillia I can try a few things and see if I can get it to read. |
That's not the only issue here. The timestamps are missing from the ray_header. |
@kmuehlbauer Exactly! Funny enough, was just dissecting that part of the file now haha: I can think of ways for checking for np.ndarray for the arrays of some of the attributes, but is there anyway around the missing timestamps @kmuehlbauer ? Not too sure how to approach this. |
We would need to read the sweep timestamps and try to derive ray times from rotation speed. |
Ah gotcha... |
if you can i will be gratefull, I'm new to this programming and radar data thing. |
@megumillia At the moment I have ways around the np.ndarray parts, but the missing sweep timestamps as @kmuehlbauer mentioned, would require deriving ray times from rotation sweep. That I'm unfamiliar with sadly |
@megumillia - a new reader would likely need to be written here. If you have the data read in using h5py, I encourage you to check out our notebook example fitting data into the radar object This would be the best path forward, and once you have a working example, we could work together on a pull request to Py-ART or xradar https://github.com/openradar/xradar (which might be the better option) to have this fully supported. As of now, the file does not conform to any of the readers implemented in Py-ART or xradar. |
@mgrover1 Thanks for the tip and the example link, I'm working on it. When i finish, i can post here the final code if you want do a pull request to Py-art or xradar. |
Description
Hello, Im trying to read in some hdf5 data obtained from one brazilian radar. Pyart doesn't seem to be able to read in the file, h5py can. I have tried gamin_hdf5, and posted the error message below at the end after my code.
If it helps I have shared the data (found below)
https://drive.google.com/file/d/1RLOyF2tkuFDd1BbmTUPLiei6mIEkW4m1/view?usp=sharing
Thanks for any advice explanation on why this doesn't work.
What I Did
The text was updated successfully, but these errors were encountered: