Interactive interface for browsing global, full-resolution satellite imagery
chore: Update TEMPO layer configurations (#5506)
Patrick Moulden6560f97d1ff9
diff --git a/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Cloud_Cloud_Fraction_Total_Granule.json b/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Cloud_Cloud_Fraction_Total_Granule.jsonindex 8aa472cca..abd0e35b0 100644--- a/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Cloud_Cloud_Fraction_Total_Granule.json+++ b/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Cloud_Cloud_Fraction_Total_Granule.json@@ -13,7 +13,8 @@"count": 1,"dataAvailability": "dd","startDate": "2024-05-13T10:41:03Z",- "disableSnapshot": true+ "disableSnapshot": true,+ "shiftadjacentdays": false}}}\ No newline at end of filediff --git a/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Cloud_Cloud_Pressure_Total_Granule.json b/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Cloud_Cloud_Pressure_Total_Granule.jsonindex 8579f5d45..fcd5741fe 100644--- a/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Cloud_Cloud_Pressure_Total_Granule.json+++ b/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Cloud_Cloud_Pressure_Total_Granule.json@@ -13,8 +13,8 @@"count": 1,"dataAvailability": "dd","startDate": "2024-05-13T10:41:03Z",- "disableSnapshot": true-+ "disableSnapshot": true,+ "shiftadjacentdays": false}}}\ No newline at end of filediff --git a/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Formaldehyde_Vertical_Column_Granule.json b/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Formaldehyde_Vertical_Column_Granule.jsonindex ae91fa273..c55da13be 100644--- a/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Formaldehyde_Vertical_Column_Granule.json+++ b/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Formaldehyde_Vertical_Column_Granule.json@@ -13,8 +13,8 @@"count": 1,"dataAvailability": "dd","startDate": "2024-05-13T10:41:03Z",- "disableSnapshot": true-+ "disableSnapshot": true,+ "shiftadjacentdays": false}}}\ No newline at end of filediff --git a/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_NO2_Vertical_Column_Stratosphere_Granule.json b/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_NO2_Vertical_Column_Stratosphere_Granule.jsonindex 35bc063b7..cbf73ddc1 100644--- a/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_NO2_Vertical_Column_Stratosphere_Granule.json+++ b/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_NO2_Vertical_Column_Stratosphere_Granule.json@@ -13,8 +13,8 @@"count": 1,"dataAvailability": "dd","startDate": "2024-05-13T10:41:03Z",- "disableSnapshot": true-+ "disableSnapshot": true,+ "shiftadjacentdays": false}}}\ No newline at end of filediff --git a/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_NO2_Vertical_Column_Troposphere_Granule.json b/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_NO2_Vertical_Column_Troposphere_Granule.jsonindex bd2ccf74b..e5a60ea89 100644--- a/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_NO2_Vertical_Column_Troposphere_Granule.json+++ b/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_NO2_Vertical_Column_Troposphere_Granule.json@@ -13,8 +13,8 @@"count": 1,"dataAvailability": "dd","startDate": "2024-05-13T10:41:03Z",- "disableSnapshot": true-+ "disableSnapshot": true,+ "shiftadjacentdays": false}}}\ No newline at end of filediff --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.jsonindex aea95bf1e..06bfc2f3a 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@@ -13,8 +13,8 @@"count": 1,"dataAvailability": "dd","startDate": "2024-05-13T10:41:03Z",- "disableSnapshot": true-+ "disableSnapshot": true,+ "shiftadjacentdays": false}}}\ No newline at end of filediff --git a/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Ozone_Column_Amount_Granule.json b/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Ozone_Column_Amount_Granule.jsonindex 622252174..8eb6f84e6 100644--- a/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Ozone_Column_Amount_Granule.json+++ b/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Ozone_Column_Amount_Granule.json@@ -13,8 +13,8 @@"count": 1,"dataAvailability": "dd","startDate": "2024-05-13T10:41:03Z",- "disableSnapshot": true-+ "disableSnapshot": true,+ "shiftadjacentdays": false}}}\ No newline at end of filediff --git a/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Ozone_UV_Aerosol_Index_Granule.json b/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Ozone_UV_Aerosol_Index_Granule.jsonindex d896aa248..360da65b9 100644--- a/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Ozone_UV_Aerosol_Index_Granule.json+++ b/config/default/common/config/wv.json/layers/tempo/TEMPO_L2_Ozone_UV_Aerosol_Index_Granule.json@@ -13,8 +13,8 @@"count": 1,"dataAvailability": "dd","startDate": "2024-05-13T10:41:03Z",- "disableSnapshot": true-+ "disableSnapshot": true,+ "shiftadjacentdays": false}}}\ No newline at end of filediff --git a/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Cloud_Cloud_Fraction_Total.json b/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Cloud_Cloud_Fraction_Total.jsonindex 817fbe1a8..eafa96646 100644--- a/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Cloud_Cloud_Fraction_Total.json+++ b/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Cloud_Cloud_Fraction_Total.json@@ -10,7 +10,8 @@"layergroup": "Cloud Fraction","dataAvailability": "dd","startDate": "2024-05-13T10:30:00Z",- "disableSnapshot": true+ "disableSnapshot": true,+ "shiftadjacentdays": false}}}\ No newline at end of filediff --git a/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Cloud_Cloud_Pressure_Total.json b/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Cloud_Cloud_Pressure_Total.jsonindex da9adb860..3bda995ac 100644--- a/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Cloud_Cloud_Pressure_Total.json+++ b/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Cloud_Cloud_Pressure_Total.json@@ -10,8 +10,8 @@"layergroup": "Cloud Pressure","dataAvailability": "dd","startDate": "2024-05-13T10:30:00Z",- "disableSnapshot": true-+ "disableSnapshot": true,+ "shiftadjacentdays": false}}}\ No newline at end of filediff --git a/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Formaldehyde_Vertical_Column.json b/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Formaldehyde_Vertical_Column.jsonindex db0cb0262..29a9baed5 100644--- a/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Formaldehyde_Vertical_Column.json+++ b/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Formaldehyde_Vertical_Column.json@@ -10,8 +10,8 @@"layergroup": "Formaldehyde","dataAvailability": "dd","startDate": "2024-05-13T10:30:00Z",- "disableSnapshot": true-+ "disableSnapshot": true,+ "shiftadjacentdays": false}}}\ No newline at end of filediff --git a/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_NO2_Vertical_Column_Stratosphere.json b/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_NO2_Vertical_Column_Stratosphere.jsonindex 7bbd70921..84e92f14f 100644--- a/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_NO2_Vertical_Column_Stratosphere.json+++ b/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_NO2_Vertical_Column_Stratosphere.json@@ -10,8 +10,8 @@"layergroup": "Nitrogen Dioxide","dataAvailability": "dd","startDate": "2024-05-13T10:30:00Z",- "disableSnapshot": true-+ "disableSnapshot": true,+ "shiftadjacentdays": false}}}diff --git a/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_NO2_Vertical_Column_Troposphere.json b/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_NO2_Vertical_Column_Troposphere.jsonindex e9c02fd04..99a7de6d2 100644--- a/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_NO2_Vertical_Column_Troposphere.json+++ b/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_NO2_Vertical_Column_Troposphere.json@@ -10,8 +10,8 @@"layergroup": "Nitrogen Dioxide","dataAvailability": "dd","startDate": "2024-05-13T10:30:00Z",- "disableSnapshot": true-+ "disableSnapshot": true,+ "shiftadjacentdays": false}}}\ No newline at end of filediff --git a/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Ozone_Cloud_Fraction.json b/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Ozone_Cloud_Fraction.jsonindex 8fa481a1e..ebdd40406 100644--- a/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Ozone_Cloud_Fraction.json+++ b/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Ozone_Cloud_Fraction.json@@ -10,8 +10,8 @@"layergroup": "Ozone","dataAvailability": "dd","startDate": "2024-05-13T10:30:00Z",- "disableSnapshot": true-+ "disableSnapshot": true,+ "shiftadjacentdays": false}}}\ No newline at end of filediff --git a/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Ozone_Column_Amount.json b/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Ozone_Column_Amount.jsonindex 8c1d85cea..8693f9a20 100644--- a/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Ozone_Column_Amount.json+++ b/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Ozone_Column_Amount.json@@ -10,8 +10,8 @@"layergroup": "Ozone","dataAvailability": "dd","startDate": "2024-05-13T10:30:00Z",- "disableSnapshot": true-+ "disableSnapshot": true,+ "shiftadjacentdays": false}}}\ No newline at end of filediff --git a/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Ozone_UV_Aerosol_Index.json b/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Ozone_UV_Aerosol_Index.jsonindex 5df8232b4..1dfd083ea 100644--- a/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Ozone_UV_Aerosol_Index.json+++ b/config/default/common/config/wv.json/layers/tempo/TEMPO_L3_Ozone_UV_Aerosol_Index.json@@ -10,8 +10,8 @@"layergroup": "Aerosol Index","dataAvailability": "dd","startDate": "2024-05-13T10:30:00Z",- "disableSnapshot": true-+ "disableSnapshot": true,+ "shiftadjacentdays": false}}}\ No newline at end of filediff --git a/doc/config/layers.md b/doc/config/layers.mdindex 88bedaa2d..5428706f9 100644--- a/doc/config/layers.md+++ b/doc/config/layers.md@@ -112,8 +112,8 @@ 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.* **dataAvailability**: String - `cmr` or `dd`. Get the layer's data availability from either the CMR API or GIBS DescribeDomains request.+* **shiftadjacentdays**: Boolean - Whether or not to shift granules across the dateline when they're for an adjacent day. Defaults to `true` when `null` or `undefined`.## Full Examplediff --git a/web/js/map/granule/granule-layer-builder.js b/web/js/map/granule/granule-layer-builder.jsindex 5d7b8a8d7..3d845d1b5 100644--- a/web/js/map/granule/granule-layer-builder.js+++ b/web/js/map/granule/granule-layer-builder.js@@ -244,7 +244,8 @@ export default function granuleLayerBuilder(cache, store, createLayerWMTS) {const granuleAttributes = await getGranuleAttributes(def, options);const { visibleGranules } = granuleAttributes;- const granules = datelineShiftGranules(visibleGranules, date, crs);+ const shouldShift = def.shiftadjacentdays ?? true; // defaults to true+ const granules = shouldShift ? datelineShiftGranules(visibleGranules, date, crs) : visibleGranules;const tileLayers = new OlCollection(createGranuleTileLayers(granules, def, attributes));granuleLayer.setLayers(tileLayers);granuleLayer.setExtent(crs === CRS.GEOGRAPHIC ? FULL_MAP_EXTENT : maxExtent);