Interactive interface for browsing global, full-resolution satellite imagery
inactive flag, python_install only installs virtualenv if it isn't here
Mike McGannbad28d9e62e1
diff --git a/buster.js b/buster.jsindex 4485daef6..04be53e58 100644--- a/buster.js+++ b/buster.js@@ -15,10 +15,10 @@ config["wv"] = {rootPath: "./",environment: "browser",libs: [- "src/ext/wv.main/lodash-2.4.1/lodash.js",- "src/ext/wv.main/jquery-1.6.4/jquery.js",- "src/ext/wv.main/jscache-gitba01cdc/cache.js",- "src/ext/wv.ui/yui-2.9.0/yui.js"+ "src/ext/main/lodash-2.4.1/lodash.js",+ "src/ext/main/jquery-1.6.4/jquery.js",+ "src/ext/main/jscache-gitba01cdc/cache.js",+ "src/ext/ui/yui-2.9.0/yui.js"],src: ["src/js/wv.*.js",diff --git a/conf/web/main/layers/amsr-e/AMSRE_Brightness_Temp_89H_Day.json b/conf/web/main/layers/amsr-e/AMSRE_Brightness_Temp_89H_Day.jsonindex 4d920ce8d..24fb2d213 100644--- a/conf/web/main/layers/amsr-e/AMSRE_Brightness_Temp_89H_Day.json+++ b/conf/web/main/layers/amsr-e/AMSRE_Brightness_Temp_89H_Day.json@@ -5,6 +5,7 @@"title": "Brightness Temperature (89H GHz B Scan, Day)","subtitle": "Aqua / AMSR-E","group": "overlays",+ "inactive": "true","palette": {"id": "AEL2A_89H_LL_A"diff --git a/conf/web/main/layers/amsr-e/AMSRE_Brightness_Temp_89H_Night.json b/conf/web/main/layers/amsr-e/AMSRE_Brightness_Temp_89H_Night.jsonindex 9805e1231..e234f605c 100644--- a/conf/web/main/layers/amsr-e/AMSRE_Brightness_Temp_89H_Night.json+++ b/conf/web/main/layers/amsr-e/AMSRE_Brightness_Temp_89H_Night.json@@ -5,6 +5,7 @@"title": "Brightness Temperature (89H GHz B Scan, Night)","subtitle": "Aqua / AMSR-E","group": "overlays",+ "inactive": "true","palette": {"id": "AEL2A_89H_LL_D"diff --git a/conf/web/main/layers/amsr-e/AMSRE_Brightness_Temp_89V_Day.json b/conf/web/main/layers/amsr-e/AMSRE_Brightness_Temp_89V_Day.jsonindex 258c214fe..7738f99d7 100644--- a/conf/web/main/layers/amsr-e/AMSRE_Brightness_Temp_89V_Day.json+++ b/conf/web/main/layers/amsr-e/AMSRE_Brightness_Temp_89V_Day.json@@ -5,6 +5,7 @@"title": "Brightness Temperature (89V GHz B Scan, Day)","subtitle": "Aqua / AMSR-E","group": "overlays",+ "inactive": "true","palette": {"id": "AEL2A_89V_LL_A"diff --git a/conf/web/main/layers/amsr-e/AMSRE_Brightness_Temp_89V_Night.json b/conf/web/main/layers/amsr-e/AMSRE_Brightness_Temp_89V_Night.jsonindex 24e3713b1..805b1b6d8 100644--- a/conf/web/main/layers/amsr-e/AMSRE_Brightness_Temp_89V_Night.json+++ b/conf/web/main/layers/amsr-e/AMSRE_Brightness_Temp_89V_Night.json@@ -5,6 +5,7 @@"title": "Brightness Temperature (89V GHz B Scan, Night)","subtitle": "Aqua / AMSR-E","group": "overlays",+ "inactive": "true","palette": {"id": "AEL2A_89V_LL_D"diff --git a/conf/web/main/layers/measures/MEaSUREs_Daily_Landscape_Freeze_Thaw_AMSRE.json b/conf/web/main/layers/measures/MEaSUREs_Daily_Landscape_Freeze_Thaw_AMSRE.jsonindex ed6d7ea08..64b080db2 100644--- a/conf/web/main/layers/measures/MEaSUREs_Daily_Landscape_Freeze_Thaw_AMSRE.json+++ b/conf/web/main/layers/measures/MEaSUREs_Daily_Landscape_Freeze_Thaw_AMSRE.json@@ -5,6 +5,7 @@"title": "Freeze/Thaw (Daily Landscape)","subtitle": "Aqua / AMSR-E","group": "overlays",+ "inactive": "true","palette": {"id": "freezethaw_amsre",diff --git a/conf/web/main/layers/measures/MEaSUREs_Daily_Landscape_Freeze_Thaw_SSMI.json b/conf/web/main/layers/measures/MEaSUREs_Daily_Landscape_Freeze_Thaw_SSMI.jsonindex 9f174eafb..ab9698e3e 100644--- a/conf/web/main/layers/measures/MEaSUREs_Daily_Landscape_Freeze_Thaw_SSMI.json+++ b/conf/web/main/layers/measures/MEaSUREs_Daily_Landscape_Freeze_Thaw_SSMI.json@@ -5,6 +5,7 @@"title": "Freeze/Thaw (Daily Landscape)","subtitle": "DMSP / SSMI","group": "overlays",+ "inactive": "true","palette": {"id": "freezethaw_ssmi",diff --git a/python_install b/python_installindex d078852b3..2b6ba3c06 100755--- a/python_install+++ b/python_install@@ -15,7 +15,9 @@ PIP="$BASE_DIR"/python/bin/pip# virtualenv 1.11 is broken# http://stackoverflow.com/questions/20916712/cannot-create-virtualenv-instance-in-python-2-7-5-because-of-pip-installation-er-sudo easy_install virtualenv==1.10.1+if [ ! -e /usr/bin/virtualenv ] && [ ! -e /usr/local/bin/virtualenv ] ; then+ sudo easy_install virtualenv==1.10.1+fivirtualenv python$PIP install xmltodictdiff --git a/src/js/layers/wv.layers.model.js b/src/js/layers/wv.layers.model.jsindex 5c947fed3..b928571e2 100644--- a/src/js/layers/wv.layers.model.js+++ b/src/js/layers/wv.layers.model.js@@ -83,10 +83,15 @@ wv.layers.model = wv.layers.model || function(models, config) {var start = wv.util.parseDateUTC(layer.startDate).getTime();min = Math.min(min, start);}- if ( layer.endDate ) {+ // For now, we assume that any layer with an end date is+ // an ongoing product unless it is marked as inactive.+ if ( layer.inactive && layer.endDate ) {range = true;var end = wv.util.parseDateUTC(layer.endDate).getTime();max = Math.max(max, end);+ } else if ( layer.endDate ) {+ range = true;+ max = wv.util.today().getTime();}// If there is a start date but no end date, this is a// product that is currently being created each day, set