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

Fix geoid and gravity anomaly layers' nodata value in overviews #712

Merged
merged 3 commits into from
Aug 8, 2023
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@
- Switch back to `.qgs` project file from `.qgz`; There is [an
issue](https://github.com/qgis/QGIS/issues/42033) conveniently opening `.qgz`
project files in OSX for some versions of QGIS `3.16.x`.
- Fix issue with "Geophysics/" layers displaying nodata values at some zoom
levels:
- "Bouguer gravity anomaly (2km)"
- "Faye (free-air) gravity anomaly (2km)"
- "Geoid model (2km)"


# v2.0.0rc6 (2022-03-17)
Expand Down
6 changes: 6 additions & 0 deletions qgreenland/config/cfg-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -18394,6 +18394,8 @@
"EPSG:3413",
"-r",
"bilinear",
"-dstnodata",
"-9999",
"-tr",
"2000",
"2000",
Expand Down Expand Up @@ -18485,6 +18487,8 @@
"EPSG:3413",
"-r",
"bilinear",
"-dstnodata",
"-9999",
"-tr",
"2000",
"2000",
Expand Down Expand Up @@ -18576,6 +18580,8 @@
"EPSG:3413",
"-r",
"bilinear",
"-dstnodata",
"-9999",
"-tr",
"2000",
"2000",
Expand Down
6 changes: 6 additions & 0 deletions qgreenland/config/helpers/layers/gravity_anomalies_geoid.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ def _make_layer(
input_file="{input_dir}/" + filename,
output_file="{output_dir}/" + filename,
reproject_args=[
# The source nodata value is 1.70141e+38. This value is not
# correctly set in the overviews (added in the step below),
# so override it here as -9999. See
# https://github.com/OSGeo/gdal/issues/8187.
"-dstnodata",
"-9999",
# Source data is 0.02x-0.02 degrees resolution. Rene noted in
# his email to QGreenland on 2021-01-22 that the geoid and
# gravity anomaly grids are 2km resolution.
Expand Down