IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13881


Ignore:
Timestamp:
Jun 19, 2007, 11:38:53 AM (19 years ago)
Author:
eugene
Message:

updated text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/manual.tex

    r13869 r13881  
    1  %%% $Id: manual.tex,v 1.8 2007-06-19 03:34:03 eugene Exp $
    2 \documentclass[panstarrs,spec]{panstarrs}
     1 %%% $Id: manual.tex,v 1.9 2007-06-19 21:38:53 eugene Exp $
     2\documentclass[panstarrs,psreport,spec]{panstarrs}
    33
    44% basic document variables
     
    2424% version     Date         Description
    2525DR      & 2007-01-31 & First draft \\ \hline
    26 \RevisionsEnd
     26\hline
     27\end{tabular}
     28\end{center}
    2729
    2830\inserttbd
     
    409411\note{specifying the dvo output database}
    410412
    411 \subsubsection{Pipeline Reduction : CFHT Queue Runs}
    412 
    413 \subsubsection{Pipeline Reduction : PS1 Survey Operations}
     413\subsubsection{Pipeline Reduction : PI-Oriented Observatory}
     414
     415An PI-oriented observatory has the opportunity to operate the analysis
     416system on a somewhat larger scale than the individual user.  At a
     417PI-oriented observatory, there will normally be a rotating suite of
     418instruments, each of which is mounted on the telescope for a
     419substantial number of nights.  Over the course of months and years,
     420the observatory will collect enough data from the instruments to
     421perform a much more detailed level of analysis of the instrument than
     422is possible in a single observing run by a single PI.  In such a
     423situation, the observatory may use the IPP to generate and track the
     424high-quality master detrend images, to apply the detrend images to the
     425data as it is being collected, and to monitor the instrumental zero
     426points and other calibration information.  The basic concepts of
     427running the IPP at a PI observatory are identical to that of a single
     428user.  There are, however, a few modifications which may be
     429interesting.
     430
     431First, it is natural to automatically inject and register the data as
     432it is obtained at the telescope.  The telescope readout software could
     433be modified to call \code{ipp_serial_inject.pl} after each image is
     434obtained.  Alternatively, this step could take place downstream
     435wherever the data are archived.  In an observatory environment, more
     436so than in a single-user situation, it may be perfereable to use the
     437Nebulous infrastructure to manage the location and copies of the image
     438data.  \tdb{define an inject mechanism that uses Nebulous}.
     439
     440Second, it is interesting to consider on what timescale to test and
     441re-build the master detrend images.  In the single user case, the
     442possible input detrend images are fairly limited.  As illustrated
     443above, the single user may use the IPP to define master detrend images
     444and test the consistency of the inputs against these masters.  In an
     445observatory environment, it may be more appropriate to build the
     446masters only on regular intervals when there is a suspicion the
     447instrument may have changed.  The periods in which the instrument is
     448mounted define an obvious possible starting point for this period.
     449Alternatively, the detrend creation steps in the IPP can be defined to
     450run in verify mode on a nightly basis to test the current state of the
     451instrument.  For the PI-oriented observatory, the number of variables
     452may make it difficult to rely on these results in an automatic
     453fashion; user examination of the results with \code{ippMonitor} may be
     454needed to decide if a new master should be built.
     455
     456\subsubsection{Pipeline Reduction : Survey Observatory}
     457
     458A telescope used as a survey instrument has a somewhat different, more
     459limited range of circumstances, than a PI-oriented observatory.  There
     460is generally a pre-defined schedule, perhaps with only a single
     461instrument.  The instrument configuration is more controlled, and the
     462types of observations are more consistently defined.  In this case, an
     463automatic validation process can be more reliably used.  The IPP can
     464be set up to run the detrend validation stage at the beginning of
     465every night, to automatically generate a new master if any of the
     466input detrend images are out of spec, and to start automatic
     467processing of the night's data with the new master images when they
     468are ready.
    414469
    415470\section{IPP Components}
     
    419474
    420475\subsection{Analysis Programs}
     476
    421477\subsubsection{psphot}
     478
     479The detection and characterization of astronomical objects within an
     480image is performed by the IPP component called \code{psphot}.  This
     481software may be used as a stand-alone program, or it may be called by
     482other IPP programs to operate on the images they generate.  A more
     483detailed guide is available at REF.  Here we summarize the basic
     484operation and command-line options.
     485
     486The basic call to the stand-alone version of \code{psphot} is:
     487%
     488\code{psphot -file input.fits output [options]}
     489%
     490where \code{[options]}
     491represents options to the IPP configuration system as well as some
     492specific to \code{psphot}.  In the case of a ``split'' camera format,
     493where separate chips or amps are stored in separate files, the
     494``input.fits'' may be a UNIX file glob which will expand to the set of
     495file; note that the glob must be protected with double quotes for
     496psphot. Alternatively, the input file list may be written to a text
     497file and the \code{-file input.fits} entry replace with \code{-list
     498  file.txt}.  The output entry is used as the root of a number of
     499possible output files selected by the user.
     500
     501Standard IPP-wide command-line options (document elsewhere):
     502\begin{itemize}
     503\item C{-site site.mdc}
     504\item C{-camera camera-name}
     505\item C{-recipe NAME VALUE}
     506\item C{-D KEY VALUE}
     507\item C{-Df KEY VALUE}
     508\item C{-Db KEY VALUE}
     509\item C{-Di KEY VALUE}
     510\end{itemize}
     511
     512Here are other possible command-line options specific to psphot:
     513\begin{itemize}
     514\item -version : report version info and exit
     515\item -mask mask.fits
     516\item -weight weight.fits
     517\item -modeltest X Y : run the object model on the object at the given coordinates
     518\begin{itemize}
     519\item -model
     520\item -fitmode
     521\item -fitset
     522\end{itemize}
     523\item -photcode : manually specify the photcode for this image
     524\item -region : limit the analysis to a specific image area
     525\item -chip : limit the analysis to the given list of chips
     526\item -psf : use the specified psf model (do not build a psf model)
     527\item -src : perform photometry on the positions given in the list
     528\end{itemize}
     529
     530There are many configuration options in the \code{psphot.config}
     531recipe file.  These are defined in the \code{psphot} manual.
     532
    422533\subsubsection{psastro}
     534
    423535\subsubsection{ppStats}
     536
    424537\subsubsection{ppImage}
     538
    425539\subsubsection{ppMerge}
     540
    426541\subsubsection{ppNorm}
    427542
    428543\subsection{Pipeline Infrastructure}
    429 \subsubsection{ippdb}
     544
     545\subsubsection{ippdb / dbconfig}
     546
     547The IPP uses a mysql database to track the data to be processed,
     548the current state of the processing steps, and summary information
     549from each of the analysis steps.  The database schema is defined by
     550the set of MDC files in \code{dbconfig}.  These files are used to
     551generate a set of C-level APIs to access the database tables. 
     552
    430553\subsubsection{ippTools}
     554
    431555\subsubsection{ippScripts}
     556
    432557\subsubsection{ippTasks and panTasks}
     558
    433559\subsubsection{ippMonitor}
    434560
    435 \subsubsection{Nebulous}
     561\subsection{Nebulous}
    436562
    437563\subsection{DVO}
     564
    438565\subsubsection{DVO Shell}
     566
    439567\subsubsection{Adding and Removing Data}
     568
    440569\subsubsubsection{addstar}
     570
    441571\subsubsubsection{delstar}
     572
    442573\subsubsubsection{getstar}
     574
    443575\subsubsection{Database Level Calibrations}
     576
    444577\subsubsubsection{relphot}
     578
    445579\subsubsubsection{uniphot}
     580
    446581\subsubsubsection{relastro}
     582
    447583\subsubsection{Other Tools}
     584
    448585\subsubsubsection{sky cell tools}
    449586
    450587\subsection{Software Architecture}
    451 \subsection{psLib}
    452 \subsection{psModules}
    453 \subsection{Perl Modules}
     588
     589\subsubsection{psLib}
     590
     591\subsubsection{psModules}
     592
     593\subsubsection{Perl Modules}
    454594
    455595\section{Configuration}
    456596
    457 Correct use of the IPP depends on several configuration files.  We
    458 distinguish below between configuration files required for the image
    459 processing and those for running the process scheduler, PanTasks.
    460 Note, however, that the Perl scripts called by PanTasks to run the
    461 processing do use the site and camera configuration files principally
    462 used for the image processing.
    463 
    464 \subsection{Image Processing}
     597Correct use of the IPP depends on a collection of configuration files.
     598These files define information about the processing environment, such
     599as the location of reference data or the name of computers available
     600for analysis or storage.  They also define the operating parameters
     601for the different programs, and choices about which analysis steps to
     602perform.
    465603
    466604Configuration information for the image processing is provided on four
    467 levels: the site, camera, format and recipe configurations.  Each uses
    468 the ``MetaData Configuration'' (MDC) file format, which is briefly
    469 described below; for a more detailed description, see the psLib SDRS
    470 (PSDC-430-007).
     605levels: the site-specific information, camera-specific details,
     606information related to different formats of data from the same camera,
     607and recipe configurations for the different analysis programs or
     608steps.  The configuration information is stored in files using the
     609``psMetadataConfig'' (MDC) file format, which is briefly described
     610below (\S\ref{sec:MDC}); for a more detailed description, see the
     611psLib SDRS (PSDC-430-007).
    471612
    472613The configuration levels for the image processing components of the
    473614IPP are:
    474615\begin{itemize}
    475 \item Options for the particular site installation of the
    476   pipeline: the {\it site};
    477 \item Options specifying the instrument setup: the {\it camera};
     616\item Options for the particular installation of the
     617  IPP: the {\it site};
     618\item Options specifying the details about the instrument: the {\it
     619camera};
    478620\item Options specifying the format of the FITS file: the {\it
    479621  format}; and
     
    493635(PSDC-430-???) has all the detailed information.
    494636
     637\subsubsection{Setting up configuration files}
     638
     639When the IPP software is installed, it generates a copy of the
     640top-level {\it site} configuration file:
     641\code{PREFIX/share/ippconfig/ipprc.config}. Programs look for this
     642information in the user's home directory at \code{~/.ipprc}.  A new
     643user may want to link \code{~/.ipprc} to the installed copy
     644\code{PREFIX/share/ippconfig/ipprc.config}, in which case new
     645installations will be immediately available.  Alternatively, the user
     646may want to copy the file in order to make their own modifications, if
     647for example the user needs to modify the recipes for a specific
     648camera.
     649
     650After the {\it site} configuration file is read by IPP programs, they
     651then attempt to read the {\it camera} configuration files defined in
     652the {\it site} file by the list of cameras.  These entries refer to
     653files for each camera.  The IPP configuration system searches for these
     654files (and others referred there in) in the PATH defined at the top of
     655the {\it site} file.  This value mimics the UNIX PATH variable, and
     656consists of a colon-separated list of locations.  The first entry
     657found from this list is used by the configuration system, allowing a
     658user to override, for example, the globally installed camera
     659configuration for some camera. 
     660
    495661\subsubsection{Overview of MDC format}
     662\label{sec:MDC}
    496663
    497664psLib defines a \code{psMetadata} structure which can carry labeled
     
    577744current level.
    578745
    579 
    580 \subsubsection{Setting up configuration files}
    581 
    582 You will generally want to link \code{~/.ipprc} to the site
    583 configuration file (\code{ipprc.config} which gets installed in
    584 \code{PREFIX/share/ippconfig/} where \code{PREFIX} is your
    585 installation prefix).  Then link \code{~/.ipp} to the \code{ippconfig}
    586 directory to save hacking the \code{PATH} in the site configuration.
    587 
    588 \subsection{PanTasks}
    589 
    590 \subsubsection{Paths}
    591 
    592 Throughout PanTasks, a file may be referred to as:
     746\subsection{Filenames : UNIX Paths, Abstract Paths, Nebulous}
     747
     748The IPP programs recognize three types of file names: a standard UNIX
     749path, an abstract path with a top-level location defined by the IPP
     750configuration system, and a Nebulous path, in which the file location
     751is completely abstracted by the Nebulous file management system:
    593752\begin{itemize}
    594 \item \code{/path/to/file.ext} --- not a URI, but it should work.
    595 \item \code{file:///path/to/file.ext} --- the URI version of the above.
    596 \item \code{path://PATH/file.ext} --- Uses the \code{DATAPATH} in the site configuration to set the path.
     753\item \code{file:///path/to/file.ext} : a UNIX path, always relative
     754  to the root of the file system.  It is valid to drop the
     755  \code{file:/} component of the name.  The IPP accepts an arbitrary
     756  number of slashes after \code{file:}.
     757\item \code{path://PATH/file.ext} : An abstract path. The value of
     758  PATH is iterpolated from the corresponding entry in the
     759  \code{DATAPATH} table given in the site configuration file.
     760\item \code{neb://full/nebulous/name} : A nebulous filename.  The IPP
     761  programs query Nebulous for the true path of (one copy of) the file.
    597762\end{itemize}
     763If you wish to expand a file name in any of these forms to a standard
     764UNIX path, use the program \code{ipp_datapath.pl}. 
    598765
    599766\section{Installation}
     
    653820When building software
    654821
    655 \subsubsection{jhbuild}
     822\subsection{jhbuild}
    656823
    657824JH uses \code{jhbuild} even though the 'jh' in \code{jhbuild} doesn't
     
    9351102%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    9361103
    937 \subsubsection{Aliases}
     1104\subsection{Aliases}
    9381105
    9391106PAP puts the following in his \code{~/.tcshrc}:
     
    9661133\end{itemize}
    9671134
    968 \subsection{Perl}
     1135\subsection{Manual Perl Module Installation}
    9691136
    9701137Here we describe setting up the Perl dependencies followed by the
Note: See TracChangeset for help on using the changeset viewer.