From 1039701aa598b66f889124673288bd0fb60abbb6 Mon Sep 17 00:00:00 2001 From: Esteban82 Date: Thu, 9 Jan 2025 10:56:44 -0300 Subject: [PATCH] Update comments of UNIX and DOS tools in scripts --- doc/examples/ex03/ex03.bat | 2 +- doc/examples/ex04/ex04.bat | 1 - doc/examples/ex04/ex04.sh | 1 - doc/examples/ex07/ex07.bat | 1 + doc/examples/ex11/ex11.sh | 2 +- doc/examples/ex18/ex18.bat | 2 +- doc/examples/ex18/ex18.sh | 2 +- doc/examples/ex21/ex21.bat | 1 + doc/examples/ex22/ex22.bat | 1 + doc/examples/ex22/ex22.sh | 2 +- doc/examples/ex26/ex26.bat | 1 + doc/examples/ex27/ex27.bat | 1 + doc/examples/ex28/ex28.bat | 1 + doc/examples/ex28/ex28.sh | 1 + doc/examples/ex35/ex35.sh | 2 +- doc/examples/ex36/ex36.bat | 1 + doc/examples/ex36/ex36.sh | 2 +- doc/examples/ex38/ex38.sh | 2 +- doc/examples/ex39/ex39.bat | 3 ++- doc/examples/ex39/ex39.sh | 4 ++-- doc/examples/ex40/ex40.bat | 1 + doc/examples/ex42/ex42.bat | 1 + doc/examples/ex42/ex42.sh | 4 ++-- doc/examples/ex43/ex43.bat | 4 ++-- doc/examples/ex43/ex43.sh | 2 +- doc/examples/ex45/ex45.bat | 1 + doc/examples/ex47/ex47.sh | 2 +- doc/examples/ex48/ex48.sh | 1 + doc/examples/ex49/ex49.bat | 1 + doc/examples/ex49/ex49.sh | 1 + doc/examples/ex50/ex50.bat | 1 + doc/examples/ex50/ex50.sh | 1 + doc/examples/ex52/ex52.sh | 1 + doc/examples/ex53/ex53.sh | 3 ++- 34 files changed, 37 insertions(+), 20 deletions(-) diff --git a/doc/examples/ex03/ex03.bat b/doc/examples/ex03/ex03.bat index dfb9e231f53..b304a10fa9c 100644 --- a/doc/examples/ex03/ex03.bat +++ b/doc/examples/ex03/ex03.bat @@ -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 diff --git a/doc/examples/ex04/ex04.bat b/doc/examples/ex04/ex04.bat index 5197be66f48..bc6198ca345 100644 --- a/doc/examples/ex04/ex04.bat +++ b/doc/examples/ex04/ex04.bat @@ -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 diff --git a/doc/examples/ex04/ex04.sh b/doc/examples/ex04/ex04.sh index 51216368d2e..f9020b5f80d 100755 --- a/doc/examples/ex04/ex04.sh +++ b/doc/examples/ex04/ex04.sh @@ -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 diff --git a/doc/examples/ex07/ex07.bat b/doc/examples/ex07/ex07.bat index 1bac14ae916..e683ae5929f 100644 --- a/doc/examples/ex07/ex07.bat +++ b/doc/examples/ex07/ex07.bat @@ -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 diff --git a/doc/examples/ex11/ex11.sh b/doc/examples/ex11/ex11.sh index 4c348b20a7f..333f6fa26c4 100755 --- a/doc/examples/ex11/ex11.sh +++ b/doc/examples/ex11/ex11.sh @@ -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 diff --git a/doc/examples/ex18/ex18.bat b/doc/examples/ex18/ex18.bat index f157ae11453..f83da7f8063 100644 --- a/doc/examples/ex18/ex18.bat +++ b/doc/examples/ex18/ex18.bat @@ -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 diff --git a/doc/examples/ex18/ex18.sh b/doc/examples/ex18/ex18.sh index 76b829e9aa9..a8e172c0c21 100755 --- a/doc/examples/ex18/ex18.sh +++ b/doc/examples/ex18/ex18.sh @@ -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 diff --git a/doc/examples/ex21/ex21.bat b/doc/examples/ex21/ex21.bat index 2fad1dd66f6..5832a475812 100644 --- a/doc/examples/ex21/ex21.bat +++ b/doc/examples/ex21/ex21.bat @@ -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 diff --git a/doc/examples/ex22/ex22.bat b/doc/examples/ex22/ex22.bat index a94f744d7ba..7e57c8f63e5 100644 --- a/doc/examples/ex22/ex22.bat +++ b/doc/examples/ex22/ex22.bat @@ -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 diff --git a/doc/examples/ex22/ex22.sh b/doc/examples/ex22/ex22.sh index 74626afecd1..00844697f8e 100755 --- a/doc/examples/ex22/ex22.sh +++ b/doc/examples/ex22/ex22.sh @@ -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 diff --git a/doc/examples/ex26/ex26.bat b/doc/examples/ex26/ex26.bat index ba81bd024e0..0f782a23dbc 100644 --- a/doc/examples/ex26/ex26.bat +++ b/doc/examples/ex26/ex26.bat @@ -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 diff --git a/doc/examples/ex27/ex27.bat b/doc/examples/ex27/ex27.bat index 866fb398acb..7fcb2abc292 100644 --- a/doc/examples/ex27/ex27.bat +++ b/doc/examples/ex27/ex27.bat @@ -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 diff --git a/doc/examples/ex28/ex28.bat b/doc/examples/ex28/ex28.bat index 84eaa6b0619..f65c70a2ccd 100644 --- a/doc/examples/ex28/ex28.bat +++ b/doc/examples/ex28/ex28.bat @@ -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 diff --git a/doc/examples/ex28/ex28.sh b/doc/examples/ex28/ex28.sh index f4a45dc107d..aa4f65f4e9b 100755 --- a/doc/examples/ex28/ex28.sh +++ b/doc/examples/ex28/ex28.sh @@ -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 diff --git a/doc/examples/ex35/ex35.sh b/doc/examples/ex35/ex35.sh index 3c56722658e..c67cd369edb 100755 --- a/doc/examples/ex35/ex35.sh +++ b/doc/examples/ex35/ex35.sh @@ -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 diff --git a/doc/examples/ex36/ex36.bat b/doc/examples/ex36/ex36.bat index f6d6a8c854c..74acc8e1347 100644 --- a/doc/examples/ex36/ex36.bat +++ b/doc/examples/ex36/ex36.bat @@ -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 diff --git a/doc/examples/ex36/ex36.sh b/doc/examples/ex36/ex36.sh index 8e4de2fef9a..428a94b2240 100755 --- a/doc/examples/ex36/ex36.sh +++ b/doc/examples/ex36/ex36.sh @@ -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 diff --git a/doc/examples/ex38/ex38.sh b/doc/examples/ex38/ex38.sh index fdad2492105..a439bb4e111 100755 --- a/doc/examples/ex38/ex38.sh +++ b/doc/examples/ex38/ex38.sh @@ -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 diff --git a/doc/examples/ex39/ex39.bat b/doc/examples/ex39/ex39.bat index 40276f3b88f..9c056b804d8 100644 --- a/doc/examples/ex39/ex39.bat +++ b/doc/examples/ex39/ex39.bat @@ -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 diff --git a/doc/examples/ex39/ex39.sh b/doc/examples/ex39/ex39.sh index a25582bf4ef..4dd045192f3 100755 --- a/doc/examples/ex39/ex39.sh +++ b/doc/examples/ex39/ex39.sh @@ -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 diff --git a/doc/examples/ex40/ex40.bat b/doc/examples/ex40/ex40.bat index 440472c36d8..713671669dc 100644 --- a/doc/examples/ex40/ex40.bat +++ b/doc/examples/ex40/ex40.bat @@ -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 diff --git a/doc/examples/ex42/ex42.bat b/doc/examples/ex42/ex42.bat index c7918fd7ef0..22af6a168f8 100644 --- a/doc/examples/ex42/ex42.bat +++ b/doc/examples/ex42/ex42.bat @@ -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 diff --git a/doc/examples/ex42/ex42.sh b/doc/examples/ex42/ex42.sh index 14905380454..40c1e6d53ef 100755 --- a/doc/examples/ex42/ex42.sh +++ b/doc/examples/ex42/ex42.sh @@ -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 diff --git a/doc/examples/ex43/ex43.bat b/doc/examples/ex43/ex43.bat index 53388a37d00..3534303d935 100644 --- a/doc/examples/ex43/ex43.bat +++ b/doc/examples/ex43/ex43.bat @@ -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. diff --git a/doc/examples/ex43/ex43.sh b/doc/examples/ex43/ex43.sh index b98cc7e2274..145c8646d39 100755 --- a/doc/examples/ex43/ex43.sh +++ b/doc/examples/ex43/ex43.sh @@ -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 diff --git a/doc/examples/ex45/ex45.bat b/doc/examples/ex45/ex45.bat index 268018c4e39..1b8fe07995a 100644 --- a/doc/examples/ex45/ex45.bat +++ b/doc/examples/ex45/ex45.bat @@ -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 diff --git a/doc/examples/ex47/ex47.sh b/doc/examples/ex47/ex47.sh index 291071d9adf..f2b1e99c28e 100755 --- a/doc/examples/ex47/ex47.sh +++ b/doc/examples/ex47/ex47.sh @@ -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 diff --git a/doc/examples/ex48/ex48.sh b/doc/examples/ex48/ex48.sh index 9bd7ff5fea8..5479f5039e3 100755 --- a/doc/examples/ex48/ex48.sh +++ b/doc/examples/ex48/ex48.sh @@ -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 diff --git a/doc/examples/ex49/ex49.bat b/doc/examples/ex49/ex49.bat index 4754263e7a6..85311695900 100644 --- a/doc/examples/ex49/ex49.bat +++ b/doc/examples/ex49/ex49.bat @@ -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 diff --git a/doc/examples/ex49/ex49.sh b/doc/examples/ex49/ex49.sh index d6f41c0cd29..517cce89bbe 100755 --- a/doc/examples/ex49/ex49.sh +++ b/doc/examples/ex49/ex49.sh @@ -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 diff --git a/doc/examples/ex50/ex50.bat b/doc/examples/ex50/ex50.bat index 1c70a06ee0f..b8242916a9b 100644 --- a/doc/examples/ex50/ex50.bat +++ b/doc/examples/ex50/ex50.bat @@ -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 diff --git a/doc/examples/ex50/ex50.sh b/doc/examples/ex50/ex50.sh index 4874dea4ed8..a8b104b93fc 100755 --- a/doc/examples/ex50/ex50.sh +++ b/doc/examples/ex50/ex50.sh @@ -3,6 +3,7 @@ # # Purpose: Illustrate different statistical distributions in gmtmath # GMT modules: math, set, plot, text +# Unix progs: rm # gmt begin ex50 diff --git a/doc/examples/ex52/ex52.sh b/doc/examples/ex52/ex52.sh index 47f502ced69..40f8719888c 100755 --- a/doc/examples/ex52/ex52.sh +++ b/doc/examples/ex52/ex52.sh @@ -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 diff --git a/doc/examples/ex53/ex53.sh b/doc/examples/ex53/ex53.sh index 6d6d57e943c..59cba0d7618 100755 --- a/doc/examples/ex53/ex53.sh +++ b/doc/examples/ex53/ex53.sh @@ -4,6 +4,7 @@ # # Purpose: Illustrate subplot with loops # GMT modules: makecpt, subplot, set, plot, grdimage, clip, coast +# Unix progs: rm # gmt begin ex53 @@ -22,4 +23,4 @@ gmt begin ex53 done < $data gmt subplot end rm -f Top12Cities.txt -gmt end show +gmt end show \ No newline at end of file