Interactive interface for browsing global, full-resolution satellite imagery
SEDAC layers in
Mike McGannb675ae17211c
diff --git a/etc/ant/js.build.xml b/etc/ant/js.build.xmlindex 1b69e490e..6055c7919 100644--- a/etc/ant/js.build.xml+++ b/etc/ant/js.build.xml@@ -111,6 +111,7 @@<file name="js/Worldview/DataDownload/Handler/MODISGrid.js"/><file name="js/Worldview/DataDownload/Handler/MODISMix.js"/><file name="js/Worldview/DataDownload/Handler/List.js"/>+ <file name="js/Worldview/DataDownload/Handler/CollectionList.js"/><file name="js/Worldview/DataDownload/Layers/Button.js"/><file name="js/Worldview/DataDownload/Layers/Grid.js"/>@@ -130,6 +131,7 @@<file name="js/Worldview/DataDownload/Results/MODISGridIndex.js"/><file name="js/Worldview/DataDownload/Results/MODISGridLabel.js"/><file name="js/Worldview/DataDownload/Results/PreferredFilter.js"/>+ <file name="js/Worldview/DataDownload/Results/ProductLabel.js"/><file name="js/Worldview/DataDownload/Results/TagNRT.js"/><file name="js/Worldview/DataDownload/Results/TagProduct.js"/><file name="js/Worldview/DataDownload/Results/TagList.js"/>diff --git a/etc/config/config/layers/ndh-cyclone-hazard-frequency-distribution.json b/etc/config/config/layers/ndh-cyclone-hazard-frequency-distribution.jsonindex 44b2f4ac0..e5a57136c 100644--- a/etc/config/config/layers/ndh-cyclone-hazard-frequency-distribution.json+++ b/etc/config/config/layers/ndh-cyclone-hazard-frequency-distribution.json@@ -21,5 +21,6 @@"type": "wms","url": ["http://sedac.ciesin.columbia.edu/geoserver/ows"- ]+ ],+ "product": "CIESIN_CHRR_NDH_CYCLONE_HFD"}diff --git a/etc/config/config/layers/ndh-cyclone-mortality-risks-distribution.json b/etc/config/config/layers/ndh-cyclone-mortality-risks-distribution.jsonindex 2a7dbf3c6..e46f2aa7e 100644--- a/etc/config/config/layers/ndh-cyclone-mortality-risks-distribution.json+++ b/etc/config/config/layers/ndh-cyclone-mortality-risks-distribution.json@@ -21,5 +21,6 @@"type": "wms","url": ["http://sedac.ciesin.columbia.edu/geoserver/ows"- ]+ ],+ "product": "CIESIN_CHRR_NDH_CYCLONE_MRD"}diff --git a/etc/config/config/layers/ndh-cyclone-proportional-economic-loss-risk-deciles.json b/etc/config/config/layers/ndh-cyclone-proportional-economic-loss-risk-deciles.jsonindex 0ead5cd26..e0011d58a 100644--- a/etc/config/config/layers/ndh-cyclone-proportional-economic-loss-risk-deciles.json+++ b/etc/config/config/layers/ndh-cyclone-proportional-economic-loss-risk-deciles.json@@ -21,5 +21,6 @@"type": "wms","url": ["http://sedac.ciesin.columbia.edu/geoserver/ows"- ]+ ],+ "product": "CIESIN_CHRR_NDH_CYCLONE_PELRD"}diff --git a/etc/config/config/layers/ndh-drought-hazard-frequency-distribution.json b/etc/config/config/layers/ndh-drought-hazard-frequency-distribution.jsonindex 60aedce45..02c4e2ffb 100644--- a/etc/config/config/layers/ndh-drought-hazard-frequency-distribution.json+++ b/etc/config/config/layers/ndh-drought-hazard-frequency-distribution.json@@ -21,5 +21,6 @@"type": "wms","url": ["http://sedac.ciesin.columbia.edu/geoserver/ows"- ]+ ],+ "product": "CIESIN_CHRR_NDH_DROUGHT_HFD"}diff --git a/etc/config/config/layers/ndh-drought-mortality-risks-distribution.json b/etc/config/config/layers/ndh-drought-mortality-risks-distribution.jsonindex 1a20a28df..3e027326c 100644--- a/etc/config/config/layers/ndh-drought-mortality-risks-distribution.json+++ b/etc/config/config/layers/ndh-drought-mortality-risks-distribution.json@@ -21,5 +21,6 @@"type": "wms","url": ["http://sedac.ciesin.columbia.edu/geoserver/ows"- ]+ ],+ "product": "CIESIN_CHRR_NDH_DROUGHT_MRD"}diff --git a/etc/config/config/layers/ndh-drought-proportional-economic-loss-risk-deciles.json b/etc/config/config/layers/ndh-drought-proportional-economic-loss-risk-deciles.jsonindex 526bafe9c..bcceeabb3 100644--- a/etc/config/config/layers/ndh-drought-proportional-economic-loss-risk-deciles.json+++ b/etc/config/config/layers/ndh-drought-proportional-economic-loss-risk-deciles.json@@ -21,5 +21,6 @@"type": "wms","url": ["http://sedac.ciesin.columbia.edu/geoserver/ows"- ]+ ],+ "product": "CIESIN_CHRR_NDH_DROUGHT_PELRD"}diff --git a/etc/config/config/layers/ndh-flood-hazard-frequency-distribution.json b/etc/config/config/layers/ndh-flood-hazard-frequency-distribution.jsonindex eac6a16ca..39c63416d 100644--- a/etc/config/config/layers/ndh-flood-hazard-frequency-distribution.json+++ b/etc/config/config/layers/ndh-flood-hazard-frequency-distribution.json@@ -21,5 +21,6 @@"type": "wms","url": ["http://sedac.ciesin.columbia.edu/geoserver/ows"- ]+ ],+ "product": "CIESIN_CHRR_NDH_FLOOD_HFD"}diff --git a/etc/config/config/layers/ndh-flood-mortality-risks-distribution.json b/etc/config/config/layers/ndh-flood-mortality-risks-distribution.jsonindex b5d133c16..2b1d8479a 100644--- a/etc/config/config/layers/ndh-flood-mortality-risks-distribution.json+++ b/etc/config/config/layers/ndh-flood-mortality-risks-distribution.json@@ -21,5 +21,6 @@"type": "wms","url": ["http://sedac.ciesin.columbia.edu/geoserver/ows"- ]+ ],+ "product": "CIESIN_CHRR_NDH_FLOOD_MRD"}diff --git a/etc/config/config/layers/ndh-flood-proportional-economic-loss-risk-deciles.json b/etc/config/config/layers/ndh-flood-proportional-economic-loss-risk-deciles.jsonindex a21a6b0f5..a84f4658e 100644--- a/etc/config/config/layers/ndh-flood-proportional-economic-loss-risk-deciles.json+++ b/etc/config/config/layers/ndh-flood-proportional-economic-loss-risk-deciles.json@@ -21,5 +21,6 @@"type": "wms","url": ["http://sedac.ciesin.columbia.edu/geoserver/ows"- ]+ ],+ "product": "CIESIN_CHRR_NDH_FLOOD_PELRD"}diff --git a/etc/config/config/layers/ndh-volcano-hazard-frequency-distribution.json b/etc/config/config/layers/ndh-volcano-hazard-frequency-distribution.jsonindex d7a4fa13c..246392b9f 100644--- a/etc/config/config/layers/ndh-volcano-hazard-frequency-distribution.json+++ b/etc/config/config/layers/ndh-volcano-hazard-frequency-distribution.json@@ -21,5 +21,6 @@"type": "wms","url": ["http://sedac.ciesin.columbia.edu/geoserver/ows"- ]+ ],+ "product": "CIESIN_CHRR_NDH_VOLCANO_HFD"}diff --git a/etc/config/config/layers/ndh-volcano-mortality-risks-distribution.json b/etc/config/config/layers/ndh-volcano-mortality-risks-distribution.jsonindex 8920ef51d..148907018 100644--- a/etc/config/config/layers/ndh-volcano-mortality-risks-distribution.json+++ b/etc/config/config/layers/ndh-volcano-mortality-risks-distribution.json@@ -21,5 +21,6 @@"type": "wms","url": ["http://sedac.ciesin.columbia.edu/geoserver/ows"- ]+ ],+ "product": "CIESIN_CHRR_NDH_VOLCANO_MRD"}diff --git a/etc/config/config/layers/ndh-volcano-proportional-economic-loss-risk-deciles.json b/etc/config/config/layers/ndh-volcano-proportional-economic-loss-risk-deciles.jsonindex b0d38f61e..bbda79f77 100644--- a/etc/config/config/layers/ndh-volcano-proportional-economic-loss-risk-deciles.json+++ b/etc/config/config/layers/ndh-volcano-proportional-economic-loss-risk-deciles.json@@ -21,5 +21,6 @@"type": "wms","url": ["http://sedac.ciesin.columbia.edu/geoserver/ows"- ]+ ],+ "product": "CIESIN_CHRR_NDH_VOLCANO_PELRD"}diff --git a/etc/config/config/products/CIESIN_CHRR_NDH_CYCLONE_HFD.json b/etc/config/config/products/CIESIN_CHRR_NDH_CYCLONE_HFD.jsonnew file mode 100644index 000000000..808cbe438--- /dev/null+++ b/etc/config/config/products/CIESIN_CHRR_NDH_CYCLONE_HFD.json@@ -0,0 +1,9 @@+{+ "name": "Global Cyclone Hazard Frequency and Distribution",+ "handler": "CollectionList",+ "query": {+ "collection": "true",+ "shortName": "CIESIN_CHRR_NDH_CYCLONE_HFD",+ "dataCenterId": "SEDAC"+ }+}\ No newline at end of filediff --git a/etc/config/config/products/CIESIN_CHRR_NDH_CYCLONE_MRD.json b/etc/config/config/products/CIESIN_CHRR_NDH_CYCLONE_MRD.jsonnew file mode 100644index 000000000..a01cc3869--- /dev/null+++ b/etc/config/config/products/CIESIN_CHRR_NDH_CYCLONE_MRD.json@@ -0,0 +1,9 @@+{+ "name": "Global Cyclone Mortality Risks and Distribution",+ "handler": "CollectionList",+ "query": {+ "collection": "true",+ "shortName": "CIESIN_CHRR_NDH_CYCLONE_MRD",+ "dataCenterId": "SEDAC"+ }+}\ No newline at end of filediff --git a/etc/config/config/products/CIESIN_CHRR_NDH_CYCLONE_PELRD.json b/etc/config/config/products/CIESIN_CHRR_NDH_CYCLONE_PELRD.jsonnew file mode 100644index 000000000..770c82010--- /dev/null+++ b/etc/config/config/products/CIESIN_CHRR_NDH_CYCLONE_PELRD.json@@ -0,0 +1,9 @@+{+ "name": "Global Cyclone Proportional Economic Loss Risk Deciles",+ "handler": "CollectionList",+ "query": {+ "collection": "true",+ "shortName": "CIESIN_CHRR_NDH_CYCLONE_PELRD",+ "dataCenterId": "SEDAC"+ }+}\ No newline at end of filediff --git a/etc/config/config/products/CIESIN_CHRR_NDH_DROUGHT_HFD.json b/etc/config/config/products/CIESIN_CHRR_NDH_DROUGHT_HFD.jsonnew file mode 100644index 000000000..e5010cc79--- /dev/null+++ b/etc/config/config/products/CIESIN_CHRR_NDH_DROUGHT_HFD.json@@ -0,0 +1,9 @@+{+ "name": "Global Drought Hazard Frequency and Distribution",+ "handler": "CollectionList",+ "query": {+ "collection": "true",+ "shortName": "CIESIN_CHRR_NDH_DROUGHT_HFD",+ "dataCenterId": "SEDAC"+ }+}diff --git a/etc/config/config/products/CIESIN_CHRR_NDH_DROUGHT_MRD.json b/etc/config/config/products/CIESIN_CHRR_NDH_DROUGHT_MRD.jsonnew file mode 100644index 000000000..9ee5f3770--- /dev/null+++ b/etc/config/config/products/CIESIN_CHRR_NDH_DROUGHT_MRD.json@@ -0,0 +1,9 @@+{+ "name": "Global Drought Mortality Risks and Distribution",+ "handler": "CollectionList",+ "query": {+ "collection": "true",+ "shortName": "CIESIN_CHRR_NDH_DROUGHT_MRD",+ "dataCenterId": "SEDAC"+ }+}diff --git a/etc/config/config/products/CIESIN_CHRR_NDH_DROUGHT_PELRD.json b/etc/config/config/products/CIESIN_CHRR_NDH_DROUGHT_PELRD.jsonnew file mode 100644index 000000000..74d1dc08e--- /dev/null+++ b/etc/config/config/products/CIESIN_CHRR_NDH_DROUGHT_PELRD.json@@ -0,0 +1,9 @@+{+ "name": "Global Drought Proportional Economic Loss Risk Deciles",+ "handler": "CollectionList",+ "query": {+ "collection": "true",+ "shortName": "CIESIN_CHRR_NDH_DROUGHT_PELRD",+ "dataCenterId": "SEDAC"+ }+}\ No newline at end of filediff --git a/etc/config/config/products/CIESIN_CHRR_NDH_FLOOD_HFD.json b/etc/config/config/products/CIESIN_CHRR_NDH_FLOOD_HFD.jsonnew file mode 100644index 000000000..6ba953371--- /dev/null+++ b/etc/config/config/products/CIESIN_CHRR_NDH_FLOOD_HFD.json@@ -0,0 +1,9 @@+{+ "name": "Global Flood Hazard Frequency and Distribution",+ "handler": "CollectionList",+ "query": {+ "collection": "true",+ "shortName": "CIESIN_CHRR_NDH_FLOOD_HFD",+ "dataCenterId": "SEDAC"+ }+}\ No newline at end of filediff --git a/etc/config/config/products/CIESIN_CHRR_NDH_FLOOD_MRD.json b/etc/config/config/products/CIESIN_CHRR_NDH_FLOOD_MRD.jsonnew file mode 100644index 000000000..53b10a677--- /dev/null+++ b/etc/config/config/products/CIESIN_CHRR_NDH_FLOOD_MRD.json@@ -0,0 +1,9 @@+{+ "name": "Global Flood Mortality Risks and Distribution",+ "handler": "CollectionList",+ "query": {+ "collection": "true",+ "shortName": "CIESIN_CHRR_NDH_FLOOD_MRD",+ "dataCenterId": "SEDAC"+ }+}\ No newline at end of filediff --git a/etc/config/config/products/CIESIN_CHRR_NDH_FLOOD_PELRD.json b/etc/config/config/products/CIESIN_CHRR_NDH_FLOOD_PELRD.jsonnew file mode 100644index 000000000..3da58d9d0--- /dev/null+++ b/etc/config/config/products/CIESIN_CHRR_NDH_FLOOD_PELRD.json@@ -0,0 +1,9 @@+{+ "name": "Global Flood Proportional Economic Loss Risk Deciles",+ "handler": "CollectionList",+ "query": {+ "collection": "true",+ "shortName": "CIESIN_CHRR_NDH_FLOOD_PELRD",+ "dataCenterId": "SEDAC"+ }+}\ No newline at end of filediff --git a/etc/config/config/products/CIESIN_CHRR_NDH_VOLCANO_HFD.json b/etc/config/config/products/CIESIN_CHRR_NDH_VOLCANO_HFD.jsonnew file mode 100644index 000000000..b0ccd108c--- /dev/null+++ b/etc/config/config/products/CIESIN_CHRR_NDH_VOLCANO_HFD.json@@ -0,0 +1,9 @@+{+ "name": "Global Volcano Hazard Frequency and Distribution",+ "handler": "CollectionList",+ "query": {+ "collection": "true",+ "shortName": "CIESIN_CHRR_NDH_VOLCANO_HFD",+ "dataCenterId": "SEDAC"+ }+}\ No newline at end of filediff --git a/etc/config/config/products/CIESIN_CHRR_NDH_VOLCANO_MRD.json b/etc/config/config/products/CIESIN_CHRR_NDH_VOLCANO_MRD.jsonnew file mode 100644index 000000000..af6faa66c--- /dev/null+++ b/etc/config/config/products/CIESIN_CHRR_NDH_VOLCANO_MRD.json@@ -0,0 +1,9 @@+{+ "name": "Global Volcano Mortality Risks and Distribution",+ "handler": "CollectionList",+ "query": {+ "collection": "true",+ "shortName": "CIESIN_CHRR_NDH_VOLCANO_MRD",+ "dataCenterId": "SEDAC"+ }+}\ No newline at end of filediff --git a/etc/config/config/products/CIESIN_CHRR_NDH_VOLCANO_PELRD.json b/etc/config/config/products/CIESIN_CHRR_NDH_VOLCANO_PELRD.jsonnew file mode 100644index 000000000..e5536cc9b--- /dev/null+++ b/etc/config/config/products/CIESIN_CHRR_NDH_VOLCANO_PELRD.json@@ -0,0 +1,9 @@+{+ "name": "Global Volcano Proportional Economic Loss Risk Deciles",+ "handler": "CollectionList",+ "query": {+ "collection": "true",+ "shortName": "CIESIN_CHRR_NDH_VOLCANO_PELRD",+ "dataCenterId": "SEDAC"+ }+}\ No newline at end of filediff --git a/src/data/config.json b/src/data/config.jsonindex 2f5893e25..d1efe60fe 100644--- a/src/data/config.json+++ b/src/data/config.json@@ -7036,6 +7036,7 @@"transparent": "true"},"period": "static",+ "product": "CIESIN_CHRR_NDH_CYCLONE_HFD","projections": {"geographic": {}},@@ -7061,6 +7062,7 @@"transparent": "true"},"period": "static",+ "product": "CIESIN_CHRR_NDH_CYCLONE_MRD","projections": {"geographic": {}},@@ -7086,6 +7088,7 @@"transparent": "true"},"period": "static",+ "product": "CIESIN_CHRR_NDH_CYCLONE_PELRD","projections": {"geographic": {}},@@ -7111,6 +7114,7 @@"transparent": "true"},"period": "static",+ "product": "CIESIN_CHRR_NDH_DROUGHT_HFD","projections": {"geographic": {}},@@ -7136,6 +7140,7 @@"transparent": "true"},"period": "static",+ "product": "CIESIN_CHRR_NDH_DROUGHT_MRD","projections": {"geographic": {}},@@ -7161,6 +7166,7 @@"transparent": "true"},"period": "static",+ "product": "CIESIN_CHRR_NDH_DROUGHT_PELRD","projections": {"geographic": {}},@@ -7186,6 +7192,7 @@"transparent": "true"},"period": "static",+ "product": "CIESIN_CHRR_NDH_FLOOD_HFD","projections": {"geographic": {}},@@ -7211,6 +7218,7 @@"transparent": "true"},"period": "static",+ "product": "CIESIN_CHRR_NDH_FLOOD_MRD","projections": {"geographic": {}},@@ -7236,6 +7244,7 @@"transparent": "true"},"period": "static",+ "product": "CIESIN_CHRR_NDH_FLOOD_PELRD","projections": {"geographic": {}},@@ -7261,6 +7270,7 @@"transparent": "true"},"period": "static",+ "product": "CIESIN_CHRR_NDH_VOLCANO_HFD","projections": {"geographic": {}},@@ -7286,6 +7296,7 @@"transparent": "true"},"period": "static",+ "product": "CIESIN_CHRR_NDH_VOLCANO_MRD","projections": {"geographic": {}},@@ -7311,6 +7322,7 @@"transparent": "true"},"period": "static",+ "product": "CIESIN_CHRR_NDH_VOLCANO_PELRD","projections": {"geographic": {}},@@ -59899,6 +59911,114 @@]}},+ "CIESIN_CHRR_NDH_CYCLONE_HFD": {+ "handler": "CollectionList",+ "name": "Global Cyclone Hazard Frequency and Distribution",+ "query": {+ "collection": "true",+ "dataCenterId": "SEDAC",+ "shortName": "CIESIN_CHRR_NDH_CYCLONE_HFD"+ }+ },+ "CIESIN_CHRR_NDH_CYCLONE_MRD": {+ "handler": "CollectionList",+ "name": "Global Cyclone Mortality Risks and Distribution",+ "query": {+ "collection": "true",+ "dataCenterId": "SEDAC",+ "shortName": "CIESIN_CHRR_NDH_CYCLONE_MRD"+ }+ },+ "CIESIN_CHRR_NDH_CYCLONE_PELRD": {+ "handler": "CollectionList",+ "name": "Global Cyclone Proportional Economic Loss Risk Deciles",+ "query": {+ "collection": "true",+ "dataCenterId": "SEDAC",+ "shortName": "CIESIN_CHRR_NDH_CYCLONE_PELRD"+ }+ },+ "CIESIN_CHRR_NDH_DROUGHT_HFD": {+ "handler": "CollectionList",+ "name": "Global Drought Hazard Frequency and Distribution",+ "query": {+ "collection": "true",+ "dataCenterId": "SEDAC",+ "shortName": "CIESIN_CHRR_NDH_DROUGHT_HFD"+ }+ },+ "CIESIN_CHRR_NDH_DROUGHT_MRD": {+ "handler": "CollectionList",+ "name": "Global Drought Mortality Risks and Distribution",+ "query": {+ "collection": "true",+ "dataCenterId": "SEDAC",+ "shortName": "CIESIN_CHRR_NDH_DROUGHT_MRD"+ }+ },+ "CIESIN_CHRR_NDH_DROUGHT_PELRD": {+ "handler": "CollectionList",+ "name": "Global Drought Proportional Economic Loss Risk Deciles",+ "query": {+ "collection": "true",+ "dataCenterId": "SEDAC",+ "shortName": "CIESIN_CHRR_NDH_DROUGHT_PELRD"+ }+ },+ "CIESIN_CHRR_NDH_FLOOD_HFD": {+ "handler": "CollectionList",+ "name": "Global Flood Hazard Frequency and Distribution",+ "query": {+ "collection": "true",+ "dataCenterId": "SEDAC",+ "shortName": "CIESIN_CHRR_NDH_FLOOD_HFD"+ }+ },+ "CIESIN_CHRR_NDH_FLOOD_MRD": {+ "handler": "CollectionList",+ "name": "Global Flood Mortality Risks and Distribution",+ "query": {+ "collection": "true",+ "dataCenterId": "SEDAC",+ "shortName": "CIESIN_CHRR_NDH_FLOOD_MRD"+ }+ },+ "CIESIN_CHRR_NDH_FLOOD_PELRD": {+ "handler": "CollectionList",+ "name": "Global Flood Proportional Economic Loss Risk Deciles",+ "query": {+ "collection": "true",+ "dataCenterId": "SEDAC",+ "shortName": "CIESIN_CHRR_NDH_FLOOD_PELRD"+ }+ },+ "CIESIN_CHRR_NDH_VOLCANO_HFD": {+ "handler": "CollectionList",+ "name": "Global Volcano Hazard Frequency and Distribution",+ "query": {+ "collection": "true",+ "dataCenterId": "SEDAC",+ "shortName": "CIESIN_CHRR_NDH_VOLCANO_HFD"+ }+ },+ "CIESIN_CHRR_NDH_VOLCANO_MRD": {+ "handler": "CollectionList",+ "name": "Global Volcano Mortality Risks and Distribution",+ "query": {+ "collection": "true",+ "dataCenterId": "SEDAC",+ "shortName": "CIESIN_CHRR_NDH_VOLCANO_MRD"+ }+ },+ "CIESIN_CHRR_NDH_VOLCANO_PELRD": {+ "handler": "CollectionList",+ "name": "Global Volcano Proportional Economic Loss Risk Deciles",+ "query": {+ "collection": "true",+ "dataCenterId": "SEDAC",+ "shortName": "CIESIN_CHRR_NDH_VOLCANO_PELRD"+ }+ },"ML2CO": {"handler": "List","name": "MLS/Aura L2 Carbon Monoxide (CO) Mixing Ratio",diff --git a/src/index.html b/src/index.htmlindex c74f70327..3eace659c 100644--- a/src/index.html+++ b/src/index.html@@ -173,6 +173,7 @@<!-- link.dev --> <script type="text/javascript" src="js/Worldview/DataDownload/Handler/MODISGrid.js"></script><!-- link.dev --> <script type="text/javascript" src="js/Worldview/DataDownload/Handler/MODISMix.js"></script><!-- link.dev --> <script type="text/javascript" src="js/Worldview/DataDownload/Handler/List.js"></script>+ <!-- link.dev --> <script type="text/javascript" src="js/Worldview/DataDownload/Handler/CollectionList.js"></script><!-- link.dev --> <script type="text/javascript" src="js/Worldview/DataDownload/Layers/Button.js"></script><!-- link.dev --> <script type="text/javascript" src="js/Worldview/DataDownload/Layers/Grid.js"></script>@@ -192,6 +193,7 @@<!-- link.dev --> <script type="text/javascript" src="js/Worldview/DataDownload/Results/MODISGridIndex.js"></script><!-- link.dev --> <script type="text/javascript" src="js/Worldview/DataDownload/Results/MODISGridLabel.js"></script><!-- link.dev --> <script type="text/javascript" src="js/Worldview/DataDownload/Results/PreferredFilter.js"></script>+ <!-- link.dev --> <script type="text/javascript" src="js/Worldview/DataDownload/Results/ProductLabel.js"></script><!-- link.dev --> <script type="text/javascript" src="js/Worldview/DataDownload/Results/TagList.js"></script><!-- link.dev --> <script type="text/javascript" src="js/Worldview/DataDownload/Results/TagProduct.js"></script><!-- link.dev --> <script type="text/javascript" src="js/Worldview/DataDownload/Results/TagNRT.js"></script>diff --git a/src/js/Worldview/DataDownload/ECHO/Client.js b/src/js/Worldview/DataDownload/ECHO/Client.jsindex 7bb359a95..c3d550444 100644--- a/src/js/Worldview/DataDownload/ECHO/Client.js+++ b/src/js/Worldview/DataDownload/ECHO/Client.js@@ -48,17 +48,19 @@ Worldview.DataDownload.ECHO.Client = function(spec) {var endTimeDelta = parameters.endTimeDelta || 0;var t = parameters.time;- var startTime = new Date(Date.UTC(- t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate(),- 0, 0 + startTimeDelta, 0- ));- var endTime = new Date(Date.UTC(- t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate(),- 23, 59 + endTimeDelta, 59- ));-- queryParameters.data.startTime = startTime.toTimestampUTC();- queryParameters.data.endTime = endTime.toTimestampUTC();+ if ( t ) {+ var startTime = new Date(Date.UTC(+ t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate(),+ 0, 0 + startTimeDelta, 0+ ));+ var endTime = new Date(Date.UTC(+ t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate(),+ 23, 59 + endTimeDelta, 59+ ));++ queryParameters.data.startTime = startTime.toTimestampUTC();+ queryParameters.data.endTime = endTime.toTimestampUTC();+ }var deferred = $.Deferred();ns.ajax.submit(queryParameters).done(function(data) {diff --git a/src/js/Worldview/DataDownload/Handler.js b/src/js/Worldview/DataDownload/Handler.jsindex ad09e9497..b2f7961bb 100644--- a/src/js/Worldview/DataDownload/Handler.js+++ b/src/js/Worldview/DataDownload/Handler.js@@ -22,6 +22,7 @@ Worldview.DataDownload.Handler = function() {ns.getByName = function(name) {var map = {"AquaSwathMultiDay": Worldview.DataDownload.Handler.AquaSwathMultiDay,+ "CollectionList": Worldview.DataDownload.Handler.CollectionList,"List": Worldview.DataDownload.Handler.List,"MODISGrid": Worldview.DataDownload.Handler.MODISGrid,"MODISMix": Worldview.DataDownload.Handler.MODISMix,diff --git a/src/js/Worldview/DataDownload/Handler/CollectionList.js b/src/js/Worldview/DataDownload/Handler/CollectionList.jsnew file mode 100644index 000000000..84010a356--- /dev/null+++ b/src/js/Worldview/DataDownload/Handler/CollectionList.js@@ -0,0 +1,47 @@+/*+ * NASA Worldview+ *+ * This code was originally developed at NASA/Goddard Space Flight Center for+ * the Earth Science Data and Information System (ESDIS) project.+ *+ * Copyright (C) 2013 United States Government as represented by the+ * Administrator of the National Aeronautics and Space Administration.+ * All Rights Reserved.+ */++/**+ * @module Worldview.DataDownload.Handler+ */+Worldview.namespace("DataDownload.Handler");++Worldview.DataDownload.Handler.CollectionList = function(config, model, spec) {++ var self = Worldview.DataDownload.Handler.Base(config, model);++ self._submit = function(queryData) {+ var queryOptions = {+ data: queryData+ };++ return self.echo.submit(queryOptions);+ };++ self._processResults = function(data) {+ var results = {+ meta: {},+ granules: data+ };++ var ns = Worldview.DataDownload;+ var productConfig = config.products[model.selectedProduct];+ var chain = ns.Results.Chain();+ chain.processes = [+ ns.Results.TagList(),+ ns.Results.TagProduct(model.selectedProduct),+ ns.Results.ProductLabel(config.products[model.selectedProduct].name)+ ];+ return chain.process(results);+ };++ return self;+};\ No newline at end of filediff --git a/src/js/Worldview/DataDownload/Model.js b/src/js/Worldview/DataDownload/Model.jsindex 38878c259..d2e8a90a1 100644--- a/src/js/Worldview/DataDownload/Model.js+++ b/src/js/Worldview/DataDownload/Model.js@@ -25,7 +25,7 @@ Worldview.DataDownload.Model = function(config) {var NO_PRODUCT_ID = "__NO_PRODUCT";var NO_PRODUCT = {- name: "Not available",+ name: "Not available for download",notSelectable: true};diff --git a/src/js/Worldview/DataDownload/Results/ProductLabel.js b/src/js/Worldview/DataDownload/Results/ProductLabel.jsnew file mode 100644index 000000000..9216bca15--- /dev/null+++ b/src/js/Worldview/DataDownload/Results/ProductLabel.js@@ -0,0 +1,30 @@+/*+ * NASA Worldview+ *+ * This code was originally developed at NASA/Goddard Space Flight Center for+ * the Earth Science Data and Information System (ESDIS) project.+ *+ * Copyright (C) 2013 United States Government as represented by the+ * Administrator of the National Aeronautics and Space Administration.+ * All Rights Reserved.+ */++/**+ * @module Worldview.DataDownload+ */+Worldview.namespace("DataDownload.Results");++Worldview.DataDownload.Results.ProductLabel = function(name) {++ var self = {};++ self.name = "ProductLabel";++ self.process = function(meta, granule) {+ granule.label = name;+ return granule;+ };++ return self;++};\ No newline at end of filediff --git a/src/js/Worldview/DataDownload/Results/TimeLabel.js b/src/js/Worldview/DataDownload/Results/TimeLabel.jsindex c0c9b08c3..85dd5d512 100644--- a/src/js/Worldview/DataDownload/Results/TimeLabel.js+++ b/src/js/Worldview/DataDownload/Results/TimeLabel.js@@ -22,7 +22,12 @@ Worldview.DataDownload.Results.TimeLabel = function(time) {self.process = function(meta, granule) {var timeStart = Date.parseISOString(granule.time_start);- var timeEnd = Date.parseISOString(granule.time_end);++ // Sometimes an end time is not provided by ECHO+ var timeEnd;+ if ( granule.time_end ) {+ timeEnd = Date.parseISOString(granule.time_end);+ }var diff = Math.floor((timeStart.getTime() - time.getTime()) / (1000 * 60 * 60 * 24)@@ -37,8 +42,12 @@ Worldview.DataDownload.Results.TimeLabel = function(time) {}}var displayStart = timeStart.toISOStringTimeHM();- var displayEnd = timeEnd.toISOStringTimeHM();-+ var displayEnd = null;+ if ( timeEnd ) {+ displayEnd = timeEnd.toISOStringTimeHM();+ } else {+ displayEnd = "?";+ }granule.label = displayStart + " - " + displayEnd + suffix;granule.downloadLabel = timeStart.toISOStringDate() + ": " +diff --git a/src/js/Worldview/Widget/DataDownload.js b/src/js/Worldview/Widget/DataDownload.jsindex 0f3c3eb1f..dd7b99e4e 100644--- a/src/js/Worldview/Widget/DataDownload.js+++ b/src/js/Worldview/Widget/DataDownload.js@@ -95,7 +95,7 @@ Worldview.Widget.DataDownload = function(config, spec) {list = new SOTE.widget.List(self.containerId, {data: [],selected: "~",- close: true,+ close: false,filter: true,search: false,action: {diff --git a/src/js/list.js b/src/js/list.jsindex 268981a1c..c3020a233 100644--- a/src/js/list.js+++ b/src/js/list.js@@ -84,7 +84,6 @@ SOTE.widget.List = function(containerId, config){this.callback = config.onchange;this.args = config.args;-this.data = config.data;this.selected = this.unserialize(config.selected);diff --git a/src/service/echo.cgi b/src/service/echo.cgiindex fefd87090..2bbec150e 100755--- a/src/service/echo.cgi+++ b/src/service/echo.cgi@@ -19,10 +19,13 @@ import shutilimport sysfrom urllib2 import Request, urlopen, HTTPError-endpoint = "".join(+granule_endpoint = "".join(["https://api.echo.nasa.gov/catalog-rest/echo_catalog/","granules/search.json?client_id=worldview"])-+collection_endpoint = "".join(+ ["https://api.echo.nasa.gov/catalog-rest/echo_catalog/",+ "datasets.json?"])+class RequestError(Exception):"""Exception raised when a missing or an invalid parameter is provided@@ -131,6 +134,10 @@ def aql_date(t):)+def create_query_string(fields):+ return "short_name=" + fields["shortName"].value++def create_xml(fields):"""Creates an XML document given the provided CGI fields@@ -187,7 +194,7 @@ def create_xml(fields):return "\n".join(xml)-def query_echo(options, xml):+def query_echo(url, options, xml):"""Submit an AQL document to ECHO and proxy the results to standard out.@@ -196,11 +203,13 @@ def query_echo(options, xml):- xml: AQL document to submit to ECHO"""- url = endpoint + "&page_size=%s" % options.page_size+ url = url + "&page_size=%s" % options.page_size- headers = {- "Content-type": "application/xml"- }+ headers = {}+ if xml:+ headers = {+ "Content-type": "application/xml"+ }request = Request(url=url, headers=headers, data=xml)fp = None@@ -234,19 +243,29 @@ def process_request(options):if len(fields) == 0:raise RequestError("No parameters")-- required_fields = ["startTime", "endTime", "shortName"]++ if "collection" in fields:+ required_fields = ["shortName"]+ else:+ required_fields = ["startTime", "endTime", "shortName"]for required_field in required_fields:if required_field not in fields:raise RequestError("Missing parameter: %s" % required_field)- xml = create_xml(fields)-- if options.xml:- print xml+ xml = None+ if "collections" in fields:+ xml = create_xml(fields)++ if options.xml:+ print xml+ query_url = granule_endpoint+ else:+ query_url = collection_endpoint + create_query_string(fields)+ if options.url:+ print query_urlif not options.no_query:- query_echo(options, xml)+ query_echo(query_url, options, xml)def parse_options():@@ -265,6 +284,8 @@ def parse_options():help="Change the maximum number of results")parser.add_option("-n", "--no-query", action="store_true",help="Do not execute ECHO query")+ parser.add_option("-u", "--url" ,action="store_true",+ help="Print URL used to access ECHO")parser.add_option("-x", "--xml", action="store_true",help="Print XML to be sent to ECHO")(options, args) = parser.parse_args()@@ -272,6 +293,7 @@ def parse_options():if options.all:options.error = Trueoptions.xml = True+ options.url = Truereturn options