Skip to content

Commit

Permalink
Merge branch 'bathymetry-bugfix' into bugfix_bgrid
Browse files Browse the repository at this point in the history
  • Loading branch information
ashjbarnes authored Nov 15, 2023
2 parents c0bdc46 + 39bb631 commit b6367cc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions regional_mom6/regional_mom6.py
Original file line number Diff line number Diff line change
Expand Up @@ -1021,9 +1021,7 @@ def bathymetry(
topog = xr.open_dataset(self.mom_input_dir / "topog_raw.nc", engine="netcdf4")

## Ensure correct encoding
topog = xr.Dataset(
{"depth": (["ny", "nx"], topog[varnames["elevation"]].values)}
)
topog = xr.Dataset({"depth": (["ny", "nx"], topog["elevation"].values)})
topog.attrs["depth"] = "meters"
topog.attrs["standard_name"] = "topographic depth at T-cell centers"
topog.attrs["coordinates"] = "zi"
Expand Down

0 comments on commit b6367cc

Please sign in to comment.