#!/bin/csh
# modified September 1997, clh
#    look like 'newer' style options
#    add ability to download CSV and nd conversion to -9999.0
#
if ( ! -e /jgofsopt/$REMOTE_HOST ) then
 mkdir /jgofsopt/$REMOTE_HOST
 cp $HD/setup/* /jgofsopt/$REMOTE_HOST
 endif
cd /jgofsopt/$REMOTE_HOST

set tmp=$PATH_INFO
setenv ACTUALNOSUFF `/data/globec/htmlbin/bin/fixurl $tmp:r`
setenv OBJ $tmp:r
setenv FULLOBJ $OBJ
unsetenv PATH_INFO
if ( "$QUERY_STRING" != "" ) setenv FULLOBJ "$OBJ($QUERY_STRING)"

cat <<XXstuffXX
Content-type: text/html

<p>
<html><head><title>Other data listing formats</title></head>
<body>
<h1>Other data listing formats</h1>
<b>Current object is:  $OBJ</b></br>
<hr noshade>
<p>
<b>Hint</b>:  By holding down the Shift key and clicking on
 a link, you can download the data without displaying
 it on your screen.
<p>

<ul>
<li><font size="5"><a href="$ACTUALNOSUFF.flat99?$QUERY_STRING">Flat listing</a></font> 
<dl><dd> table with one column per variable, names on top line</dl>
<p>
<li><font size="5"><a href="/jg/listbrief?$FULLOBJ">Data only listing</a></font>
<dl><dd> table with one column per variable, no variable names</dl>
<p>
<li><font size="5"><a href="/jg/listfnzm?$FULLOBJ">CSV style listing</a></font>
<dl><dd> Identifying comments
    <dd> comma-separated values
    <dd> convert 'nd' to -9999.0</dl>
<p>
</ul>
</body>
</html>
XXstuffXX

