Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Aqua/Aura orbits

Mike McGann2e567a6374b9
diff --git a/conf/web/wv.main/layers/reference/orbits/Aqua_Orbit_Asc.json b/conf/web/wv.main/layers/reference/orbits/Aqua_Orbit_Asc.json
new file mode 100644
index 000000000..8105ae661
--- /dev/null
+++ b/conf/web/wv.main/layers/reference/orbits/Aqua_Orbit_Asc.json
@@ -0,0 +1,26 @@
+{
+ "layers": {
+ "Aqua_Orbit_Asc": {
+ "id": "Aqua_Orbit_Asc",
+ "title": "Orbital Track (Ascending/Day)",
+ "subtitle": "Space-Track.org / Aqua",
+ "group": "overlays",
+ "format": "image/png",
+ "type": "wms",
+ "tileSize": [512, 512],
+ "period": "daily",
+
+ "projections": {
+ "antarctic": {
+ "source": "GIBS:wms"
+ },
+ "arctic": {
+ "source": "GIBS:wms"
+ },
+ "geographic": {
+ "source": "GIBS:wms"
+ }
+ }
+ }
+ }
+}
diff --git a/conf/web/wv.main/layers/reference/orbits/Aqua_Orbit_Dsc.json b/conf/web/wv.main/layers/reference/orbits/Aqua_Orbit_Dsc.json
new file mode 100644
index 000000000..0a2e64e8b
--- /dev/null
+++ b/conf/web/wv.main/layers/reference/orbits/Aqua_Orbit_Dsc.json
@@ -0,0 +1,26 @@
+{
+ "layers": {
+ "Aqua_Orbit_Dsc": {
+ "id": "Aqua_Orbit_Dsc",
+ "title": "Orbital Track (Descending/Night)",
+ "subtitle": "Space-Track.org / Aqua",
+ "group": "overlays",
+ "format": "image/png",
+ "type": "wms",
+ "tileSize": [512, 512],
+ "period": "daily",
+
+ "projections": {
+ "antarctic": {
+ "source": "GIBS:wms"
+ },
+ "arctic": {
+ "source": "GIBS:wms"
+ },
+ "geographic": {
+ "source": "GIBS:wms"
+ }
+ }
+ }
+ }
+}
diff --git a/conf/web/wv.main/layers/reference/orbits/Aura_Orbit_Asc.json b/conf/web/wv.main/layers/reference/orbits/Aura_Orbit_Asc.json
new file mode 100644
index 000000000..fd1b487eb
--- /dev/null
+++ b/conf/web/wv.main/layers/reference/orbits/Aura_Orbit_Asc.json
@@ -0,0 +1,26 @@
+{
+ "layers": {
+ "Aura_Orbit_Asc": {
+ "id": "Aura_Orbit_Asc",
+ "title": "Orbital Track (Ascending/Day)",
+ "subtitle": "Space-Track.org / Aura",
+ "group": "overlays",
+ "format": "image/png",
+ "type": "wms",
+ "tileSize": [512, 512],
+ "period": "daily",
+
+ "projections": {
+ "antarctic": {
+ "source": "GIBS:wms"
+ },
+ "arctic": {
+ "source": "GIBS:wms"
+ },
+ "geographic": {
+ "source": "GIBS:wms"
+ }
+ }
+ }
+ }
+}
diff --git a/conf/web/wv.main/layers/reference/orbits/Aura_Orbit_Dsc.json b/conf/web/wv.main/layers/reference/orbits/Aura_Orbit_Dsc.json
new file mode 100644
index 000000000..2cdef37dd
--- /dev/null
+++ b/conf/web/wv.main/layers/reference/orbits/Aura_Orbit_Dsc.json
@@ -0,0 +1,26 @@
+{
+ "layers": {
+ "Aura_Orbit_Dsc": {
+ "id": "Aura_Orbit_Dsc",
+ "title": "Orbital Track (Descending/Night)",
+ "subtitle": "Space-Track.org / Aura",
+ "group": "overlays",
+ "format": "image/png",
+ "type": "wms",
+ "tileSize": [512, 512],
+ "period": "daily",
+
+ "projections": {
+ "antarctic": {
+ "source": "GIBS:wms"
+ },
+ "arctic": {
+ "source": "GIBS:wms"
+ },
+ "geographic": {
+ "source": "GIBS:wms"
+ }
+ }
+ }
+ }
+}
diff --git a/conf/web/wv.main/redirects.json b/conf/web/wv.main/redirects.json
index 2486773d5..f0e5e049d 100644
--- a/conf/web/wv.main/redirects.json
+++ b/conf/web/wv.main/redirects.json
@@ -1,8 +1,19 @@
{
"redirects": {
"layers": {
- "polarview:graticuleN": "arctic_graticule",
- "polarview:graticule3031_10x30": "antarctic_graticule"
+
+ "polarview:graticuleN": "arctic_graticule",
+ "polarview:graticule3031_10x30": "antarctic_graticule",
+
+ "Aqua_Antarctic_Orbit_Asc": "Aqua_Orbit_Asc",
+ "Aqua_Arctic_Orbit_Asc": "Aqua_Orbit_Asc",
+ "Aqua_Antarctic_Orbit_Dsc": "Aqua_Orbit_Dsc",
+ "Aqua_Arctic_Orbit_Dsc": "Aqua_Orbit_Dsc",
+
+ "Aura_Antarctic_Orbit_Asc": "Aura_Orbit_Asc",
+ "Aura_Arctic_Orbit_Asc": "Aura_Orbit_Asc",
+ "Aura_Antarctic_Orbit_Dsc": "Aura_Orbit_Dsc",
+ "Aura_Arctic_Orbit_Dsc": "Aura_Orbit_Dsc"
}
}
}
\ No newline at end of file
diff --git a/conf/web/wv.main/sources.json b/conf/web/wv.main/sources.json
index 4c874ebbc..3a67b7bc9 100644
--- a/conf/web/wv.main/sources.json
+++ b/conf/web/wv.main/sources.json
@@ -20,6 +20,13 @@
"//map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi",
"//map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"
]
+ },
+ "GIBS:wms": {
+ "url": [
+ "//map2a.vis.earthdata.nasa.gov/wms/wms.php",
+ "//map2b.vis.earthdata.nasa.gov/wms/wms.php",
+ "//map2c.vis.earthdata.nasa.gov/wms/wms.php"
+ ]
}
}
}
diff --git a/src/js/Worldview/Map/LayerSet.js b/src/js/Worldview/Map/LayerSet.js
index 7b04a9e4a..744c3460b 100644
--- a/src/js/Worldview/Map/LayerSet.js
+++ b/src/js/Worldview/Map/LayerSet.js
@@ -79,15 +79,41 @@ Worldview.Map.LayerSet = function(config, projId, layerId) {
layer.tileSize[1])
};
if ( layer.noTransition ) {
- param.transitionEffect = "nonw";
+ param.transitionEffect = "none";
} else {
param.transitionEffect = "resize";
}
- var layer = new OpenLayers.Layer.WMTS(param);
+ var olLayer = new OpenLayers.Layer.WMTS(param);
if ( options && options.time ) {
- layer.mergeNewParams({"time": options.time});
+ olLayer.mergeNewParams({"time": options.time});
}
- return layer;
+ return olLayer;
+ };
+
+ var createWMS = function(options) {
+ var proj = config.projections[projId];
+ var layer = config.layers[layerId];
+ var source = config.sources[layer.projections[projId].source];
+ var layerParameter = layer.projections[projId].layer || layerId;
+
+ var transparent = ( layer.format === "image/png" );
+
+ var params = {
+ layers: layerParameter,
+ format: layer.format,
+ transparent: transparent
+ };
+ if ( layer.period === "daily" ) {
+ params.time = options.time;
+ };
+ var options = {
+ tileSize: new OpenLayers.Size(layer.tileSize[0],
+ layer.tileSize[1]),
+ transitionEffect: "none"
+ };
+ var olLayer = new OpenLayers.Layer.WMS(layer.title, source.url,
+ params, options);
+ return olLayer;
};
/**
@@ -106,7 +132,7 @@ Worldview.Map.LayerSet = function(config, projId, layerId) {
if ( type === "wmts" ) {
return createWMTS(options);
} else if ( type === "wms" ) {
- return createWMS(projId);
+ return createWMS(options);
} else {
throw new Error("Invalid layer type", config.type);
}