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

Re-organize internet-required layers #770

Merged
merged 6 commits into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
122 changes: 71 additions & 51 deletions qgreenland/config/cfg-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -12993,6 +12993,39 @@
},
{
"children": [
{
"children": [
{
"layer_cfg": {
"description": "Map showing geological features of Greenland.\n\nPlease download the legend for information on interpretation\nof this layer:\nhttps://maps.greenmin.gl/geusmapmore/greenlandportal/G500_2023_LEGEND.pdf .",
"id": "geus_geological_map",
"in_package": true,
"input": {
"asset": {
"id": "only"
},
"dataset": {
"id": "geus_geological_map"
}
},
"show": false,
"steps": null,
"style": null,
"tags": [
"online"
],
"title": "Geological Map (1:500 000)"
},
"name": "geus_geological_map"
}
],
"name": "Internet required",
"settings": {
"expand": false,
"order": null,
"show": false
}
},
{
"layer_cfg": {
"description": "Location and magnitude of earthquakes.",
Expand Down Expand Up @@ -13388,6 +13421,7 @@
"settings": {
"expand": false,
"order": [
"Internet required",
":earthquakes",
":tectonic_plate_boundaries",
":tectonic_plate_polygons",
Expand Down Expand Up @@ -26532,70 +26566,55 @@
"title": "Topographic map of Greenland"
},
"name": "sdfi_topo_map"
},
{
"layer_cfg": {
"description": "Map showing geological features of Greenland.\n\nPlease download the legend for information on interpretation\nof this layer:\nhttps://maps.greenmin.gl/geusmapmore/greenlandportal/G500_2023_LEGEND.pdf .",
"id": "geus_geological_map",
"in_package": true,
"input": {
"asset": {
"id": "only"
},
"dataset": {
"id": "geus_geological_map"
}
},
"show": false,
"steps": null,
"style": null,
"tags": [
"online"
],
"title": "Geological Map (1:500 000)"
},
"name": "geus_geological_map"
},
{
"layer_cfg": {
"description": "Blue Marble (August 2004, Shaded Relief and Bathymetry).\n\nThe MODIS Blue Marble, Next Generation layer with Shaded Relief and\nBathymetry is a cloud free, true color composite of MODIS imagery from\nAugust 2004 including shaded relief and bathymetry in the water bodies.\n\nThe MODIS Blue Marble, Next Generation is a static product created with data\nfrom 2004 from the MODIS instrument on board the Terra satellite. The image\nresolution is 500 m. It can be viewed in Worldview/Global Imagery Browse\nServices (GIBS). Images for January \u2013 December 2004 can be downloaded from\nNASA\u2019s Visible Earth.\n\nReferences: NASA Earth Observatory - Blue Marble\n[https://earthobservatory.nasa.gov/features/BlueMarble]; NASA Earth\nObservations - Blue Marble\n[https://neo.gsfc.nasa.gov/view.php?datasetId=BlueMarbleNG-TB]; NASA\nEarth Observations - Blue Marble: Next Generation+Topography and\nBathymetry\n[https://neo.gsfc.nasa.gov/view.php?datasetId=BlueMarbleNG-TB].",
"id": "blue_marble_shaded_relief_bathymetry",
"in_package": true,
"input": {
"asset": {
"id": "only"
},
"dataset": {
"id": "gibs"
}
},
"show": false,
"steps": null,
"style": null,
"tags": [
"online"
],
"title": "Blue Marble shaded relief and Bathymetry (500m)"
},
"name": "blue_marble_shaded_relief_bathymetry"
}
],
"name": "Internet-required data",
"name": "Satellite imagery (Internet required)",
"settings": {
"expand": false,
"order": [
":image_mosaic_2019",
":image_mosaic_2015",
":sdfi_satellite_orthophotos",
":sdfi_topo_map",
":geus_geological_map",
":blue_marble_shaded_relief_bathymetry"
":sdfi_topo_map"
],
"show": false
}
},
{
"children": [
{
"children": [
{
"layer_cfg": {
"description": "Blue Marble (August 2004, Shaded Relief and Bathymetry).\n\nThe MODIS Blue Marble, Next Generation layer with Shaded Relief and\nBathymetry is a cloud free, true color composite of MODIS imagery from\nAugust 2004 including shaded relief and bathymetry in the water bodies.\n\nThe MODIS Blue Marble, Next Generation is a static product created with data\nfrom 2004 from the MODIS instrument on board the Terra satellite. The image\nresolution is 500 m. It can be viewed in Worldview/Global Imagery Browse\nServices (GIBS). Images for January \u2013 December 2004 can be downloaded from\nNASA\u2019s Visible Earth.\n\nReferences: NASA Earth Observatory - Blue Marble\n[https://earthobservatory.nasa.gov/features/BlueMarble]; NASA Earth\nObservations - Blue Marble\n[https://neo.gsfc.nasa.gov/view.php?datasetId=BlueMarbleNG-TB]; NASA\nEarth Observations - Blue Marble: Next Generation+Topography and\nBathymetry\n[https://neo.gsfc.nasa.gov/view.php?datasetId=BlueMarbleNG-TB].",
"id": "blue_marble_shaded_relief_bathymetry",
"in_package": true,
"input": {
"asset": {
"id": "only"
},
"dataset": {
"id": "gibs"
}
},
"show": false,
"steps": null,
"style": null,
"tags": [
"online"
],
"title": "Blue Marble shaded relief and Bathymetry (500m)"
},
"name": "blue_marble_shaded_relief_bathymetry"
}
],
"name": "Internet required",
"settings": {
"expand": false,
"order": null,
"show": false
}
},
{
"layer_cfg": {
"description": "Polygons representing the land.",
Expand Down Expand Up @@ -26866,6 +26885,7 @@
"settings": {
"expand": true,
"order": [
"Internet required",
":land",
":ocean",
":background"
Expand All @@ -26892,7 +26912,7 @@
"Oceanography",
"Future projections",
"Terrain models",
"Internet-required data",
"Satellite imagery (Internet required)",
"Basemaps"
]
}
Expand Down
33 changes: 33 additions & 0 deletions qgreenland/config/layers/Basemaps/Internet required/online.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
from qgreenland.config.datasets.online import gibs
from qgreenland.models.config.layer import Layer, LayerInput

blue_marble_layer = Layer(
id="blue_marble_shaded_relief_bathymetry",
title="Blue Marble shaded relief and Bathymetry (500m)",
MattF-NSIDC marked this conversation as resolved.
Show resolved Hide resolved
description=(
"""Blue Marble (August 2004, Shaded Relief and Bathymetry).

The MODIS Blue Marble, Next Generation layer with Shaded Relief and
Bathymetry is a cloud free, true color composite of MODIS imagery from
August 2004 including shaded relief and bathymetry in the water bodies.

The MODIS Blue Marble, Next Generation is a static product created with data
from 2004 from the MODIS instrument on board the Terra satellite. The image
resolution is 500 m. It can be viewed in Worldview/Global Imagery Browse
Services (GIBS). Images for January – December 2004 can be downloaded from
NASA’s Visible Earth.

References: NASA Earth Observatory - Blue Marble
[https://earthobservatory.nasa.gov/features/BlueMarble]; NASA Earth
Observations - Blue Marble
[https://neo.gsfc.nasa.gov/view.php?datasetId=BlueMarbleNG-TB]; NASA
Earth Observations - Blue Marble: Next Generation+Topography and
Bathymetry
[https://neo.gsfc.nasa.gov/view.php?datasetId=BlueMarbleNG-TB]."""
),
tags=["online"],
input=LayerInput(
dataset=gibs,
asset=gibs.assets["only"],
),
)
7 changes: 6 additions & 1 deletion qgreenland/config/layers/Basemaps/__settings__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
from qgreenland.models.config.layer_group import LayerGroupSettings, LayerIdentifier
from qgreenland.models.config.layer_group import (
LayerGroupIdentifier,
LayerGroupSettings,
LayerIdentifier,
)

settings = LayerGroupSettings(
order=[
LayerGroupIdentifier("Internet required"),
LayerIdentifier("land"),
LayerIdentifier("ocean"),
LayerIdentifier("background"),
Expand Down
20 changes: 20 additions & 0 deletions qgreenland/config/layers/Geology/Internet required/online.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from qgreenland.config.datasets.online import geus_geological_map
from qgreenland.models.config.layer import Layer, LayerInput

geus_geological_map_layer = Layer(
id="geus_geological_map",
title="Geological Map (1:500 000)",
description=(
"""Map showing geological features of Greenland.

Please download the legend for information on interpretation
of this layer:
https://maps.greenmin.gl/geusmapmore/greenlandportal/G500_2023_LEGEND.pdf .
"""
),
tags=["online"],
input=LayerInput(
dataset=geus_geological_map,
asset=geus_geological_map.assets["only"],
),
)
1 change: 1 addition & 0 deletions qgreenland/config/layers/Geology/__settings__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

settings = LayerGroupSettings(
order=[
LayerGroupIdentifier("Internet required"),
LayerIdentifier("earthquakes"),
LayerIdentifier("tectonic_plate_boundaries"),
LayerIdentifier("tectonic_plate_polygons"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@
LayerIdentifier("image_mosaic_2015"),
LayerIdentifier("sdfi_satellite_orthophotos"),
LayerIdentifier("sdfi_topo_map"),
LayerIdentifier("geus_geological_map"),
LayerIdentifier("blue_marble_shaded_relief_bathymetry"),
],
)
Original file line number Diff line number Diff line change
@@ -1,44 +1,10 @@
from qgreenland.config.datasets.online import (
geus_geological_map,
gibs,
image_mosaic,
sdfi_satellite_orthophotos,
sdfi_topo_map,
)
from qgreenland.models.config.layer import Layer, LayerInput

blue_marble_layer = Layer(
id="blue_marble_shaded_relief_bathymetry",
title="Blue Marble shaded relief and Bathymetry (500m)",
description=(
"""Blue Marble (August 2004, Shaded Relief and Bathymetry).

The MODIS Blue Marble, Next Generation layer with Shaded Relief and
Bathymetry is a cloud free, true color composite of MODIS imagery from
August 2004 including shaded relief and bathymetry in the water bodies.

The MODIS Blue Marble, Next Generation is a static product created with data
from 2004 from the MODIS instrument on board the Terra satellite. The image
resolution is 500 m. It can be viewed in Worldview/Global Imagery Browse
Services (GIBS). Images for January – December 2004 can be downloaded from
NASA’s Visible Earth.

References: NASA Earth Observatory - Blue Marble
[https://earthobservatory.nasa.gov/features/BlueMarble]; NASA Earth
Observations - Blue Marble
[https://neo.gsfc.nasa.gov/view.php?datasetId=BlueMarbleNG-TB]; NASA
Earth Observations - Blue Marble: Next Generation+Topography and
Bathymetry
[https://neo.gsfc.nasa.gov/view.php?datasetId=BlueMarbleNG-TB]."""
),
tags=["online"],
input=LayerInput(
dataset=gibs,
asset=gibs.assets["only"],
),
)


image_mosaic_layers = [
Layer(
id=f"image_mosaic_{year}",
Expand Down Expand Up @@ -120,22 +86,3 @@
asset=sdfi_satellite_orthophotos.assets["only"],
),
)


geus_geological_map_layer = Layer(
id="geus_geological_map",
title="Geological Map (1:500 000)",
description=(
"""Map showing geological features of Greenland.

Please download the legend for information on interpretation
of this layer:
https://maps.greenmin.gl/geusmapmore/greenlandportal/G500_2023_LEGEND.pdf .
"""
),
tags=["online"],
input=LayerInput(
dataset=geus_geological_map,
asset=geus_geological_map.assets["only"],
),
)
2 changes: 1 addition & 1 deletion qgreenland/config/layers/__settings__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
LayerGroupIdentifier("Oceanography"),
LayerGroupIdentifier("Future projections"),
LayerGroupIdentifier("Terrain models"),
LayerGroupIdentifier("Internet-required data"),
LayerGroupIdentifier("Satellite imagery (Internet required)"),
LayerGroupIdentifier("Basemaps"),
],
)