Skip to content

Commit

Permalink
Merge pull request #214 from mbruckner-work/develop
Browse files Browse the repository at this point in the history
Tropomi NO2 reader update
  • Loading branch information
zmoon authored Nov 5, 2024
2 parents ea10e76 + 8a454b8 commit 4372dd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monetio/sat/_tropomi_l2_no2_mm.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def get_extra(varname_, *, dct_=None, default_group="PRODUCT"):
# Tropopause pressure
ptrop = xr.full_like(itrop, np.nan, dtype=ds["preslev"].dtype)
for i in np.unique(itrop):
if np.isnan(i):
if np.isnan(i) or i < 0 or i >= p.sizes["z"]:
continue
ptrop = xr.where(itrop == i, p.isel(z=int(i)), ptrop)
ds["troppres"] = ptrop
Expand Down

0 comments on commit 4372dd9

Please sign in to comment.