Skip to content

Commit b3aa47c

Browse files
committed
Apply seki thresholds to only amsr2 specifically
This ensures that the seki thresholds defined for AMSR2 are only used for AMSR2 platform.
1 parent b94dbc9 commit b3aa47c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

seaice_ecdr/ancillary.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
)
2727
from seaice_ecdr.grid_id import get_grid_id
2828
from seaice_ecdr.nc_util import remove_FillValue_from_coordinate_vars
29-
from seaice_ecdr.platforms import PLATFORM_CONFIG, Platform, is_dmsp_platform
29+
from seaice_ecdr.platforms import PLATFORM_CONFIG, Platform
3030
from seaice_ecdr.platforms.config import N07_PLATFORM
3131

3232

@@ -638,12 +638,12 @@ def get_cdr_conc_threshold(
638638
) -> float:
639639
"""For the given date and hemisphere, return the concentration threshold as a percentage.
640640
641-
DMSP platforms have a static 10% threshold. AMSR2 data has a threshold based
642-
on day-of-year (DOY).
641+
AMSR2 data has a threshold based on day-of-year (DOY). All other platforms
642+
use a static threshold of 10%.
643643
"""
644644

645-
if is_dmsp_platform(platform.id):
646-
# DMSP data will utilize a static 10% threshold.
645+
# Most platforms (DMSP) utilize a static 10% threshold.
646+
if platform.id != "am2":
647647
return DEFAULT_CONC_THRESHOLD_PERCENT
648648

649649
ancillary_ds = get_ancillary_ds(hemisphere=hemisphere)

0 commit comments

Comments
 (0)