Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify NLCD Layer Information Specification #3414

Open
rajadain opened this issue Jul 30, 2021 · 0 comments
Open

Unify NLCD Layer Information Specification #3414

rajadain opened this issue Jul 30, 2021 · 0 comments
Labels
cleanup enhancement PA DEP Funding Source: Pennsylvania Department of Environment Protection

Comments

@rajadain
Copy link
Member

Currently, we track a number of different values for each NLCD layer:

  • Raster Layer Name nlcd-2011-30m-epsg5070-512-int8
  • Analyze Task Identifier land_2011_2011
  • Display Name Land Use/Cover 2011 (NLCD11)

This information is spread across many files:

layer_overrides = {}
if nlcd_year == '2011_2011':
layer_overrides['__LAND__'] = 'nlcd-2011-30m-epsg5070-512-int8'
nlcd, year = nlcd_year.split('_')
if nlcd == '2019' and year in ['2019', '2016', '2011', '2006', '2001']:
layer_overrides['__LAND__'] = 'nlcd-{}-30m-epsg5070-512-byte'.format(
year)

layerOverrideToDefaultLandCoverType: function(layer_overrides) {
var raster = layer_overrides && _.get(layer_overrides, "__LAND__"),
mapping = {
"nlcd-2019-30m-epsg5070-512-byte": "land_2019_2019",
"nlcd-2016-30m-epsg5070-512-byte": "land_2019_2016",
"nlcd-2011-30m-epsg5070-512-byte": "land_2019_2011",
"nlcd-2006-30m-epsg5070-512-byte": "land_2019_2006",
"nlcd-2001-30m-epsg5070-512-byte": "land_2019_2001",
"nlcd-2011-30m-epsg5070-512-int8": "land_2011_2011",
};

name: "land_2019_2019",
displayName: "Land Use/Cover 2019 (NLCD19)",
area_of_interest: aoi,
wkaoi: wkaoi,
taskName: "analyze/land/2019_2019",
enabledForCatalogMode: true
},
{
name: "land_2019_2016",
displayName: "Land Use/Cover 2016 (NLCD19)",
area_of_interest: aoi,
wkaoi: wkaoi,
taskName: "analyze/land/2019_2016",
enabledForCatalogMode: true
},
{
name: "land_2019_2011",
displayName: "Land Use/Cover 2011 (NLCD19)",
area_of_interest: aoi,
wkaoi: wkaoi,
taskName: "analyze/land/2019_2011",
enabledForCatalogMode: true
},
{
name: "land_2019_2006",
displayName: "Land Use/Cover 2006 (NLCD19)",
area_of_interest: aoi,
wkaoi: wkaoi,
taskName: "analyze/land/2019_2006",
enabledForCatalogMode: true
},
{
name: "land_2019_2001",
displayName: "Land Use/Cover 2001 (NLCD19)",
area_of_interest: aoi,
wkaoi: wkaoi,
taskName: "analyze/land/2019_2001",
enabledForCatalogMode: true
},
{
name: "land_2011_2011",
displayName: "Land Use/Cover 2011 (NLCD11)",
area_of_interest: aoi,
wkaoi: wkaoi,
taskName: "analyze/land/2011_2011",
enabledForCatalogMode: true
},

Unify this information in one place, perhaps layer_settings.py

@rajadain rajadain added enhancement cleanup PA DEP Funding Source: Pennsylvania Department of Environment Protection labels Jul 30, 2021
@rajadain rajadain mentioned this issue Jul 30, 2021
30 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup enhancement PA DEP Funding Source: Pennsylvania Department of Environment Protection
Projects
None yet
Development

No branches or pull requests

1 participant