diff --git a/api/app/jobs/viirs_snow.py b/api/app/jobs/viirs_snow.py index c7c2fbd68..446b41ed9 100644 --- a/api/app/jobs/viirs_snow.py +++ b/api/app/jobs/viirs_snow.py @@ -23,9 +23,11 @@ BC_BOUNDING_BOX = "-139.06,48.3,-114.03,60" NSIDC_URL = "https://n5eil02u.ecs.nsidc.org/egi/request" -PRODUCT_VERSION = 2 +PRODUCT_VERSION = 1 SHORT_NAME = "VNP10A1F" -LAYER_VARIABLE = "/VIIRS_Grid_IMG_2D/CGF_NDSI_Snow_Cover" +# Leaving this here for when we switch to version 2 eventually +# LAYER_VARIABLE = "/VIIRS_Grid_IMG_2D/CGF_NDSI_Snow_Cover" +LAYER_VARIABLE = "/NPP_Grid_IMG_2D/CGF_NDSI_Snow_Cover" RAW_SNOW_COVERAGE_NAME = 'raw_snow_coverage.tif' RAW_SNOW_COVERAGE_CLIPPED_NAME = 'raw_snow_coverage_clipped.tif' BINARY_SNOW_COVERAGE_CLASSIFICATION_NAME = 'binary_snow_coverage.tif' @@ -233,7 +235,7 @@ async def _run_viirs_snow(self): today = date.today() if last_processed_date is None: # Case to cover the initial run of VIIRS snow processing (ie. start processing one week ago) - next_date = today - timedelta(days=10) + next_date = today - timedelta(days=21) else: # Start processing the day after the last record of a successful job. next_date = last_processed_date + timedelta(days=1)