Changeset 13881
- Timestamp:
- Jun 19, 2007, 11:38:53 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/doc/manual/manual.tex (modified) (9 diffs)
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} 3 3 4 4 % basic document variables … … 24 24 % version Date Description 25 25 DR & 2007-01-31 & First draft \\ \hline 26 \RevisionsEnd 26 \hline 27 \end{tabular} 28 \end{center} 27 29 28 30 \inserttbd … … 409 411 \note{specifying the dvo output database} 410 412 411 \subsubsection{Pipeline Reduction : CFHT Queue Runs} 412 413 \subsubsection{Pipeline Reduction : PS1 Survey Operations} 413 \subsubsection{Pipeline Reduction : PI-Oriented Observatory} 414 415 An PI-oriented observatory has the opportunity to operate the analysis 416 system on a somewhat larger scale than the individual user. At a 417 PI-oriented observatory, there will normally be a rotating suite of 418 instruments, each of which is mounted on the telescope for a 419 substantial number of nights. Over the course of months and years, 420 the observatory will collect enough data from the instruments to 421 perform a much more detailed level of analysis of the instrument than 422 is possible in a single observing run by a single PI. In such a 423 situation, the observatory may use the IPP to generate and track the 424 high-quality master detrend images, to apply the detrend images to the 425 data as it is being collected, and to monitor the instrumental zero 426 points and other calibration information. The basic concepts of 427 running the IPP at a PI observatory are identical to that of a single 428 user. There are, however, a few modifications which may be 429 interesting. 430 431 First, it is natural to automatically inject and register the data as 432 it is obtained at the telescope. The telescope readout software could 433 be modified to call \code{ipp_serial_inject.pl} after each image is 434 obtained. Alternatively, this step could take place downstream 435 wherever the data are archived. In an observatory environment, more 436 so than in a single-user situation, it may be perfereable to use the 437 Nebulous infrastructure to manage the location and copies of the image 438 data. \tdb{define an inject mechanism that uses Nebulous}. 439 440 Second, it is interesting to consider on what timescale to test and 441 re-build the master detrend images. In the single user case, the 442 possible input detrend images are fairly limited. As illustrated 443 above, the single user may use the IPP to define master detrend images 444 and test the consistency of the inputs against these masters. In an 445 observatory environment, it may be more appropriate to build the 446 masters only on regular intervals when there is a suspicion the 447 instrument may have changed. The periods in which the instrument is 448 mounted define an obvious possible starting point for this period. 449 Alternatively, the detrend creation steps in the IPP can be defined to 450 run in verify mode on a nightly basis to test the current state of the 451 instrument. For the PI-oriented observatory, the number of variables 452 may make it difficult to rely on these results in an automatic 453 fashion; user examination of the results with \code{ippMonitor} may be 454 needed to decide if a new master should be built. 455 456 \subsubsection{Pipeline Reduction : Survey Observatory} 457 458 A telescope used as a survey instrument has a somewhat different, more 459 limited range of circumstances, than a PI-oriented observatory. There 460 is generally a pre-defined schedule, perhaps with only a single 461 instrument. The instrument configuration is more controlled, and the 462 types of observations are more consistently defined. In this case, an 463 automatic validation process can be more reliably used. The IPP can 464 be set up to run the detrend validation stage at the beginning of 465 every night, to automatically generate a new master if any of the 466 input detrend images are out of spec, and to start automatic 467 processing of the night's data with the new master images when they 468 are ready. 414 469 415 470 \section{IPP Components} … … 419 474 420 475 \subsection{Analysis Programs} 476 421 477 \subsubsection{psphot} 478 479 The detection and characterization of astronomical objects within an 480 image is performed by the IPP component called \code{psphot}. This 481 software may be used as a stand-alone program, or it may be called by 482 other IPP programs to operate on the images they generate. A more 483 detailed guide is available at REF. Here we summarize the basic 484 operation and command-line options. 485 486 The basic call to the stand-alone version of \code{psphot} is: 487 % 488 \code{psphot -file input.fits output [options]} 489 % 490 where \code{[options]} 491 represents options to the IPP configuration system as well as some 492 specific to \code{psphot}. In the case of a ``split'' camera format, 493 where 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 495 file; note that the glob must be protected with double quotes for 496 psphot. Alternatively, the input file list may be written to a text 497 file 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 499 possible output files selected by the user. 500 501 Standard 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 512 Here 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 530 There are many configuration options in the \code{psphot.config} 531 recipe file. These are defined in the \code{psphot} manual. 532 422 533 \subsubsection{psastro} 534 423 535 \subsubsection{ppStats} 536 424 537 \subsubsection{ppImage} 538 425 539 \subsubsection{ppMerge} 540 426 541 \subsubsection{ppNorm} 427 542 428 543 \subsection{Pipeline Infrastructure} 429 \subsubsection{ippdb} 544 545 \subsubsection{ippdb / dbconfig} 546 547 The IPP uses a mysql database to track the data to be processed, 548 the current state of the processing steps, and summary information 549 from each of the analysis steps. The database schema is defined by 550 the set of MDC files in \code{dbconfig}. These files are used to 551 generate a set of C-level APIs to access the database tables. 552 430 553 \subsubsection{ippTools} 554 431 555 \subsubsection{ippScripts} 556 432 557 \subsubsection{ippTasks and panTasks} 558 433 559 \subsubsection{ippMonitor} 434 560 435 \subs ubsection{Nebulous}561 \subsection{Nebulous} 436 562 437 563 \subsection{DVO} 564 438 565 \subsubsection{DVO Shell} 566 439 567 \subsubsection{Adding and Removing Data} 568 440 569 \subsubsubsection{addstar} 570 441 571 \subsubsubsection{delstar} 572 442 573 \subsubsubsection{getstar} 574 443 575 \subsubsection{Database Level Calibrations} 576 444 577 \subsubsubsection{relphot} 578 445 579 \subsubsubsection{uniphot} 580 446 581 \subsubsubsection{relastro} 582 447 583 \subsubsection{Other Tools} 584 448 585 \subsubsubsection{sky cell tools} 449 586 450 587 \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} 454 594 455 595 \section{Configuration} 456 596 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} 597 Correct use of the IPP depends on a collection of configuration files. 598 These files define information about the processing environment, such 599 as the location of reference data or the name of computers available 600 for analysis or storage. They also define the operating parameters 601 for the different programs, and choices about which analysis steps to 602 perform. 465 603 466 604 Configuration 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). 605 levels: the site-specific information, camera-specific details, 606 information related to different formats of data from the same camera, 607 and recipe configurations for the different analysis programs or 608 steps. The configuration information is stored in files using the 609 ``psMetadataConfig'' (MDC) file format, which is briefly described 610 below (\S\ref{sec:MDC}); for a more detailed description, see the 611 psLib SDRS (PSDC-430-007). 471 612 472 613 The configuration levels for the image processing components of the 473 614 IPP are: 474 615 \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 619 camera}; 478 620 \item Options specifying the format of the FITS file: the {\it 479 621 format}; and … … 493 635 (PSDC-430-???) has all the detailed information. 494 636 637 \subsubsection{Setting up configuration files} 638 639 When the IPP software is installed, it generates a copy of the 640 top-level {\it site} configuration file: 641 \code{PREFIX/share/ippconfig/ipprc.config}. Programs look for this 642 information in the user's home directory at \code{~/.ipprc}. A new 643 user may want to link \code{~/.ipprc} to the installed copy 644 \code{PREFIX/share/ippconfig/ipprc.config}, in which case new 645 installations will be immediately available. Alternatively, the user 646 may want to copy the file in order to make their own modifications, if 647 for example the user needs to modify the recipes for a specific 648 camera. 649 650 After the {\it site} configuration file is read by IPP programs, they 651 then attempt to read the {\it camera} configuration files defined in 652 the {\it site} file by the list of cameras. These entries refer to 653 files for each camera. The IPP configuration system searches for these 654 files (and others referred there in) in the PATH defined at the top of 655 the {\it site} file. This value mimics the UNIX PATH variable, and 656 consists of a colon-separated list of locations. The first entry 657 found from this list is used by the configuration system, allowing a 658 user to override, for example, the globally installed camera 659 configuration for some camera. 660 495 661 \subsubsection{Overview of MDC format} 662 \label{sec:MDC} 496 663 497 664 psLib defines a \code{psMetadata} structure which can carry labeled … … 577 744 current level. 578 745 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 748 The IPP programs recognize three types of file names: a standard UNIX 749 path, an abstract path with a top-level location defined by the IPP 750 configuration system, and a Nebulous path, in which the file location 751 is completely abstracted by the Nebulous file management system: 593 752 \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. 597 762 \end{itemize} 763 If you wish to expand a file name in any of these forms to a standard 764 UNIX path, use the program \code{ipp_datapath.pl}. 598 765 599 766 \section{Installation} … … 653 820 When building software 654 821 655 \subs ubsection{jhbuild}822 \subsection{jhbuild} 656 823 657 824 JH uses \code{jhbuild} even though the 'jh' in \code{jhbuild} doesn't … … 935 1102 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 936 1103 937 \subs ubsection{Aliases}1104 \subsection{Aliases} 938 1105 939 1106 PAP puts the following in his \code{~/.tcshrc}: … … 966 1133 \end{itemize} 967 1134 968 \subsection{ Perl}1135 \subsection{Manual Perl Module Installation} 969 1136 970 1137 Here we describe setting up the Perl dependencies followed by the
Note:
See TracChangeset
for help on using the changeset viewer.
