Skip to content

Commit

Permalink
Fix nans in generic l1b bufr conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Clay Harrison committed Jul 18, 2024
1 parent 5262222 commit 37f912c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ascat/read_native/bufr.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def conv_bufrl1b_generic(data, metadata):
data.pop(f[2]))).T.astype(new_dtype)
if nan_val is not None:
valid = data[new_name] != nan_val
data[new_name][~valid] = float32_nan
data[new_name][~valid] = nan_val_dict[new_dtype]
data[new_name][valid] *= s

if data['node_num'].max() == 82:
Expand Down

0 comments on commit 37f912c

Please sign in to comment.