Skip to content

Commit

Permalink
Merge pull request #526 from xylar/fix_ssh_obs
Browse files Browse the repository at this point in the history
Remove time variables from SSH Obs

This is needed to support weighted averages in time for climatologies with latest xarray
  • Loading branch information
xylar authored Feb 18, 2019
2 parents f08b7f8 + 1fb03b5 commit 9a6815f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ environment with the following packages:

* numpy
* scipy
* matplotlib
* matplotlib >= 3.2.0
* netCDF4
* xarray >= 0.10.0
* dask
* bottleneck
* basemap
* basemap < 1.2.0 | > 1.2.0
* lxml
* nco >= 4.7.0
* pyproj
Expand All @@ -46,8 +46,8 @@ environment with the following packages:
These can be installed via the conda command:
``` bash
conda create -n mpas_analysis -c conda-forge numpy scipy matplotlib netCDF4 \
xarray dask bottleneck basemap lxml nco pyproj pillow cmocean \
progressbar2 requests setuptools shapely
xarray dask bottleneck "basemap<1.2.0|>1.2.0" lxml nco pyproj pillow \
cmocean progressbar2 requests setuptools shapely
```

Then, get the code from:
Expand Down
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 9a6815f

Please sign in to comment.