Skip to content

Commit

Permalink
clean up comments in pull_modis.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nadesai committed Dec 16, 2018
1 parent 61a2114 commit 2778a29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/pull_modis.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
FTR_KEY_FNS = [
lambda region: CLEAN_NAME(region, 'partido') + "-" + CLEAN_NAME(region, 'provincia'), # ARG: "<county name>-<province name>"
lambda region: CLEAN_NAME(region, 'NM_MESO') + "-brasil", # BR: "<mesoregion name>-brasil"
lambda region: CLEAN_NAME(region, 'DISTRICT') + "-" + CLEAN_NAME(region, 'ST_NM'), # US: "<county name>-<state name>"
lambda region: CLEAN_NAME(region, 'NAME') + "-" + GET_FIPS(region, 'STATEFP'), # IN: "<district name>-<state name>"
lambda region: CLEAN_NAME(region, 'DISTRICT') + "-" + CLEAN_NAME(region, 'ST_NM'), # IN: "<district name>-<state name>"
lambda region: CLEAN_NAME(region, 'NAME') + "-" + GET_FIPS(region, 'STATEFP'), # US: "<county name>-<state name>"
]

# "Feature Filter Functions": Lambda function that uses metadata to determine whether imagery is worth pulling for a particular region.
Expand All @@ -68,7 +68,7 @@
lambda region: True,
lambda region: True,
lambda region: True,
lambda region: region.get('properties').get('STATEFP') in USA_SOY_FIPS_CODES, #
lambda region: region.get('properties').get('STATEFP') in USA_SOY_FIPS_CODES, # US: only pull imagery from states with soy production
]


Expand Down

0 comments on commit 2778a29

Please sign in to comment.