Skip to content

Commit

Permalink
Correct zdef dimension (JCSDA-internal#185)
Browse files Browse the repository at this point in the history
Change check value on `zdef `dimension. This is needed for observation
data, particularly ps obs which have only a single zdef (level) value.

This change has been tested with Ozn, Rad, and Min data and all work
correctly.
  • Loading branch information
EdwardSafford-NOAA authored Apr 22, 2024
1 parent a40e651 commit eb709c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eva/data/mon_data_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ def get_dim_ranges(self, coords, dims, channo, datatypes):
if dims['ydef'] > 0:
y_range = channo if coords['ydef'] == 'Channel' else np.arange(1, dims['ydef']+1)

if dims['zdef'] > 1:
if dims['zdef'] > 0:
z_range = np.arange(1, dims['zdef']+1)

return x_range, y_range, z_range
Expand Down

0 comments on commit eb709c1

Please sign in to comment.