![]() |
The Santa Barbara Channel Experiment (SBCX) |
gcc -o extract_bath extract_bath.c bath-util.c convert_datum.c -lm
gcc -o plot_bath plot_bath.o convert_datum.o -L/usr/X11R6/lib -lX11 -lm
This program uses X windows to display the output. It also requires the UTM bathymetric grid file, sbcxbath.utm and the bathymetric contour file sbcxvect.utm to display.
One can overlay ship tracks or other lines on the plot, by using a very simple text file. The format of the file is as follows:
Line 1: LL (or) UTM
Specify LL if the data to be plotted is furnished in lat/long pairs, or UTMif the data is in UTM coordinate pairs.
Line 2: color
Specify the color which the coordinate data should be plotted in
Line 3: width
Specify the line width (in number of pixels)which should be plotted
Lines 4 through the end of file: latitude, longitude (or) UTM X, UTM Y
If one specifies latitude/longitude pairs, they should be in decimal notation separated by commas, not HHMMSS. Characters on the line after the coordinate pairs are ignored.
Here is an example overlay file, for the A/X 2 Hot Data Set
The user interface for the plotting program is very simple. There are three controls: the left, middle, and right mouse buttons. Pressing the left mouse button will zoom the contour plot in by a factor of two. Pressing the middle mouse button will zoom the countour plot out by a factor of two. Pressing the right mouse button will redraw the contour plot.
Contour depths are not labeled; however, black contour lines are drawn at 10 meter intervals. Red contour lines are drawn at 50 meter intervals, and dark green contour lines are drawn at 500 meter intervals. By passing the cursor over the contour line in question, one can obtain the depth for that contour line.
The FFP array is always drawn on the plot as a bright green pentagon
outline.
| Last updated: 991202 change log
Comments/Questions: pmd@alum.mit.edu |
![]() |
