Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 37ce2601040f8edc2329d4714238376a > files > 815

eso-midas-doc-13SEPpl1.2-3.mga5.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 98.1p1 release (March 2nd, 1998)
originally by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Specifying Elements in a Table</TITLE>
<META NAME="description" CONTENT="Specifying Elements in a Table">
<META NAME="keywords" CONTENT="vol1">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<LINK REL="STYLESHEET" HREF="vol1.css">
<LINK REL="next" HREF="node29.html">
<LINK REL="previous" HREF="node27.html">
<LINK REL="up" HREF="node25.html">
<LINK REL="next" HREF="node29.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A NAME="tex2html836"
 HREF="node29.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="icons.gif/next_motif.gif"></A> 
<A NAME="tex2html832"
 HREF="node25.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="icons.gif/up_motif.gif"></A> 
<A NAME="tex2html826"
 HREF="node27.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="icons.gif/previous_motif.gif"></A> 
<A NAME="tex2html834"
 HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="icons.gif/contents_motif.gif"></A> 
<A NAME="tex2html835"
 HREF="node216.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
 SRC="icons.gif/index_motif.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html837"
 HREF="node29.html">Specifying Pixels in an</A>
<B> Up:</B> <A NAME="tex2html833"
 HREF="node25.html">MIDAS Data Structures</A>
<B> Previous:</B> <A NAME="tex2html827"
 HREF="node27.html">Specifying Keywords</A>
<BR>
<BR>
<!--End of Navigation Panel-->

<H2><A NAME="SECTION00633000000000000000">&#160;</A><A NAME="1519">&#160;</A><A NAME="1520">&#160;</A>
<BR>
Specifying Elements in a Table
</H2> 

<P>
The MIDAS table file system is described in detail in chapter 5 of this
volume. Here we just explain briefly how to access the various elements
in a table file. To do so, it is
necessary to specify the <I>table name</I>, the <I>column</I> and
the <I>row</I>. This is done in the following format (order):
<BR>
<TT>table column row</TT>
<BR>
where <BR>
<I>table</I> is the table name;
<BR>
<I>column</I> is the desired column which can be referenced by label as
   <TT>:col</TT> or by sequence number as <TT>#n</TT>; <BR>
<I>row</I> is the desired row referenced by number as
    <TT>@n</TT> or by a value in a predefined reference column.
<BR>
Like descriptor and keyword names, column labels are case insensitive.
The command:<BLOCKQUOTE>
<TT>READ/TABLE tname #3 @10</TT></BLOCKQUOTE>would display the element in column&nbsp;3 of row&nbsp;10 in table file
<TT>tname.tbl</TT> .
<BR>
Similarly, the command:<BLOCKQUOTE>
<TT>READ/TABLE tname :MAGNITUDE 20.0</TT></BLOCKQUOTE>would access the element in the column labeled `MAGNITUDE'
and value 20.0 in the reference column (this reference column must have been
defined before via the <TT>SET/REFCOLNUM</TT> command).
<BR>
Note, that we need not specify the file extension <TT>.tbl</TT>
as in the descriptor related commands.
All table commands default the data files to tables with extension <TT>.tbl</TT>.
<BR>
&nbsp;&nbsp; <BR>
Single table elements can also be written in a more direct way, via
<BR>
<TT>table,column,row = value</TT>,
<BR>
e.g. to set the element in the 3rd row of the
column labeled <TT>:XREF</TT> in the table <TT>lola.tbl</TT> to <TT>1.234</TT>, use <BR>
<TT>lola,:xref,@3 = 1.234</TT>
<BR>
The <I>value</I> can also be an <I>expression</I> made up of constants and elements
of any MIDAS data structure, see the subsection&nbsp;<A HREF="node40.html#symbol-substitution">3.6.2</A>.
<BR>
&nbsp;&nbsp; <BR>
Some of the commands dealing with tables are:
<BR>
<TT>READ/TABLE, WRITE/TABLE, COMPUTE/TABLE, SHOW/TABLE, EDIT/TABLE, 
COPY/TABLE</TT>.

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html836"
 HREF="node29.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="icons.gif/next_motif.gif"></A> 
<A NAME="tex2html832"
 HREF="node25.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="icons.gif/up_motif.gif"></A> 
<A NAME="tex2html826"
 HREF="node27.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="icons.gif/previous_motif.gif"></A> 
<A NAME="tex2html834"
 HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="icons.gif/contents_motif.gif"></A> 
<A NAME="tex2html835"
 HREF="node216.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
 SRC="icons.gif/index_motif.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html837"
 HREF="node29.html">Specifying Pixels in an</A>
<B> Up:</B> <A NAME="tex2html833"
 HREF="node25.html">MIDAS Data Structures</A>
<B> Previous:</B> <A NAME="tex2html827"
 HREF="node27.html">Specifying Keywords</A>
<!--End of Navigation Panel-->
<ADDRESS>
<I>Petra Nass</I>
<BR><I>1999-06-09</I>
</ADDRESS>
</BODY>
</HTML>