Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Basemap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Simon Dreutter
Basemap
Commits
dff798e9
Commit
dff798e9
authored
4 months ago
by
Simon Dreutter
Browse files
Options
Downloads
Patches
Plain Diff
avoid tiny resolution differences
parent
902e55b3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
process/4_process_gebco.py
+10
-2
10 additions, 2 deletions
process/4_process_gebco.py
process/config.py
+2
-2
2 additions, 2 deletions
process/config.py
with
12 additions
and
4 deletions
process/4_process_gebco.py
+
10
−
2
View file @
dff798e9
...
@@ -56,12 +56,20 @@ print('====================================================================')
...
@@ -56,12 +56,20 @@ print('====================================================================')
print
(
f
'
{
"
GENERAL BATHYMETRIC CHART OF THE OCEANS / GEBCO
"
:
^
68
}
'
)
print
(
f
'
{
"
GENERAL BATHYMETRIC CHART OF THE OCEANS / GEBCO
"
:
^
68
}
'
)
# World
# World
# DEBUG
if
RESOLUTION_DEG
==
(
1
/
60
/
60
*
15
):
tr
=
''
else
:
tr
=
f
'
-tr
{
RESOLUTION_DEG
}
{
RESOLUTION_DEG
}
'
#/DEBUG
# ice surface
# ice surface
msg
=
'
Resampling GEBCO ice surface...
'
msg
=
'
Resampling GEBCO ice surface...
'
cmd
=
(
f
'
gdalwarp
'
cmd
=
(
f
'
gdalwarp
'
f
'
-s_srs EPSG:
{
EPSG_WORLD
}
'
f
'
-s_srs EPSG:
{
EPSG_WORLD
}
'
f
'
-t_srs EPSG:
{
EPSG_WORLD
}
'
f
'
-t_srs EPSG:
{
EPSG_WORLD
}
'
f
'
-tr
{
RESOLUTION_DEG
}
{
RESOLUTION_DEG
}
'
f
'
{
tr
}
'
f
'
-r cubic
'
f
'
-r cubic
'
f
'
-of GTiff
'
f
'
-of GTiff
'
f
'
{
WARP_OPTIONS
}
'
f
'
{
WARP_OPTIONS
}
'
...
@@ -100,7 +108,7 @@ msg = 'Resampling GEBCO sub ice...'
...
@@ -100,7 +108,7 @@ msg = 'Resampling GEBCO sub ice...'
cmd
=
(
f
'
gdalwarp
'
cmd
=
(
f
'
gdalwarp
'
f
'
-s_srs EPSG:
{
EPSG_WORLD
}
'
f
'
-s_srs EPSG:
{
EPSG_WORLD
}
'
f
'
-t_srs EPSG:
{
EPSG_WORLD
}
'
f
'
-t_srs EPSG:
{
EPSG_WORLD
}
'
f
'
-tr
{
RESOLUTION_DEG
}
{
RESOLUTION_DEG
}
'
f
'
{
tr
}
'
f
'
-r cubic
'
f
'
-r cubic
'
f
'
-of GTiff
'
f
'
-of GTiff
'
f
'
{
WARP_OPTIONS
}
'
f
'
{
WARP_OPTIONS
}
'
...
...
This diff is collapsed.
Click to expand it.
process/config.py
+
2
−
2
View file @
dff798e9
...
@@ -194,8 +194,8 @@ GLIMS_IN = PATH_GLIMS / 'glims_polygons.shp'
...
@@ -194,8 +194,8 @@ GLIMS_IN = PATH_GLIMS / 'glims_polygons.shp'
# warping in the lower latitudes.
# warping in the lower latitudes.
# Final AWI Basemap (World) resolution
# Final AWI Basemap (World) resolution
RESOLUTION_DEG
=
0.004166666666666666
# 15 arc seconds (original GEBCO resolution)
RESOLUTION_DEG
=
1
/
60
/
60
*
15
# 15 arc seconds (original GEBCO resolution)
# RESOLUTION_DEG =
0.008333333333333333
# 30 arc seconds
# RESOLUTION_DEG =
1 / 60 / 60 * 30
# 30 arc seconds
# Final AWI Basemap (Arctic and Antarctic) resolution
# Final AWI Basemap (Arctic and Antarctic) resolution
RESOLUTION_M
=
500.0
# approximate pendant to 15 arc seconds
RESOLUTION_M
=
500.0
# approximate pendant to 15 arc seconds
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment