Skip to content

Commit

Permalink
Make sure dz_m is in 3D data
Browse files Browse the repository at this point in the history
  • Loading branch information
blychs committed Oct 8, 2024
1 parent 6424c1c commit 17ee9d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monetio/models/_camx_mm.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def add_met_data_3D(d_chem, d_met):
"var_desc": "pressure",
}
if ("z" in d_met.variables) or ("ZGRID_M" in d_met.variables):
d_chem["alt_agl_m_mid"], d_chem["layer_height_agl"] = _calc_midlayer_height_agl(d_met)
d_chem["alt_agl_m_mid"], d_chem["dz_m"] = _calc_midlayer_height_agl(d_met)
else:
warnings.warn("No altitude AGL was found.")

Expand Down

0 comments on commit 17ee9d8

Please sign in to comment.