Skip to content

Commit e5acedc

Browse files
PaulWesselseisman
andauthored
Region for 3s tiles fails if not multiple of 3s (#4124)
* Regino for 3s tiles fails if not multiple of 2s See form post for details. This PR simply adds a failing test. * Add orig PS * Pre-download two 3s tiles * Cache two tiles of earth_relief_03s data * Remove one unnecessary comment Co-authored-by: Dongdong Tian <[email protected]>
1 parent 66f5bdc commit e5acedc

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

ci/azure-pipelines-mac.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ steps:
102102
gmt which -Ga $data
103103
gmt which -Ga $data
104104
gmt get -Dcache
105+
# Download extra tiles for tests
106+
# test/grdimage/rounding.sh
107+
gmt grdcut -R3:57/4:18/44:00/44:15 @earth_relief_03s -G/dev/null
105108
displayName: Download remote data
106109
condition: ne(variables['CACHE_CACHEDATA_RESTORED'], true)
107110

test/grdimage/rounding.ps

847 KB
Binary file not shown.

test/grdimage/rounding.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
# Failing script while fixing https://forum.generic-mapping-tools.org/t/error-pygmt-gmtcliberror-module-grdimage-failed-with-status-code-78/829
3+
# Now reported as issue https://github.com/GenericMappingTools/gmt/pull/4130
4+
5+
gmt begin rounding ps
6+
gmt subplot begin 2x1 -SCb -SRl -Bwsne -Fs10c/0 -R3:57/4:18/44:00/44:15 -JM10c -X5c
7+
gmt grdimage -R3:57/4:18/44:00/44:15 -JM? @earth_relief_03s -Cgeo -I -c0
8+
gmt grdimage -R3.970/4.270/44.000/44.250 -JM? @earth_relief_03s -Cgeo -I -c1
9+
gmt subplot end
10+
gmt end show

0 commit comments

Comments
 (0)