<!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 Keywords</TITLE> <META NAME="description" CONTENT="Specifying Keywords"> <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="node28.html"> <LINK REL="previous" HREF="node26.html"> <LINK REL="up" HREF="node25.html"> <LINK REL="next" HREF="node28.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html824" HREF="node28.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="icons.gif/next_motif.gif"></A> <A NAME="tex2html820" HREF="node25.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="icons.gif/up_motif.gif"></A> <A NAME="tex2html814" HREF="node26.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="icons.gif/previous_motif.gif"></A> <A NAME="tex2html822" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="icons.gif/contents_motif.gif"></A> <A NAME="tex2html823" 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="tex2html825" HREF="node28.html">Specifying Elements in a</A> <B> Up:</B> <A NAME="tex2html821" HREF="node25.html">MIDAS Data Structures</A> <B> Previous:</B> <A NAME="tex2html815" HREF="node26.html">Specifying a Descriptor</A> <BR> <BR> <!--End of Navigation Panel--> <H2><A NAME="SECTION00632000000000000000"> </A><A NAME="1496"> </A> <BR> Specifying Keywords </H2> <P> As is the case for descriptors, keywords also have a name (max. 15 chars.), a type and a length (i.e. no. of elements). However, this length is fixed, and once the keywords are created with a certain size, they cannot be extended. The possible types for keywords are: <I>real, integer, character</I> and <I>double precision</I>. Like for descriptors there are no mixed types possible. <BR> In order to write a value to a keyword, the same format as for descriptors is used.<BLOCKQUOTE> <TT>WRITE/KEYWORD Keyname/C/1/8 AKeyword</TT></BLOCKQUOTE>This command would write the ASCII string <TT>AKeyword</TT> into the character keyword <TT>Keyname</TT> and<BLOCKQUOTE> <TT>WRITE/KEYWORD Keyname/I/1/2 17,-22</TT></BLOCKQUOTE>would write the values <TT>17</TT> and <TT>-22</TT> into the integer keyword <TT>Keyname</TT> (elements 1 and 2). <BR> <BR> Single keyword elements can also be written in a more direct way, via <BR> <TT>key = value</TT>, e.g. to set the 12th element of keyword <TT>INPUTR</TT> to <TT>1.234</TT>, use <BR> <TT>inputr(12) = 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 <A HREF="node40.html#symbol-substitution">3.6.2</A>. <BR> <BR> Some of the commands dealing with keywords are: <BR> <TT>READ/KEYWORD, WRITE/KEYWORD, SHOW/KEYWORD, DELETE/KEYWORD, COPY/KEYWORD, <BR> COMPUTE/KEYWORD</TT>. <BR> Keywords and descriptors can be copied to each other via <TT>COPY/KD</TT> and <TT>COPY/DK</TT>. <P> <HR> <!--Navigation Panel--> <A NAME="tex2html824" HREF="node28.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="icons.gif/next_motif.gif"></A> <A NAME="tex2html820" HREF="node25.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="icons.gif/up_motif.gif"></A> <A NAME="tex2html814" HREF="node26.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="icons.gif/previous_motif.gif"></A> <A NAME="tex2html822" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="icons.gif/contents_motif.gif"></A> <A NAME="tex2html823" 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="tex2html825" HREF="node28.html">Specifying Elements in a</A> <B> Up:</B> <A NAME="tex2html821" HREF="node25.html">MIDAS Data Structures</A> <B> Previous:</B> <A NAME="tex2html815" HREF="node26.html">Specifying a Descriptor</A> <!--End of Navigation Panel--> <ADDRESS> <I>Petra Nass</I> <BR><I>1999-06-09</I> </ADDRESS> </BODY> </HTML>