Skip to content

Commit

Permalink
fix(misc+l4): load basins instead of complexes
Browse files Browse the repository at this point in the history
  • Loading branch information
j-haacker committed Sep 20, 2024
1 parent 2f6a5c6 commit 526a04d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cryoswath/l4.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def relative_change(l3_data: xr.Dataset,
# ! needs to be tested

if isinstance(basin_shapes, str):
basin_shapes = gpd.GeoSeries(load_glacier_outlines(basin_shapes))
basin_shapes = gpd.GeoSeries(load_glacier_outlines(basin_shapes, "glaciers", False))
if glac_ref_year < 2010:
glac_ref_year += 2000
# roughly filter data
Expand Down
2 changes: 1 addition & 1 deletion cryoswath/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ def collect_missing_tracks(remote_files: list[str],
if region_of_interest is not None:
if isinstance(region_of_interest, str):
# union=False neccessary for Greenland and large regions
region_of_interest = load_glacier_outlines(region_of_interest, union=False).geometry.values
region_of_interest = load_glacier_outlines(region_of_interest, "glaciers", union=False).geometry.values
if buffer_region_by is not None:
region_of_interest = gis.buffer_4326_shp(region_of_interest, buffer_region_by)
else:
Expand Down

0 comments on commit 526a04d

Please sign in to comment.