Skip to content

Commit

Permalink
add remark about unit conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
navidcy committed Apr 22, 2024
1 parent a8e8b14 commit df2093c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions regional_mom6/regional_mom6.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,7 @@ def initial_condition(
eta_out.yh.attrs = ic_raw_tracers.lat.attrs
eta_out.attrs = ic_raw_eta.attrs

# if temp units are K, convert to C
if np.min(tracers_out["temp"].isel({"zl": 0})) > 100:
tracers_out["temp"] -= 273.15

Expand Down

0 comments on commit df2093c

Please sign in to comment.