Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

more links

Jason Kentae5c665295ee
diff --git a/doc/config/configuration.md b/doc/config/configuration.md
index 0eebf1c81..83ee2b31f 100644
--- a/doc/config/configuration.md
+++ b/doc/config/configuration.md
@@ -49,10 +49,10 @@ IGNORE_ERRORS=true npm run build:config
## New Map Sources
-Modify the JSON document, `config/default/common/config/wv.json/sources.json`. There is a *sources*
+Modify the [`sources.json`](../../config/default/common/config/wv.json/sources.json) file. Within this file there is a *sources*
object that contains an object for each map source keyed by the source identifier.
For layers that can be configured via a GIBS WMTS GetCapabilities document or
-for WMS layers, the only property required is:
+for WMS layers, the only property required is `url`
* **url**: Either a string or array of strings where the map service is found.
* **matrixSets**: For WMTS layers that cannot be configured with a GetCapabilities document, an
@@ -63,16 +63,12 @@ object must exist that contains an object for each matrix set, keyed by the matr
* **tileSize**: Array of pixel dimensions for each tile. Example; `[512, 512]`
### Example sources.json
-
+[`config/default/common/config/wv.json/sources.json`](../../config/default/common/config/wv.json/sources.json)
```json
{
"sources": {
"GIBS:arctic": {
- "url": [
- "//map1a.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi",
- "//map1b.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi",
- "//map1c.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi"
- ],
+ "url": "https://gibs-{a-c}.earthdata.nasa.gov/wmts/epsg3413/best/wmts.cgi",
"matrixSets": {
"EPSG3413_250m": {
"id": "EPSG3413_250m",
@@ -91,7 +87,7 @@ object must exist that contains an object for each matrix set, keyed by the matr
## GetCapabilities
To automatically fetch configuration information from the GetCapabilities
-document, modify the `config/default/release/config.json` file and add an object to the
+document, modify the [`config.json`](../../config/default/release/config.json) file and add an object to the
`wv-options-fetch` array with the following properties:
* **from**: The URL to fetch the GetCapabilities document
@@ -106,14 +102,15 @@ Now add an object to the `wv-options-wmts` array with the following properties:
* **maxResolution**: The resolution of first tile matrix entry.
### Example config.json
+[`config/default/release/config.json`](../../config/default/release/config.json)
```json
{
"wv-options-fetch": [
{
- "from": "https://map1.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi?request=GetCapabilities",
+ "from": "https://gibs.earthdata.nasa.gov/wmts/epsg4326/best/wmts.cgi?request=GetCapabilities",
"to": "gibs-geographic.xml"
- },
+ }
],
"wv-options-wmts": [
{
diff --git a/doc/config/layers.md b/doc/config/layers.md
index 115bf08eb..67ed58bee 100644
--- a/doc/config/layers.md
+++ b/doc/config/layers.md
@@ -12,7 +12,7 @@
## Adding New Layers
-Create a new JSON document in `config/default/common/config/wv.json/layers` named `X.json` where `X`
+Create a new JSON document in [`config/default/common/config/wv.json/layers`](`../../config/default/common/config/wv.json/layers`) named `X.json` where `X`
is the layer identifier used in the WMTS or WMS API call. This file can be
placed in any subdirectory as needed for organizational purposes.
@@ -36,7 +36,22 @@ WMTS of WMS API call.
## Layer Order
-The `config/default/common/config/wv.json/layerOrder.json` file must be updated to include the new layer identifier. This file determines the order that layers are displayed in the add layers tab.
+The [`layerOrder.json`](../../config/default/common/config/wv.json/layerOrder.json) file must be updated to include the new layer identifier. This file determines the order that layers are displayed in the add layers tab.
+
+### Layer Order Example
+
+[`config/default/common/config/wv.json/layerOrder.json`](../../config/default/common/config/wv.json/layerOrder.json)
+
+```json
+{
+ "layerOrder": [
+ "VIIRS_SNPP_CorrectedReflectance_TrueColor",
+ "VIIRS_SNPP_CorrectedReflectance_BandsM3-I3-M11",
+ "VIIRS_SNPP_CorrectedReflectance_BandsM11-I2-I1",
+ ...
+ ]
+}
+```
## Required Properties
@@ -60,7 +75,13 @@ The following properties are required if this information is not available via t
* **futureLayer**: Use `true` if the layer has an end date after the current date.
* **futureTime**: Use `[number][type="D,M,Y"]` (i.e. "3D") with the `futurelayer` parameter to denote a layer that has a dynamic, future end date. The `[number]` parameter represents the dateInterval, `[type]` can be equal to `"D"`, `"M"`, or `"Y"` to represent day, month or year interval.
-A *projections* object must exist which contains an object for each projection supported by this layer. Projection information is keyed by the projection identifier (found in `config/default/common/config/wv.json/projections`). Example:
+The following is only required if not provided by the WMTS GetCapabilities:
+
+* **projections**: An object which contains an object for each projection supported by this layer. Projection information is keyed by the projection identifier (found in [`config/default/common/config/wv.json/projections`](../../config/default/common/config/wv.json/projections)).
+ * **source**: Identifier that indicates which endpoint contains this layer (see [`sources.json`](../../config/default/common/config/wv.json/sources.json))
+ * **matrixSet**: For WMTS layers only, the name of the matrix set as defined in the endpoint's GetCapabilities document.
+
+Example:
```json
"projections": {
@@ -75,10 +96,9 @@ A *projections* object must exist which contains an object for each projection s
}
```
-The projection parameters are as follows:
-* **source**: Identifier that indicates which endpoint contains this layer (see `config/default/common/config/wv.json/sources.json`)
-* **matrixSet**: For WMTS layers only, the name of the matrix set as defined in the endpoint's GetCapabilities document.
+
+
## Optional Properties
@@ -95,7 +115,7 @@ The projection parameters are as follows:
* **wrapadjacentdays**: Wrap the layer across the anti-meridian but select the previous day when greater than 180 and the next day when less than -180.
* **palette**: To display a color palette legend, a `palette` object should exist with the following properties:
* **id**: Identifier of the palette. This should match the name of the colormap file without the extension.
- * **recommended**: Array of custom palette identifiers that are recommended for use with this layer (see `config/default/common/config/palettes-custom.json`). Example, *["orange_1", "red_1"]*
+ * **recommended**: Array of custom palette identifiers that are recommended for use with this layer (see [`config/default/common/config/palettes-custom.json`](../../config/default/common/config/palettes-custom.json)). Example, *["orange_1", "red_1"]*
* **immutable**(optional): When this flag is set to true, the options to adjust thresholds and colormaps are removed.
* **availability**: Used to denote datetime availability info that cannot be gleaned from the capabilities document. Primarily for our geostationary layers which only have historical coverage going back ~30 days. Represented as an object with the following properties:
* **rollingWindow**: Number of days, counting backwards from app load time, that a layer has avilable coverage. Setting this will cause a layer's `startDate` property to be dynamically set at app load time.