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

ENH: Add instrument parameter check for sinarame. #1532

Merged
merged 2 commits into from
Mar 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion pyart/aux_io/sinarame_h5.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,14 @@ def read_sinarame_h5(
)

# instrument_parameters
instrument_parameters = None
# Check if no attributes for instrument parameters.
if len(hfile["how"].attrs) == 0:
instrument_parameters = None
# Grab each instrument parameter and its value for the hfile object.
else:
instrument_parameters = {}
for i in hfile["how"].attrs.keys():
instrument_parameters[i] = hfile["how"].attrs[i]

return Radar(
_time,
Expand Down