Skip to content

Commit

Permalink
at this step the intermediate 'topog_raw.nc' file already has vertica…
Browse files Browse the repository at this point in the history
…l coordinate named elevation. Threw an error when vcoord had different name
  • Loading branch information
ashjbarnes committed Nov 14, 2023
1 parent 6b5817e commit f53c1e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regional_mom6/regional_mom6.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ def bathymetry(

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

0 comments on commit f53c1e6

Please sign in to comment.