Skip to content

Commit

Permalink
Merge pull request #720 from nsidc/palletted-style-labels
Browse files Browse the repository at this point in the history
Ensure all palletted styles have descriptive labels for each value
  • Loading branch information
mfisher87 authored Aug 10, 2023
2 parents 4309130 + 79b0447 commit bc841f2
Show file tree
Hide file tree
Showing 4 changed files with 288 additions and 19 deletions.
154 changes: 154 additions & 0 deletions qgreenland/ancillary/styles/racmo_grounded_ice.qml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

147 changes: 130 additions & 17 deletions qgreenland/ancillary/styles/racmo_promicemask.qml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion qgreenland/config/cfg-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -6424,7 +6424,7 @@
"type": "command"
}
],
"style": "racmo_promicemask",
"style": "racmo_grounded_ice",
"tags": [],
"title": "Grounded ice mask (1km)"
},
Expand Down
4 changes: 3 additions & 1 deletion qgreenland/config/helpers/layers/racmo.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,14 @@ def make_racmo_supplemental_layers() -> list[Layer]:
),
"extract_filename": "Icemask_Topo_Iceclasses_lon_lat_average_1km_GrIS.nc",
"variable": "Promicemask",
"style": "racmo_promicemask",
},
"racmo_grounded_ice": {
"title": "Grounded ice mask (1km)",
"description": "Mask of grounded ice. 1 = grounded.",
"extract_filename": "Icemask_Topo_Iceclasses_lon_lat_average_1km_Aug2020.nc",
"variable": "grounded_ice",
"style": "racmo_grounded_ice",
},
}

Expand All @@ -266,7 +268,7 @@ def make_racmo_supplemental_layers() -> list[Layer]:
title=params["title"],
description=params["description"],
tags=[],
style="racmo_promicemask",
style=params["style"],
input=LayerInput(
dataset=dataset,
asset=dataset.assets["only"],
Expand Down

0 comments on commit bc841f2

Please sign in to comment.