Skip to content

Commit

Permalink
fixed another issue
Browse files Browse the repository at this point in the history
  • Loading branch information
smahanam committed Jul 2, 2024
1 parent d5f733b commit 9bf0201
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lis/utils/usaf/s2s/s2s_modules/s2splots/plot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,8 @@ def crop (limits, lat, lon, xrin):
with dask.config.set(**{'array.slicing.split_large_chunks': True}):
xr_lon = (lon >= limits[2]) & (lon <= limits[3])
xr_lat = (lat >= limits[0]) & (lat <= limits[1])
xr_lon = xr_lon.compute()
xr_lat = xr_lat.compute()
crop_xcm = xrin.where(xr_lon & xr_lat, drop=True)
return crop_xcm

Expand Down

0 comments on commit 9bf0201

Please sign in to comment.