Skip to content

Commit

Permalink
Remove time variables from SSH Obs
Browse files Browse the repository at this point in the history
This is needed to support weighted averages in time for
climatologies  with latest xarray
  • Loading branch information
xylar committed Feb 17, 2019
1 parent f08b7f8 commit ca45801
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mpas_analysis/ocean/climatology_map_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def build_observational_dataset(self, fileName): # {{{
dsObs = dsObs.rename({'time': 'Time'})
dsObs.coords['month'] = dsObs['Time.month']
dsObs.coords['year'] = dsObs['Time.year']
dsObs = dsObs.drop(['Time', 'time_bnds'])

# scale the field to cm from m
dsObs['zos'] = constants.cm_per_m * dsObs['zos']
Expand Down

0 comments on commit ca45801

Please sign in to comment.