Hi.
I try to plot Topo information on a map, but don’t get it working at the map border. To reduce filesize, I resample the ETOPO1_Ice_g_gmt4.grd with
gmt grdsample ./ETOPO1_Ice_g_gmt4.grd -GreducedTopo.grd -I30m
Then I add the topo information to the map by:
gmt grdcontour reducedTopo.grd
-Ctmp_elevation.cpt \ ← tmp_elevation appended at the end of this entry
-Ntmp_elevation.cpt
-Lp
-J -R \ ← gmt.history at the end of entry for -J and -R values
-A-
-W+0.5p
-K -O \
The result is a map, that has black polygons along the map border. The polygon size is proportional to the amount of resampling.
Do you have any clue, how to remove the NaN / black areas?
Thank you very much for this fantastic toolset!
Oliver Matz
— tmp_elevation.cpt —
0 white 609.6 white
609.6 gray98 1219.2 gray98
1219.2 gray96 1828.8 gray96
1828.8 gray94 2438.4 gray94
2438.4 gray92 3048 gray92
3048 gray90 3657.6 gray90
3657.6 gray88 4267.2 gray88
4267.2 gray86 4876.8 gray86
4876.8 gray84 5486.4 gray84
5486.4 gray82 6096 gray82
6096 gray80 6705.6 gray80
6705.6 gray78 7315.2 gray78
7315.2 gray76 7924.8 gray76
7924.8 gray74 8534.4 gray74
B white
F gray86
N black
— gmt.history —
gmt 6 Session common arguments shelf
BEGIN GMT 6.0.1
J L
JL L87.7/35.4/20.3/20.3/28.7c
R 67.4/20.3/114.01053247/46.3454238635r
@L 8
END