Hi Doug,
Here are the routines I wrote to convert your data to a Vis5d file. I tried to make it a generic as possible, but didn't quite succeed. It should, however, be easily modified for your next data set. Feel free to contact me should yo uhave any problems with this: cmoore@pmel.noaa.gov
To unpack the files (unix)
download the demo tar dist file at: ftp://www.pmel.noaa.gov/OCRD/cmoore/pyle/grdtov5d.tar.gz
unpack the tar dist file by issuing the command:
gzip -d < grdtov5d.tar.gz | tar xvf -
change directories to the "grdtov5d" directory:
cd grdtov5d
To unpack the files (PC)
download and install Winzip (if you don't have it already) at: http://www.winzip.com.
download the demo tar dist file by left-clicking: ftp://www.pmel.noaa.gov/OCRD/cmoore/pyle/grdtov5d.tar.gz
Winzip will ask if you'd like to "Open it" or "Save it to disk". Choose "Open it".
Winzip will unpack it and say that it contains one file (grdtov5d.tar). Choose "Yes" to decompress and open.
Open the "grdtov5d" folder that Winzip has created.
What I've given you:
There are 2 C++ files. The first (grdtov5d.cxx) makes the v5d file. The second (maketopo.cxx) makes a topography v5d file for your region from the etopo60 data set (topo.nc).
The executables of these 2 files will only run on an SGI machine... but you can recompile them on your machine using the Makefile. The other .h and .c files are for doing this.
The finished product is the file called pache3.v5d (and the topo is called etopo60.topo). To use them, simply run Vis5d:
vis5d -topo etopo60.topo -hirestopo pache3.v5d
I've also included a texture file for the topography (texture.rgb), but this doesn't quite work as exprected....
Note that I also have a c-shell script with the data files in the subdirectory "gmt".
Give me an email and make sure this works for you. You'll have to modify grdtov5d.cxx to include all the levels. Good luck! -CM