Skip to content

Commit

Permalink
change the coordinate parameter back to Z in the ExtractLevelFunction…
Browse files Browse the repository at this point in the history
….edit_request call to tv.remove_scalar

so that the method properly repopulates the Vertical Level coordinate for the 4-D alternate variable
  • Loading branch information
wrongkindofdoctor committed May 23, 2024
1 parent 1bbbbb1 commit dde904a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,9 +562,8 @@ def edit_request(self, v: varlist_util.VarlistEntry, **kwargs):
for var_dict in new_tv_dict.values():
if var_dict['ndim'] == 4:
new_tv_name = var_dict['name']
time_coord = [c for c in tv.scalar_coords if c.axis == 'T'][0]
new_tv = tv.remove_scalar(
time_coord.axis,
'Z',
name=new_tv_name
)

Expand Down

0 comments on commit dde904a

Please sign in to comment.