#!/bin/sh # # drft06trr_smt - make a DRFT06RR smt web page (drft06rr.smtxxx.html) # # This script creates a drft06rr.smtxxx.html file (xxx = 000-nnn) pointed to by the box html pages. # It doesn't care if any of the files and images it links to are not there yet. # # Paul Wessel, 19-NOV-2001 H=drft06rr DRGLIS=drft06rr_dredges.lis #--------------------------- mkdir -p $H cd $H mkdir -p smts date=`date` # # Makes the html files for a single Seamount smt=$1 got_2D=0 got_3D=0 got_SS=0 if [ -f smts/$H.smt$smt.2dview.jpg ]; then got_2D=1 fi if [ -f smts/$H.smt$smt.3dview.jpg ]; then got_3D=1 fi if [ -f smts/$H.smt$smt.sidescan.jpg ]; then got_SS=1 fi box=`echo $smt | awk '{if ($1 == "'$smt'") print $2}' ../drft06rr_smts.lis` cat << EOF > smts/$H.smt$smt.html Drift Expedition Leg 6: The Easter/Salas y Gomez/Nazca Survey - Seamount $smt

Drift Expedition Leg 6: The Easter/Salas y Gomez/Nazca Survey - Seamount $smt

EOF if [ -f smts/$H.smt$smt.map.jpg ]; then cat << EOF >> smts/$H.smt$smt.html
Seamount map $smt

EOF else echo "

No seamount map available yet

" >> smts/$H.smt$smt.html fi cat << EOF >> smts/$H.smt$smt.html

Click the icons to select another file format for the seamount map above: PDF map EPS map JPEG map

Click to view additional images: EOF if [ $got_2D -eq 1 ]; then echo "\"2-D" >> smts/$H.smt$smt.html fi if [ $got_3D -eq 1 ]; then echo "\"3-d" >> smts/$H.smt$smt.html fi if [ $got_SS -eq 1 ]; then echo "\"Processed" >> smts/$H.smt$smt.html fi cat << EOF >> smts/$H.smt$smt.html

Click the Dredge ID below to select a specific dredge. Each dredge page contains

  1. Map of shiptrack during dredging plotted over 25 m bathymetry contours.
  2. Map of approximate shiptrack over 20 m contours and unprocessed side scan image (150m pixel size).
  3. Dredge description.
  4. Dredge photos.
  5. Dredge samples.

Select dredge: EOF if [ -f ../$DRGLIS ]; then awk '{if ($2 == "'$smt'") printf "\"Dredge\n", "'$H'", $1, $1, $1}' ../$DRGLIS >> smts/$H.smt$smt.html fi cat << EOF >> smts/$H.smt$smt.html

Note: Not all dredge pages have all 5 items. Red button dredges may have samples suitable for dating.

DRFT06RR home Return to Drift Expedition Leg 6 home page Goto box Box $box


drft06rr_smt $smt: Page last updated $date by $USER. EOF if [ $got_2D -eq 1 ]; then cat << EOF > smts/$H.smt$smt.2dview.html Drift Expedition Leg 6: The Easter/Salas y Gomez/Nazca Survey - Seamount $smt 2D view

Drift Expedition Leg 6: The Easter/Salas y Gomez/Nazca Survey - Seamount $smt 2D view

Seamount $smt 2D view

Return to Seamount $smt EOF fi if [ $got_3D -eq 1 ]; then cat << EOF > smts/$H.smt$smt.3dview.html Drift Expedition Leg 6: The Easter/Salas y Gomez/Nazca Survey - Seamount $smt 3D view

Drift Expedition Leg 6: The Easter/Salas y Gomez/Nazca Survey - Seamount $smt 3D view

Seamount $smt 3D view

Most views are illuminated from az=315, el=45. Vertical exaggeration: 10x

Return to Seamount $smt EOF fi if [ $got_SS -eq 1 ]; then cat << EOF > smts/$H.smt$smt.sidescan.html Drift Expedition Leg 6: The Easter/Salas y Gomez/Nazca Survey - Seamount $smt Side-scan

Drift Expedition Leg 6: The Easter/Salas y Gomez/Nazca Survey - Seamount $smt Side-scan

Seamount $smt side-scan

Pixel size is 100x100m

Return to Seamount $smt EOF fi