diff --git a/scripts/aws/setupdb.sh b/scripts/aws/setupdb.sh index 7a837514a..e40e8bdc4 100755 --- a/scripts/aws/setupdb.sh +++ b/scripts/aws/setupdb.sh @@ -22,7 +22,7 @@ file_to_load= load_stream=false load_mapshed=false -while getopts ":hbsdmf:" opt; do +while getopts ":hbsdpmf:" opt; do case $opt in h) echo -e $usage @@ -33,6 +33,8 @@ while getopts ":hbsdmf:" opt; do load_stream=true ;; d) load_drb_streams=true ;; + p) + load_dep=true ;; m) load_mapshed=true ;; f) @@ -74,6 +76,16 @@ if [ ! -z "$file_to_load" ] ; then download_and_load $FILES fi +if [ "$load_dep" = "true" ] ; then + # Fetch DEP layers + FILES=("dep_urban_areas.sql.gz" "dep_municipalities.sql.gz") + PATHS=("dep_urbanareas" "dep_municipalities") + + download_and_load $FILES + purge_tile_cache $PATHS +fi + + if [ "$load_boundary" = "true" ] ; then # Fetch boundary layer sql files FILES=("boundary_county.sql.gz" "boundary_school_district.sql.gz" "boundary_district.sql.gz" "boundary_huc12.sql.gz" "boundary_huc10.sql.gz" "boundary_huc08.sql.gz") diff --git a/src/mmw/apps/modeling/tasks.py b/src/mmw/apps/modeling/tasks.py index 92d62029a..516065ad9 100644 --- a/src/mmw/apps/modeling/tasks.py +++ b/src/mmw/apps/modeling/tasks.py @@ -149,11 +149,10 @@ def aoi_resolution(area_of_interest): def format_quality(model_output): - measures = ['Biochemical Oxygen Demand', - 'Total Suspended Solids', + measures = ['Total Suspended Solids', 'Total Nitrogen', 'Total Phosphorus'] - codes = ['bod', 'tss', 'tn', 'tp'] + codes = ['tss', 'tn', 'tp'] def fn(input): measure, code = input diff --git a/src/mmw/apps/water_balance/templates/home_page/index.html b/src/mmw/apps/water_balance/templates/home_page/index.html index c6f2f6eeb..381eea8f7 100644 --- a/src/mmw/apps/water_balance/templates/home_page/index.html +++ b/src/mmw/apps/water_balance/templates/home_page/index.html @@ -210,84 +210,84 @@

0.0 cm

  • - Open Water + Open Water
  • - Developed, Open Space + Developed, Open Space
  • - Developed, Low Intensity + Developed, Low Intensity
  • - Developed, Medium Intensity + Developed, Medium Intensity
  • - Developed High Intensity + Developed High Intensity
  • - Barren Land (Rock/Sand/Clay) + Barren Land (Rock/Sand/Clay)
  • - Forest + Forest
  • - Shrub/Scrub + Shrub/Scrub
  • - Grassland/Herbaceous + Grassland/Herbaceous
  • - Pasture/Hay + Pasture/Hay
  • - Cultivated Crops + Cultivated Crops
  • - Wetlands + Wetlands
  • @@ -302,29 +302,29 @@

    0.0 cm