Skip to content

Commit

Permalink
Merge pull request #58 from kthyng/small_update
Browse files Browse the repository at this point in the history
small change to processing coords
  • Loading branch information
kthyng authored Oct 4, 2023
2 parents 964c574 + 24bb85e commit 021d7ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/whats_new.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# What's New

## v0.5.2 (October 4, 2023)
* small fix to `roms_dataset()` processing to enable running it twice

## v0.5.1 (September 14, 2023)
* renamed all references to "divergence" to "convergence" instead

Expand Down
3 changes: 3 additions & 0 deletions xroms/xroms.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ def roms_dataset(
rename["xi_psi"] = "xi_u"
if "eta_psi" in ds.dims:
rename["eta_psi"] = "eta_v"
# if this dataset has already been processed, xi_rho would be a coord and then the name
# conflicts when trying to rename
ds = ds.drop_vars(rename.values(), errors="ignore")
ds = ds.rename(rename)

# Use spherical flag to determine if has lat/lon or not
Expand Down

0 comments on commit 021d7ed

Please sign in to comment.