Created
January 9, 2020 07:32
-
-
Save yudhastyawan/4cfd0713ea2ee1659bd1da0a70e092ab to your computer and use it in GitHub Desktop.
Convert a *.grid file to ASCII using GMT 5 (Tracking Mode)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
inputgrd='data.grd' | |
start=100/-2 | |
end=93/5 | |
gmt project -C$start -E$end -G1 -Q | gmt grdtrack -G$inputgrd > data.xyz | |
awk '{print $1, $2, $4}' data.xyz > datarev.xyz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment