#!/bin/csh -f
# modified August 20, 1997 clh - only for readability, no functional changes
#          September 23, 1997 clh - group like functions (plot, list, etc.)
#          November 24, 1997 clh - display sub-selections, if any active
#  OBJEXT == path to object with extension
#  OBJECT == object name - simple form (no /jg/serv)
#
# below removed until we decide whether to serve
#<li><a href="/jg/dynopt$FULLOBJ?$subsel">Dynamic Height calculations</a>
#<li><a href="/jg/fullplotopt$FULLOBJ?$subsel">Full Plot</a> Allows 
#specifying details for an X-Y plot
#
source build-opt-env

if ( $#argv == 0 ) then
  echo "Content-type: text/html"
  echo ""
else if ( "$argv[$#argv]" == "-f" ) then
else
  echo "Content-type: text/html"
  echo ""
endif

echo "<html><head><title>Plotting and Other Operations menu</title></head>"
echo "<body>"
echo "<h1>Plotting and Other Operations Menu</h1>"
if ( "${SUBSELS}x" == "x" ) then
  echo "<b>Current object is:  ${OBJECT}</b></br>"
  set URLFULL=${URLOBJX}
  set CALLURL=${OBJEXT}
else
  echo "<b>Current object is:  ${OBJECT}($DISPSS)</b></br>"
  set URLFULL="${URLOBJX}?${SUBSELS}"
  set CALLURL="${OBJEXT}?${SUBSELS}"
endif

echo "<hr noshade>"
echo "<p>"

cat << XXstuffXX
<ul>
<li>
<b>
<font size="4">Listing and downloading data</font></b>
<p>
<ul type=disc>
<li>
<a href="$URLFULL">List at this level</a>
<li>
<a href="/jg/listopt$CALLURL">Other data listing formats</a>
<li>
<a href="/jg/makematlab$CALLURL">Matlab file format</a> 
of all data at this level and further in. 
<a href="/matlab-downloading-help.html">
<img alt="[HELP]" align=absmiddle border=0 src="/images/helpbutton.gif"></a> 
<li>
<a href="/jg/download-1$CALLURL">Download utility</a>
<a href="/download-help.html">
<img alt="[HELP]" align=absmiddle border=0 src="/images/helpbutton.gif"></a>
<p>
</ul>
<p>
<li>
<b>
<font size="4">Manipulating data</font>
</b> 
<p>
<ul type=disc>
<li>
<a href="/jg/math-form$CALLURL">Math operations</a> 
for calculating values from existing parameters. 
<a href="/math-help.html">
<img alt="[HELP]" align=absmiddle border=0 src="/images/helpbutton.gif"></a>
<li>
<a href="/joinu.shtml$CALLURL">Join 2 objects</a> having at least 1 parameter in common. 
<a href="/joinu_help.html">
<img alt="[HELP]" align=absmiddle border=0 src="/images/helpbutton.gif"></a> 
<p>
</ul>
<li>
<b>
<font size="4">Plotting data</font>
</b>
<ul type=disc>
<li>
<a href="/jg/plotopt$CALLURL">Simple X-Y plot</a>
<li>
<a href="/jg/mapoptjg$CALLURL">Mapping of data locations</a> (JGOFS software)
</ul>
<p>
<li>
<b>
<font size="4">
<a href="/jg/selopt$CALLURL">Subsetting data</a>
</font>
</b>
<a href="/subhelp.html">
<img alt="[HELP]" align=absmiddle border=0 src="/images/helpbutton.gif"></a>
</ul>
XXstuffXX

echo "</body>"
echo "</html>"
