Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WV-3182-Tempo L3 CMR availability #5221

Merged
merged 3 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"group": "overlays",
"layergroup": "Granules",
"type": "granule",
"cmrAvailability": true,
"period": "subdaily"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"group": "overlays",
"layergroup": "Granules",
"type": "granule",
"cmrAvailability": true,
"period": "subdaily",
"associatedLayers": ["VIIRS_NOAA20_CorrectedReflectance_BandsM11-I2-I1"],
"availability": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"group": "overlays",
"layergroup": "Granules",
"type": "granule",
"cmrAvailability": true,
"period": "subdaily",
"associatedLayers": ["VIIRS_NOAA20_CorrectedReflectance_BandsM3-I3-M11"],
"availability": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"group": "overlays",
"layergroup": "Granules",
"type": "granule",
"cmrAvailability": true,
"period": "subdaily",
"associatedLayers": ["VIIRS_NOAA20_CorrectedReflectance_TrueColor"],
"availability": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"group": "overlays",
"layergroup": "Granules",
"type": "granule",
"cmrAvailability": true,
"period": "subdaily",
"associatedLayers": ["VIIRS_SNPP_CorrectedReflectance_BandsM11-I2-I1"],
"availability": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"group": "overlays",
"layergroup": "Granules",
"type": "granule",
"cmrAvailability": true,
"period": "subdaily",
"associatedLayers": ["VIIRS_SNPP_CorrectedReflectance_BandsM3-I3-M11"],
"availability": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"group": "overlays",
"layergroup": "Granules",
"type": "granule",
"cmrAvailability": true,
"period": "subdaily",
"associatedLayers": ["VIIRS_SNPP_CorrectedReflectance_TrueColor"],
"availability": {
Expand Down
5 changes: 4 additions & 1 deletion doc/config/layers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
}
}
}
Expand Down Expand Up @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Loading