# Save existing GMT defaults echo Saving GMT defaults... gmtdefaults -L > gmtdefaults$$ # # Set new GMT defaults echo Setting new GMT defaults... gmtset PAPER_WIDTH 8.5 gmtset ANOT_FONT Helvetica gmtset LABEL_FONT Helvetica gmtset HEADER_FONT Helvetica gmtset ANOT_FONT_SIZE 8 gmtset LABEL_FONT_SIZE 8 gmtset HEADER_FONT_SIZE 10 gmtset FRAME_WIDTH 0.075 gmtset TICK_LENGTH 0.075 gmtset PAGE_ORIENTATION LANDSCAPE gmtset COLOR_BACKGROUND 0/0/0 gmtset COLOR_FOREGROUND 255/255/255 gmtset COLOR_NAN 255/255/255 # # Make color pallette table file echo Making color pallette table file... echo -7.5 255 255 255 0 255 186 133 > natpark2m.grd.cpt echo 0 255 186 133 7.5 255 161 68 >> natpark2m.grd.cpt echo 7.5 255 161 68 15 255 189 87 >> natpark2m.grd.cpt echo 15 255 189 87 22.5 240 236 121 >> natpark2m.grd.cpt echo 22.5 240 236 121 30 205 255 162 >> natpark2m.grd.cpt echo 30 205 255 162 37.5 138 236 174 >> natpark2m.grd.cpt echo 37.5 138 236 174 45 106 235 255 >> natpark2m.grd.cpt echo 45 106 235 255 52.5 50 190 255 >> natpark2m.grd.cpt echo 52.5 50 190 255 60 40 127 251 >> natpark2m.grd.cpt echo 60 40 127 251 67.5 37 57 175 >> natpark2m.grd.cpt # # Make color image echo Running grdimage... grdimage natpark2m.grd -Jm110.169491525424 \ -R-170.731/-170.672/-14.2783/-14.2268 -Cnatpark2m.grd.cpt \ -P -X1 -Y2.8414593220339 -K -V > natpark2m.grd.ps # # Make contour plot #echo Running grdcontour... #grdcontour natpark2m.grd -Jm110.169491525424 \ # -R-170.731/-170.672/-14.2783/-14.2268 \ # -C2.5 \ # -L-0.246948/61.5664 -Wc1p \ # -P -K -O -V >> natpark2m.grd.ps # # Make color scale echo Running psscale... psscale -Cnatpark2m.grd.cpt \ -D3.2500/-0.5000/6.5000/0.1500h \ -B":.Depth (m):" \ -P -K -O -V >> natpark2m.grd.ps # # Make basemap echo Running psbasemap... psbasemap -Jm110.169491525424 \ -R-170.731/-170.672/-14.2783/-14.2268 \ -Bf1mg1m/f1mg1m:."National Park of American Samoa - Tutuila - 2-m Bathym etry Grid": \ -P -O -V >> natpark2m.grd.ps # # Delete surplus files echo Deleting surplus files... rm -f natpark2m.grd.cpt # # Reset GMT default fonts echo Resetting GMT fonts... mv gmtdefaults$$ .gmtdefaults # # Run ghostview echo Running ghostview in background... #ghostview natpark2m.grd.ps & # # All done! echo All done with National Park!