Skip to content

Commit

Permalink
Merge pull request #59 from SnowEx/mask_outlier_first
Browse files Browse the repository at this point in the history
Update main retrieval algorithm to mask incidence angle outliers before doing mean normalization
  • Loading branch information
ZachHoppinen authored Aug 30, 2023
2 parents 4ccf866 + dd9996d commit 6133a9b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions spicy_snow/retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ def retrieve_snow_depth(area: shapely.geometry.Polygon,

## Preprocessing Steps
log.info("Preprocessing Sentinel-1 images")

#TODO add water mask
# ds = ims_water_mask(ds)

# mask out outliers in incidence angle
ds = s1_incidence_angle_masking(ds)

# subset dataset by flight_dir and platform
dict_ds = subset_s1_images(ds)

Expand All @@ -133,12 +140,6 @@ def retrieve_snow_depth(area: shapely.geometry.Polygon,
# recombine subsets
ds = merge_s1_subsets(dict_ds)

# add water mask
# ds = ims_water_mask(ds)

# mask out outliers in incidence angle
ds = s1_incidence_angle_masking(ds)

## Snow Index Steps
log.info("Calculating snow index")
# calculate delta CR and delta VV
Expand Down

0 comments on commit 6133a9b

Please sign in to comment.