Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc authored Jan 24, 2025
1 parent d0165b1 commit 6788f76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions satip/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,8 @@ def crop(scene: Scene, bounds: list[float]) -> Scene:

# Make mask of the lasts and lons
min_lon, min_lat, max_lon, max_lat = bounds
lon_mask = (lon_min < lons) & (lons < lon_max)
lat_mask = (lat_min < lats) & (lats < lat_max)
lon_mask = (min_lon < lons) & (lons < max_lon)
lat_mask = (min_lat < lats) & (lats < max_lat)
mask = lon_mask & lat_mask

# Whether any of the columns need this row: 1D array
Expand Down

0 comments on commit 6788f76

Please sign in to comment.