Sophie

Sophie

distrib > Mageia > 6 > armv5tl > by-pkgid > 201e0834e55f1cfb56df6e684a6ce2cd > files > 4005

eso-midas-doc-15SEPpl1.0-2.mga6.armv5tl.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>Maximum limits</TITLE>
<META NAME="description" CONTENT="Maximum limits">
<META NAME="keywords" CONTENT="vol2">
<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="vol2.css">
<LINK REL="previous" HREF="node302.html">
<LINK REL="up" HREF="node301.html">
<LINK REL="next" HREF="node304.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A NAME="tex2html5199"
 HREF="node304.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="icons.gif/next_motif.gif"></A> 
<A NAME="tex2html5196"
 HREF="node301.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="icons.gif/up_motif.gif"></A> 
<A NAME="tex2html5192"
 HREF="node302.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="icons.gif/previous_motif.gif"></A> 
<A NAME="tex2html5198"
 HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="icons.gif/contents_motif.gif"></A>  
<BR>
<B> Next:</B> <A NAME="tex2html5200"
 HREF="node304.html">A brief history of</A>
<B> Up:</B> <A NAME="tex2html5197"
 HREF="node301.html">Installation</A>
<B> Previous:</B> <A NAME="tex2html5193"
 HREF="node302.html">Table files</A>
<BR>
<BR>
<!--End of Navigation Panel-->

<H2><A NAME="SECTION001862000000000000000">
Maximum limits</A>
</H2>
The planning and reduction programs are distributed with array sizes set large
enough to let most observers work without difficulty.
However, you might need to reduce a very large data set, or to deal with a very
large number of passbands (9 is the nominal limit).
The programs are all written in FORTRAN, and the dimensions of these arrays are
set by <TT>PARAMETER</TT> statements in ``include'' files.
All these short files are in the <TT>$MIDASHOME/$MIDVERS/contrib/pepsys/incl</TT>
subdirectory.

<P>
The programs check for array overflows as they read data.
If you encounter a limit, the program will tell you which <TT>PARAMETER</TT>
statement to change.
Ask your MIDAS guru to edit the  <TT>PARAMETER</TT> statement and recompile the
programs.
To make sure everything is internally consistent, compile the subroutines
<I>before</I> compiling the main programs: move to the <TT>pepsys/libsrc</TT>
directory and make the subroutines, then go to the <TT>pepsys/src</TT> directory
to make the main programs.

<P>
The main limitation on what is practical is machine memory.  If your machine
does not have enough memory to store all the necessary arrays without swapping
pages back and forth to disk, the reduction program may run very slowly.
(Bear in mind that response on multi-user machines also depends on what else is
being run by other users at the same time.)
The main problem is holding the matrix of normal equations during the
iterations; on the other hand,
star catalogs can be made quite large without paying much of a
price in terms of performance.
(However, if the number of stars exceeds 2048, the binary-search subroutine
<TT>NBIN</TT> will need to be modified.)

<P>
You can get a rough idea of where you will run into problems by noting that the
matrix of normal equations is made of double-precision numbers, and is a square
matrix (well... triangular, actually) with as many elements each way
as there are parameters to be evaluated.
For example, to solve for 120 extinction and standard stars in 4 colors takes
480 parameters; there will be some extinction and transformation coefficients,
too, so this problem is about 500 x 500, using a quarter of a million matrix
elements.
Each element is 8 bytes long, on most systems; so we need roughly 2 MB of
memory -- no problem these days.
Of course, only half the matrix is stored, as it is symmetric.
On the other hand, you need space for the right-hand-side vector, and the
program as well, not to mention other arrays that are needed.
So this rough calculation is good enough for astrophysical accuracy.

<P>
On the other hand, if you wanted to do 1000 stars simultaneously in 4 colors,
you'd need some 16 million elements of 8 bytes each, or 128 MB of storage.
That's probably too big for most machines to handle gracefully.
Or, if you wanted to reduce 100 channels of spectrophotometry simultaneously,
even 20 stars would give you 2000 parameters (plus 100 extinction coefficients
per night!); that would be over 32 MB, and heading for trouble.
In this latter case, it would probably make sense to reduce smaller subsets of
bands together, to allow more stars and nights to be combined.
In general, you should try to reduce at least 4 or 5 nights' data together, to
improve the extinction determinations.

<P>
If your machine proves to be a bottleneck, you might want to maintain two
variants of the reduction program: one small enough to run quickly on ordinary
data sets, and a monster version for the occasional monster problem.
In this case, the small, fast version would be kept in the regular MIDAS
directory tree, and the gigantic version could be owned by the
rare user who needs it.

<P>
If you find it necessary to increase some of the array parameters, please let
the Image Processing Group at ESO know what changes you make.
This will allow revised parameters to be distributed in future releases.

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html5199"
 HREF="node304.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="icons.gif/next_motif.gif"></A> 
<A NAME="tex2html5196"
 HREF="node301.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="icons.gif/up_motif.gif"></A> 
<A NAME="tex2html5192"
 HREF="node302.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="icons.gif/previous_motif.gif"></A> 
<A NAME="tex2html5198"
 HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="icons.gif/contents_motif.gif"></A>  
<BR>
<B> Next:</B> <A NAME="tex2html5200"
 HREF="node304.html">A brief history of</A>
<B> Up:</B> <A NAME="tex2html5197"
 HREF="node301.html">Installation</A>
<B> Previous:</B> <A NAME="tex2html5193"
 HREF="node302.html">Table files</A>
<!--End of Navigation Panel-->
<ADDRESS>
<I>Petra Nass</I>
<BR><I>1999-06-15</I>
</ADDRESS>
</BODY>
</HTML>