Skip to content

Commit

Permalink
Use version 1 of snow data (#3462)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgboss authored Mar 12, 2024
1 parent 178d1e0 commit bed8cff
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions api/app/jobs/viirs_snow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit bed8cff

Please sign in to comment.