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

Leosphere format update #134

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Leosphere format update #134

wants to merge 4 commits into from

Conversation

isabels
Copy link
Collaborator

@isabels isabels commented Oct 16, 2024

The ISS Leosphere lidar got a software update recently that slightly changed the format of its netCDF (supposedly CFRadial but not quite) files. The specific difference that matters to RadxConvert is that the type of the res_id attribute in the sweep group has changed.
In earlier files:
:res_id = "3" ; (string attribute)
But now it's:
:res_id = 7 ; (int attribute)
RadxConvert was failing because it was attempting to access res_id as a string attribute when it wasn't. I added catching that netcdf exception and instead trying to read the attribute as an int, then converting to string, and now RadxConvert successfully generates CFRadial files.

…e res_id is now an int attribute, not a string attribute. Catch exception of trying to convert an int to a string, and instead get its value as an int and then convert to string.
…ing to combine RHI on non RHI files, since file processing still works apart from combining RHI, make wording on multiple sweeps error a little clearer.
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

Successfully merging this pull request may close these issues.

1 participant