<!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>Catalogs in MIDAS</TITLE> <META NAME="description" CONTENT="Catalogs in MIDAS"> <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="node52.html"> <LINK REL="previous" HREF="node48.html"> <LINK REL="up" HREF="node22.html"> <LINK REL="next" HREF="node51.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html1106" HREF="node51.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="icons.gif/next_motif.gif"></A> <A NAME="tex2html1102" HREF="node22.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="icons.gif/up_motif.gif"></A> <A NAME="tex2html1096" HREF="node49.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="icons.gif/previous_motif.gif"></A> <A NAME="tex2html1104" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="icons.gif/contents_motif.gif"></A> <A NAME="tex2html1105" 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="tex2html1107" HREF="node51.html">Using Catalogs in MIDAS</A> <B> Up:</B> <A NAME="tex2html1103" HREF="node22.html">Monitor and Command Language</A> <B> Previous:</B> <A NAME="tex2html1097" HREF="node49.html">Debugging of Procedures and</A> <BR> <BR> <!--End of Navigation Panel--> <H1><A NAME="SECTION00690000000000000000"> </A> <A NAME="2545"> </A> <A NAME="catalogs-in-midas"> </A> <BR> Catalogs in MIDAS </H1> <P> MIDAS catalogs are best described as a list/collection of one of the supported data structures, e.g. Images, Tables or Fit files. Catalogs are implemented as ASCII files with the file type <TT>.cat</TT>. A MIDAS catalog has entries either for images or tables or fit files currently existing in MID_WORK and is then referred to as an Image, Table or FitFile catalog, accordingly. If a catalog is enabled (via <TT>SET/ICAT, SET/TCAT, SET/FCAT</TT>), new entries are added automatically whenever new frames are created, otherwise entries in a catalog have to be explicitly created via <TT>ADD/ICAT</TT>, <TT>ADD/TCAT</TT>, etc. <BR> Frames that are listed in a catalog may then be referenced by their name, as well as <BR> via <TT>#n</TT>, if <TT>n</TT> is the entry_no. of the frame in the currently enabled catalog, or <TT>#n,cat_name</TT> if the entry is in catalog <TT>cat_name.cat</TT> (only one catalog of each type can be enabled at any one time). <BR> <BR> The following commands are related to the use of catalogs: <BR> <BR> <TT>CREATE/xCAT</TT> <I>cat_name dir_specs</I> <TT>x = I, T, F</TT> for images, tables, fit files <BR> create catalog <I>cat_name</I> for images/tables/fit files, using <I>dir_specs</I>, <BR> which are the options of the host commands <TT>DIRECTORY</TT> (VMS) or <TT>ls</TT> (Unix). <BR> <BR> <TT>SET/xCAT</TT> <I>cat_name</I>; <TT>CLEAR/xCAT</TT> <BR> enable/disable automatic addition of entries for images/ tables/fit files in MID_WORK <BR> to catalog <I>cat_name</I> <BR> <BR> <TT>READ/xCAT</TT> <I>cat_name low,hi</I> <BR> display all entries of image/table/fit file catalog <I>cat_name</I> within given range <I>[low,hi]</I> <BR> <BR> <TT>ADD/xCAT</TT> <I>cat_name frame_list</I> <BR> add image/table/fit file entry(ies) specified in <I>frame_list</I> to catalog <I>cat_name</I> <BR> <BR> <TT>SUBTRACT/xCAT</TT> <I>cat_name frame_list</I> <BR> remove entry(ies) from image/table/fit file catalog <I>cat_name</I> <BR> <BR> <TT>EXECUTE/CATALOG</TT> <I>proc P1 P2 ... P7</I> <BR> execute the MIDAS procedure <I>proc</I> which was written for a single frame <BR> for all frames in a catalog. <BR> <BR> <TT>WRITE/SETUP CATALOG </TT> <BR> setup the necessary keywords for an <TT>EXECUTE/CATALOG</TT> command <P> <BR><HR> <!--Table of Child-Links--> <A NAME="CHILD_LINKS"> </A> <UL> <LI><A NAME="tex2html1108" HREF="node51.html">Using Catalogs in MIDAS Procedures</A> </UL> <!--End of Table of Child-Links--> <HR> <!--Navigation Panel--> <A NAME="tex2html1106" HREF="node51.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="icons.gif/next_motif.gif"></A> <A NAME="tex2html1102" HREF="node22.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="icons.gif/up_motif.gif"></A> <A NAME="tex2html1096" HREF="node49.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="icons.gif/previous_motif.gif"></A> <A NAME="tex2html1104" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="icons.gif/contents_motif.gif"></A> <A NAME="tex2html1105" 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="tex2html1107" HREF="node51.html">Using Catalogs in MIDAS</A> <B> Up:</B> <A NAME="tex2html1103" HREF="node22.html">Monitor and Command Language</A> <B> Previous:</B> <A NAME="tex2html1097" HREF="node49.html">Debugging of Procedures and</A> <!--End of Navigation Panel--> <ADDRESS> <I>Petra Nass</I> <BR><I>1999-06-09</I> </ADDRESS> </BODY> </HTML>