Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-3182-Tempo L3 CMR availability (#5221)

Patrick Moulden541484428895
diff --git a/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Ozone_Cloud_Fraction_Granule.json b/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Ozone_Cloud_Fraction_Granule.json
index f4bd5b620..619854106 100644
--- a/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Ozone_Cloud_Fraction_Granule.json
+++ b/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Ozone_Cloud_Fraction_Granule.json
@@ -8,6 +8,7 @@
"group": "overlays",
"layergroup": "Granules",
"type": "granule",
+ "cmrAvailability": true,
"period": "subdaily"
}
}
diff --git a/config/default/common/config/wv.json/layers/viirs/noaa20/VIIRS_NOAA20_CorrectedReflectance_BandsM11-I2-I1_Granule.json b/config/default/common/config/wv.json/layers/viirs/noaa20/VIIRS_NOAA20_CorrectedReflectance_BandsM11-I2-I1_Granule.json
index dd53ea495..8e42feaf4 100644
--- a/config/default/common/config/wv.json/layers/viirs/noaa20/VIIRS_NOAA20_CorrectedReflectance_BandsM11-I2-I1_Granule.json
+++ b/config/default/common/config/wv.json/layers/viirs/noaa20/VIIRS_NOAA20_CorrectedReflectance_BandsM11-I2-I1_Granule.json
@@ -7,6 +7,7 @@
"group": "overlays",
"layergroup": "Granules",
"type": "granule",
+ "cmrAvailability": true,
"period": "subdaily",
"associatedLayers": ["VIIRS_NOAA20_CorrectedReflectance_BandsM11-I2-I1"],
"availability": {
diff --git a/config/default/common/config/wv.json/layers/viirs/noaa20/VIIRS_NOAA20_CorrectedReflectance_BandsM3-I3-M11_Granule.json b/config/default/common/config/wv.json/layers/viirs/noaa20/VIIRS_NOAA20_CorrectedReflectance_BandsM3-I3-M11_Granule.json
index 4f076804b..b72b32c48 100644
--- a/config/default/common/config/wv.json/layers/viirs/noaa20/VIIRS_NOAA20_CorrectedReflectance_BandsM3-I3-M11_Granule.json
+++ b/config/default/common/config/wv.json/layers/viirs/noaa20/VIIRS_NOAA20_CorrectedReflectance_BandsM3-I3-M11_Granule.json
@@ -7,6 +7,7 @@
"group": "overlays",
"layergroup": "Granules",
"type": "granule",
+ "cmrAvailability": true,
"period": "subdaily",
"associatedLayers": ["VIIRS_NOAA20_CorrectedReflectance_BandsM3-I3-M11"],
"availability": {
diff --git a/config/default/common/config/wv.json/layers/viirs/noaa20/VIIRS_NOAA20_CorrectedReflectance_TrueColor_Granule.json b/config/default/common/config/wv.json/layers/viirs/noaa20/VIIRS_NOAA20_CorrectedReflectance_TrueColor_Granule.json
index eb89861a2..573329650 100644
--- a/config/default/common/config/wv.json/layers/viirs/noaa20/VIIRS_NOAA20_CorrectedReflectance_TrueColor_Granule.json
+++ b/config/default/common/config/wv.json/layers/viirs/noaa20/VIIRS_NOAA20_CorrectedReflectance_TrueColor_Granule.json
@@ -7,6 +7,7 @@
"group": "overlays",
"layergroup": "Granules",
"type": "granule",
+ "cmrAvailability": true,
"period": "subdaily",
"associatedLayers": ["VIIRS_NOAA20_CorrectedReflectance_TrueColor"],
"availability": {
diff --git a/config/default/common/config/wv.json/layers/viirs/snpp/VIIRS_SNPP_CorrectedReflectance_BandsM11-I2-I1_Granule.json b/config/default/common/config/wv.json/layers/viirs/snpp/VIIRS_SNPP_CorrectedReflectance_BandsM11-I2-I1_Granule.json
index 83801b024..c5134461c 100644
--- a/config/default/common/config/wv.json/layers/viirs/snpp/VIIRS_SNPP_CorrectedReflectance_BandsM11-I2-I1_Granule.json
+++ b/config/default/common/config/wv.json/layers/viirs/snpp/VIIRS_SNPP_CorrectedReflectance_BandsM11-I2-I1_Granule.json
@@ -7,6 +7,7 @@
"group": "overlays",
"layergroup": "Granules",
"type": "granule",
+ "cmrAvailability": true,
"period": "subdaily",
"associatedLayers": ["VIIRS_SNPP_CorrectedReflectance_BandsM11-I2-I1"],
"availability": {
diff --git a/config/default/common/config/wv.json/layers/viirs/snpp/VIIRS_SNPP_CorrectedReflectance_BandsM3-I3-M11_Granule.json b/config/default/common/config/wv.json/layers/viirs/snpp/VIIRS_SNPP_CorrectedReflectance_BandsM3-I3-M11_Granule.json
index f00d5c21f..e983470c9 100644
--- a/config/default/common/config/wv.json/layers/viirs/snpp/VIIRS_SNPP_CorrectedReflectance_BandsM3-I3-M11_Granule.json
+++ b/config/default/common/config/wv.json/layers/viirs/snpp/VIIRS_SNPP_CorrectedReflectance_BandsM3-I3-M11_Granule.json
@@ -7,6 +7,7 @@
"group": "overlays",
"layergroup": "Granules",
"type": "granule",
+ "cmrAvailability": true,
"period": "subdaily",
"associatedLayers": ["VIIRS_SNPP_CorrectedReflectance_BandsM3-I3-M11"],
"availability": {
diff --git a/config/default/common/config/wv.json/layers/viirs/snpp/VIIRS_SNPP_CorrectedReflectance_TrueColor_Granule.json b/config/default/common/config/wv.json/layers/viirs/snpp/VIIRS_SNPP_CorrectedReflectance_TrueColor_Granule.json
index 8fdba9b9d..6641da00d 100644
--- a/config/default/common/config/wv.json/layers/viirs/snpp/VIIRS_SNPP_CorrectedReflectance_TrueColor_Granule.json
+++ b/config/default/common/config/wv.json/layers/viirs/snpp/VIIRS_SNPP_CorrectedReflectance_TrueColor_Granule.json
@@ -7,6 +7,7 @@
"group": "overlays",
"layergroup": "Granules",
"type": "granule",
+ "cmrAvailability": true,
"period": "subdaily",
"associatedLayers": ["VIIRS_SNPP_CorrectedReflectance_TrueColor"],
"availability": {
diff --git a/doc/config/layers.md b/doc/config/layers.md
index afbafc78c..4aec70587 100644
--- a/doc/config/layers.md
+++ b/doc/config/layers.md
@@ -112,6 +112,7 @@ Example:
* dateInterval - Number of days (or minutes for subdaily layers)
* **temporal**: Used to override the layer temporal availability declared in the capabilities document. Note: Changing the temporal availability can cause missing layer coverage within the interface for layers tiles that aren't available from the source at the revised temporal range. This option can be added as a string with the new availability range. For example, `"1981-10-13/2019-10-11/P1M"`.
* **count**: Used to override the default number of granules displayed on the map and in the granule count slider component for granule layers.
+* **cmrAvailability**: Boolean - Whether or not to use the CMR API for data availability.
## Full Example
@@ -134,7 +135,8 @@ Example:
"palette": {
"id": "AIRS_RH400_A"
},
- "temporal": "1981-10-13/2019-10-11/P1M"
+ "temporal": "1981-10-13/2019-10-11/P1M",
+ "cmrAvailability": false
}
}
}
@@ -162,6 +164,7 @@ Granule layers will require specific configuration options within the `config/wv
],
"ongoing": true,
"type": "granule",
+ "cmrAvailability": true,
"period": "subdaily",
"count": 1
}
diff --git a/web/js/components/timeline/timeline-coverage/timeline-coverage.js b/web/js/components/timeline/timeline-coverage/timeline-coverage.js
index aaff6c665..cb31c37a4 100644
--- a/web/js/components/timeline/timeline-coverage/timeline-coverage.js
+++ b/web/js/components/timeline/timeline-coverage/timeline-coverage.js
@@ -99,7 +99,7 @@ async function getLayerGranuleRanges(layer) {
async function mapGranulesToLayers(layers) {
const promises = layers.map(async (layer) => {
- if (layer.type !== 'granule') return layer;
+ if (!layer.cmrAvailability) return layer;
const ranges = await getLayerGranuleRanges(layer);