Keywords : -

GMT

SonarScope permits to export GMT (.grd) format data and proposes at the same time the data displayed in a cartographic projection. A postscript file is created and its visual display is automatically launched. A PDF is created as well and AcroRead is automatically launched. The GMT script is stored into a file that advanced users can print to change, add or remove some lines to obtain a map perfectly answering their expectation.

3D Bloc realised by GMT

GMT script

The script automatically generated to create the image below is given next

REM  GMT Script auto
REM
REM Fichier inspiré des exemples avec GMT, livrés partiellement avec SonarScope
REM Trace du fichier .grd après son traitement puis export
REM ===========================================================================
echo GMT fichier genere par SonarScope
set master=y
if exist scriptGMT.bat set master=n
if %master%==y  cd C:/TEMP
gmtset COLOR_BACKGROUND 225/225/225
gmtset MEASURE_UNIT cm
gmtset INTERPOLANT Linear
gmtset HEADER_FONT_SIZE 12
gmtset HEADER_OFFSET -0.2c
gmtset ANNOT_OFFSET_PRIMARY 0.35c
gmtset ANNOT_FONT_SIZE 10p
gmtset BASEMAP_TYPE fancy
gmtset PLOT_DEGREE_FORMAT -ddd:mm
gmtset OUTPUT_DEGREE_FORMAT +D
gmtset D_FORMAT %%8.3f
gmtset ELLIPSOID WGS-84
gmtset PAPER_MEDIA A4+
gmtset PAGE_ORIENTATION landscape
set longmin=-67.750000
set longmax=157.750000
set latmin=-45.250000
set latmax=44.750000
set versSonarScope=1.6
grdedit -A "C:\TEMP\Test_r.grd"
grdedit -A "C:\TEMP\Test_g.grd"
grdedit -A "C:\TEMP\Test_b.grd"
grdimage "C:\TEMP\Test_r.grd" "C:\TEMP\Test_g.grd" "C:\TEMP\Test_b.grd" -JM45.000000/-0.250000/2.213000e+001c -C"C:/TEMP/Test.cpt"  -K -X3.785000e+000c -Y5.348000e+000c -U/0c/-1.500000e+000c/"SonarScope - V%versSonarScope% - IFREMER - " > "C:\TEMP\Test.ps"
grdedit -A "C:\TEMP\tmp_10_Mar_2007_01_05_59_675474.grd"
gmtset D_FORMAT %%5.0f
grdcontour "C:\TEMP\tmp_10_Mar_2007_01_05_59_675474.grd" -JM45.000000/-0.250000/2.213000e+001c -X0c -Y0c -C1000.000000 -A5000.000000+k0/0/0 -Gd5c -T -Wc1/0/0/0 -Wa3/0/0/0 -O -S -K >> "C:\TEMP\Test.ps"
gmtset D_FORMAT %%8.3f
gmtset ANNOT_FONT_SIZE 7p
psbasemap -R%longmin%/%longmax%/%latmin%/%latmax% -J  -Bf50g50a50/f10g10a10WeSn:."Earth_LatLong_SunColor (00-56-03) MERCATOR Long Centrale= 45.00, Lat cons.= -0.25": -O >> "C:\TEMP\Test.ps"
gmtset COLOR_BACKGROUND 0/0/0
gmtset HEADER_FONT_SIZE 36p
gmtset INTERPOLANT Akima
gmtset ANNOT_OFFSET_PRIMARY 0.2c 
gmtset ANNOT_FONT_SIZE 14p 
gmtset PLOT_DEGREE_FORMAT +ddd:mm:ss
gmtset OUTPUT_DEGREE_FORMAT +D
gmtset D_FORMAT %%lg
gmtset PAGE_ORIENTATION landscape 
gmtset ELLIPSOID WGS-84 
gmtset PAPER_MEDIA a4+ 
gmtset MAP_SCALE_HEIGHT 0.075i 
gmtset LABEL_FONT_SIZE 24p
del tmp
del .gmt*
if %master%==y cd ..

Copyright and Caveat Emptor!

If you intend to use GMT facilities from SonarScope please click on Copyright and Reminder