Skip to content

Commit b447dc1

Browse files
Dataset "GSHHG Earth distance to shoreline": Update docs and add coastlines to images (#126)
Co-authored-by: Dongdong Tian <[email protected]>
1 parent 1d27729 commit b447dc1

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

docs/_static/GMT_earth_dist.jpg

64.2 KB
Loading
24 KB
Loading

docs/earth-dist.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ We scale and reformat the original data to take up very little space so that dow
5151
from the servers are as fast as possible. For the distance grid this meant
5252
we chose 80 m as the smallest data unit, which is below the uncertainties in the
5353
model. Data are scaled and shifted to fit in a short integer grid that is highly compressed
54-
by netCDF lossless compression and chunking. The data are reported in kilometers.
54+
by netCDF lossless compression and chunking. The data are reported in kilometers. Positive
55+
(negative) distance values mean land to coastline (ocean to coastline).
5556

5657
Data References
5758
~~~~~~~~~~~~~~~

scripts/GMT_earth_maps.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ gmt set GMT_DATA_SERVER candidate
88
let k=0
99
I=""
1010
for set in ${list[@]}; do
11-
gmt begin GMT_earth_${set} jpg
11+
gmt begin GMT_earth_${set} jpg
1212
gmt grdimage @earth_${set}_10m -JQ0/7.5c -Rd ${I}
13+
if [ set = dist ]; then
14+
gmt coast -W1/0.2p,white -Df
15+
fi
1316
gmt psconvert -A -P -E150 -FGMT_earth_${set}_thumbnail -Tj
14-
gmt end
17+
gmt end
1518
mv GMT_earth_${set}.jpg ../docs/_static/
1619
mv GMT_earth_${set}_thumbnail.jpg ../docs/_static/
1720
let k++

0 commit comments

Comments
 (0)