Skip to content

Commit

Permalink
Update comments of UNIX and DOS tools in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Esteban82 committed Jan 9, 2025
1 parent cc91be5 commit 1039701
Show file tree
Hide file tree
Showing 34 changed files with 37 additions and 20 deletions.
2 changes: 1 addition & 1 deletion doc/examples/ex03/ex03.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ REM
REM Purpose: Resample track data, do spectral analysis, and plot
REM GMT modules: filter1d, fitcircle, gmtconvert, gmtinfo, project, sample1d
REM spectrum1d, plot, subplot, legend, math
REM DOS calls: echo, set, del
REM DOS calls: set, del
REM
REM This example begins with data files "ship_03.txt" and "sat_03.txt" which
REM are measurements of a quantity "g" (a "gravity anomaly" which is an
Expand Down
1 change: 0 additions & 1 deletion doc/examples/ex04/ex04.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ REM GMT EXAMPLE 04
REM
REM Purpose: 3-D mesh and color plot of Hawaiian topography and geoid
REM GMT modules: grdcontour, grdimage, grdview, basemap, coast, text, makecpt
REM DOS calls: echo
REM
gmt begin
gmt figure ex04
Expand Down
1 change: 0 additions & 1 deletion doc/examples/ex04/ex04.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#
# Purpose: 3-D mesh and color plot of Hawaiian topography and geoid
# GMT modules: colorbar, grdcontour, grdimage, grdview, basemap, coast, text, makecpt
# Unix progs: echo, rm
#
gmt begin
gmt figure ex04
Expand Down
1 change: 1 addition & 0 deletions doc/examples/ex07/ex07.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ REM GMT EXAMPLE 07
REM
REM Purpose: Make a basemap with earthquakes and isochrons, etc.
REM GMT modules: coast, legend, text, plot
REM DOS calls: del
REM
gmt begin ex07
gmt coast -R-50/0/-10/20 -JM24c -Slightblue -GP26+r300+ftan+bdarkbrown -Dl -Wthinnest -B --FORMAT_GEO_MAP=dddF
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/ex11/ex11.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Purpose: Create a 3-D RGB Cube
# GMT modules: set, grdimage, grdmath, text, plot
# Unix progs: rm
# Unix progs: echo, rm
gmt begin ex11
# Use gmt plot to plot "cut-along-the-dotted" lines.
gmt set MAP_TICK_LENGTH_PRIMARY 0
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/ex18/ex18.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ REM Purpose: Illustrates volumes of grids inside contours and spatial
REM selection of data
REM GMT modules: gmtset, gmtselect, gmtspatial, grdclip, grdcontour, grdimage
REM GMT modules: grdmath, grdvolume, makecpt, coast, colorbar, text, plot
REM DOS calls: del
REM DOS calls: del, echo, set
REM
gmt begin ex18
REM Use spherical gmt projection since SS data define on sphere
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/ex18/ex18.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# selection of data
# GMT modules: gmtset, gmtselect, gmtspatial, grdclip, grdcontour, grdimage
# GMT modules: grdmath, grdvolume, makecpt, coast, colorbar, text, plot
# Unix progs: rm
# Unix progs: echo, rm
#
gmt begin ex18
# Use spherical gmt projection since SS data define on sphere
Expand Down
1 change: 1 addition & 0 deletions doc/examples/ex21/ex21.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ REM GMT EXAMPLE 21
REM
REM Purpose: Plot a time-series
REM GMT modules: set, convert, info, basemap, plot
REM DOS calls: del, echo, set
REM
gmt begin ex21
REM File has time stored as dd-Mon-yy so set input format to match it
Expand Down
1 change: 1 addition & 0 deletions doc/examples/ex22/ex22.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ REM GMT EXAMPLE 22
REM
REM Purpose: Automatic map of last month of world-wide seismicity
REM GMT modules: set, coast, plot, legend
REM DOS calls: del, echo, set
REM
gmt begin ex22
gmt set FONT_ANNOT_PRIMARY 10p FONT_TITLE 18p FORMAT_GEO_MAP ddd:mm:ssF
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/ex22/ex22.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Purpose: Automatic map of last month of world-wide seismicity
# GMT modules: coast, plot, legend
# Unix progs: cat, sed, awk, wget|curl
# Unix progs: cat, wget|curl
#
gmt begin ex22
# Get the data (-s silently) from USGS using the curl
Expand Down
1 change: 1 addition & 0 deletions doc/examples/ex26/ex26.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ REM GMT EXAMPLE 26
REM
REM Purpose: Demonstrate general vertical perspective projection
REM GMT modules: coast
REM DOS calls: set
REM
gmt begin ex26
REM first do an overhead of the east coast from 160 km altitude point straight down
Expand Down
1 change: 1 addition & 0 deletions doc/examples/ex27/ex27.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ REM GMT EXAMPLE 27
REM
REM Purpose: Illustrates how to plot Mercator img grids
REM GMT modules: makecpt, grdimage, grdinfo, coast, colorbar
REM DOS calls: set
REM
gmt begin ex27
REM Gravity in tasman_grav.nc is in 0.1 mGal increments and the grid
Expand Down
1 change: 1 addition & 0 deletions doc/examples/ex28/ex28.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ REM GMT EXAMPLE 28
REM
REM Purpose: Illustrates how to mix UTM data and UTM gmt projection
REM GMT modules: makecpt, grdimage, coast, text, basemap
REM DOS calls: echo
REM
gmt begin ex28
REM Set up a color table
Expand Down
1 change: 1 addition & 0 deletions doc/examples/ex28/ex28.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# Purpose: Illustrates how to mix UTM data and UTM gmt projection
# GMT modules: makecpt, grdimage, coast, text, basemap
# Unix progs: echo
#
gmt begin ex28
# Set up a color table
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/ex35/ex35.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Purpose: Illustrate sphtriangulate and sphdistance with GSHHG crude data
# GMT modules: coast, plot, makecpt, grdimage, grdcontour, sphtriangulate, sphdistance
# Unix progs: rm
# Unix progs: awk, rm
#

# set AWK to awk if undefined
Expand Down
1 change: 1 addition & 0 deletions doc/examples/ex36/ex36.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ REM GMT EXAMPLE 36
REM
REM Purpose: Illustrate sphinterpolate with Mars radii data
REM GMT modules: plot, makecpt, grdimage, sphinterpolate
REM DOS calls: del
REM
gmt begin ex36
REM Interpolate data of Mars radius from Mariner9 and Viking Orbiter spacecrafts
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/ex36/ex36.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# GMT EXAMPLE 36
#
# Purpose: Illustrate sphinterpolate with Mars radii data
# GMT modules: plot, makecpt, grdimage, sphinterpolate
# GMT modules: plot, makecpt, grdimage, sphinterpolate, subplot
# Unix progs: rm
#
gmt begin ex36
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/ex38/ex38.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# GMT EXAMPLE 38
#
# Purpose: Illustrate histogram equalization on topography grids
# GMT modules: colorbar, text, makecpt, grdhisteq, grdimage
# GMT modules: colorbar, text, makecpt, grdhisteq, grdimage, subplot
# Unix progs: rm
#
gmt begin ex38
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/ex39/ex39.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ REM GMT EXAMPLE 39
REM
REM Purpose: Illustrate evaluation of spherical harmonic coefficients
REM GMT modules: colorbar, text, makecpt, grdimage, sph2grd
REM DOS calls: del, echo
REM
gmt begin ex39
REM Evaluate the first 180, 90, and 30 order/degrees of Venus spherical
REM harmonics topography model, skipping the L = 0 term (radial mean).
REM File truncated from http://www.ipgp.fr/~wieczor/SH/VenusTopo180.txt.zip
REM Wieczorek, M. A., Gravity and topography of the terrestrial planets,
REM Treatise on Geophysics, 10, 165-205, doi:10.1016/B978-044452748-6/00156-5, 2007
REM Treatise on Geophysics, 10, 165-205, doi:10.1016/B978-044452748-6/00156-5, 2007

gmt sph2grd @VenusTopo180.txt -I1 -Rg -Ng -Gv1.nc -F1/1/25/30
gmt sph2grd @VenusTopo180.txt -I1 -Rg -Ng -Gv2.nc -F1/1/85/90
Expand Down
4 changes: 2 additions & 2 deletions doc/examples/ex39/ex39.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# GMT EXAMPLE 39
#
# Purpose: Illustrate evaluation of spherical harmonic coefficients
# GMT modules: colorbar, text, makecpt, grdimage, sph2grd
# Unix progs: rm
# GMT modules: colorbar, text, makecpt, grd2cpt, grdimage, sph2grd
# Unix progs: echo, rm
#
gmt begin ex39
# Evaluate the first 180, 90, and 30 order/degrees of Venus spherical
Expand Down
1 change: 1 addition & 0 deletions doc/examples/ex40/ex40.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ REM GMT EXAMPLE 40
REM
REM Purpose: Illustrate line simplification and area calculations
REM GMT modules: basemap, text, plot, gmtsimplify, gmtspatial, subplot
REM DOS calls: del
REM

gmt begin ex40
Expand Down
1 change: 1 addition & 0 deletions doc/examples/ex42/ex42.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ REM GMT EXAMPLE 42
REM
REM Purpose: Illustrate Antarctica and stereographic projection
REM GMT modules: makecpt, grdimage, coast, legend, colorbar, text, plot
REM DOS calls: del, echo
REM
gmt begin ex42
gmt set FONT_ANNOT_PRIMARY 12p FONT_LABEL 12p PROJ_ELLIPSOID WGS-84 FORMAT_GEO_MAP dddF
Expand Down
4 changes: 2 additions & 2 deletions doc/examples/ex42/ex42.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# GMT EXAMPLE 42
#
# Purpose: Illustrate Antarctica and stereographic projection
# GMT modules: makecpt, grdimage, coast, legend, colorbar, set, text, plot
# Unix progs: [curl grdconvert]
# GMT modules: makecpt, grdimage, coast, legend, colorbar, set, text, plot, [grdconvert]
# Unix progs: [curl, gunzip]
#
gmt begin ex42
gmt set PROJ_ELLIPSOID WGS-84
Expand Down
4 changes: 2 additions & 2 deletions doc/examples/ex43/ex43.bat
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
REM GMT EXAMPLE 43
REM
REM Purpose: Illustrate regression and outlier detection
REM GMT modules: gmtregress, basemap, legend, text, plot
REM DOS calls: grep, awk, sed
REM GMT modules: gmtregress, basemap, legend, text, plot, which
REM DOS calls: grep, awk, sed, echo, del, set
REM

REM Data from Table 7 in Rousseeuw and Leroy, 1987.
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/ex43/ex43.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Purpose: Illustrate regression and outlier detection
# GMT modules: gmtregress, basemap, legend, text, plot
# Unix progs: grep, awk, sed
# Unix progs: cat, grep, awk, sed, rm
#

# set AWK to awk if undefined
Expand Down
1 change: 1 addition & 0 deletions doc/examples/ex45/ex45.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ REM GMT EXAMPLE 45
REM
REM Purpose: Illustrate use of trend1d mixed models
REM GMT modules: text, plot, trend1d
REM DOS calls: del
REM

gmt begin ex45
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/ex47/ex47.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Purpose: Illustrate use of gmtregress with different norms and types
# GMT modules: gmtregress, plot, text, subplot
# Unix progs: rm
# Unix progs: grep, sed, rm
#

# Because all panels are almost identical we make a bash function that plots
Expand Down
1 change: 1 addition & 0 deletions doc/examples/ex48/ex48.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# Purpose: Illustrate use of trimmed lines with vectors, networks, and local spiderwebs
# GMT modules: makecpt, coast, plot, sphtriangulate, grdimate, gmtmath, text
# Unix progs: echo, rm
#

gmt begin ex48
Expand Down
1 change: 1 addition & 0 deletions doc/examples/ex49/ex49.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ REM
REM Purpose: Illustrate data analysis using the seafloor depth/age relationship
REM GMT modules: blockmode, gmtmath, grdcontour, grdimage, grdsample, makecpt,
REM subplot, basemap, legend, colorbar, plot, xyz2grd
REM DOS calls: del
REM

gmt begin ex49
Expand Down
1 change: 1 addition & 0 deletions doc/examples/ex49/ex49.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# Purpose: Illustrate data analysis using the seafloor depth/age relationship
# GMT modules: blockmode, gmtmath, grdcontour, grdimage, grdsample, makecpt,
# subplot, basemap, legend, colorbar, plot, xyz2grd
# Unix progs: rm
#

gmt begin ex49
Expand Down
1 change: 1 addition & 0 deletions doc/examples/ex50/ex50.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ REM GMT EXAMPLE 50
REM
REM Purpose: Illustrate different statistical distributions in gmtmath
REM GMT modules: math, set, plot, text
REM DOS calls: del, echo
REM

gmt begin ex50
Expand Down
1 change: 1 addition & 0 deletions doc/examples/ex50/ex50.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# Purpose: Illustrate different statistical distributions in gmtmath
# GMT modules: math, set, plot, text
# Unix progs: rm
#

gmt begin ex50
Expand Down
1 change: 1 addition & 0 deletions doc/examples/ex52/ex52.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# Purpose: Mixing images and overlaying them on the Earth
# GMT modules: grdgradient, grdimage, grdmath, grdmix, grdsample, solar
# Unix progs: rm

res=20m # Change to 15m, 10m, 06m, 05m, 04m, 03m, 02m, 01m, 30s for higher resolutions

Expand Down
3 changes: 2 additions & 1 deletion doc/examples/ex53/ex53.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# Purpose: Illustrate subplot with loops
# GMT modules: makecpt, subplot, set, plot, grdimage, clip, coast
# Unix progs: rm
#

gmt begin ex53
Expand All @@ -22,4 +23,4 @@ gmt begin ex53
done < $data
gmt subplot end
rm -f Top12Cities.txt
gmt end show
gmt end show

0 comments on commit 1039701

Please sign in to comment.