Skip to content

Commit

Permalink
Just skip
Browse files Browse the repository at this point in the history
  • Loading branch information
zmoon committed Nov 18, 2024
1 parent 50eaa37 commit 558cf3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .codespell-exclude
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# allvars = Series(["TEMP", "Q", "PRES"])
# "p": dset["PRES"][:].compute().values
var_list.append("pres") # 'pressure'
if var == "pres": # Insert special versions.
if var == "pres":
"SIZ",
df.loc[con, "variable"] = "Caf"
df.loc[con, "variable"] = "Laf"
Expand Down
11 changes: 4 additions & 7 deletions monetio/models/_wrfchem_mm.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,12 @@ def open_mfdataset(
# Additional defaults for satellite analysis
var_list.append("zstag") # 'height'

# Make sure we get 'temperature_k' if requested
if "temperature_k" in var_list:
var_list.remove("temperature_k")
if "tk" not in var_list:
var_list.append("tk")

var_wrf_list = []
for var in var_list:
if var == "pres": # Insert special versions.
if not surf_only_nc and var in {"temperature_k", "pres_pa_mid"}:
# These will already be included in the final result
continue
if var == "pres":
var_wrf = getvar(
wrflist, var, timeidx=ALL_TIMES, method="cat", squeeze=False, units="Pa"
)
Expand Down

0 comments on commit 558cf3d

Please sign in to comment.