IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11740


Ignore:
Timestamp:
Feb 9, 2007, 3:40:02 PM (19 years ago)
Author:
Paul Price
Message:

Updating phase 4 work flow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/ipptools/p4tool.txt

    r10641 r11740  
    1 --------------------------------------------------------------------------------
    2 
    3 The "p4tool -definerun" command creates a new p4Run for a single cell. A
    4 unique identifier for the run, or a p4Run ID, is returned.
    5 
    6     p4tool -definerun -survey_mode <str> -filter <str> -skycell_id <str> -tess_id <str>  -ra <f64> -decl <f64> -input_ss <str> -output_ss <str> -imfiles <s32>
    7 
    8     p4tool -addinputimfile -p4_id <str> -exp_tag <str> -p3_version <s32> -class_id <str>
    9 
    10 --------------------------------------------------------------------------------
    11 
    12         p4tool -towarpedimfile [-p4_id <str>]
    13 
    14 Blocks until the appropriate # of inputs have been registered in a given
    15 p4run.  Returns a list of imfiles along with their skycell_id & tessalation id
    16 that have not yet been warped.
    17 
    18         p4tool -addwarpedimfile -p4_id <str> -exp_tag <str> -p3_version <s32>
    19 -class_id <str> -uri <str> [-bg ...]
    20 
    21 Registers a warped imfile with the database.
    22 
    23         p4tool -warpedimfile [-p4_id <str>]
    24 
    25 Lists warped imfiles.
    26 
    27 --------------------------------------------------------------------------------
    28 
    29         p4tool -tostackedimfile -p4_id <str>
    30 
    31 List a complete set of class_ids for a given p4run that are ready to be
    32 stacked.
    33 
    34         p4tool -addstackedimfile -p4_id <str> -exp_tag <str> -p3_version <s32>
    35 -class_id <str> -uri <str> [-bg ...]
    36 
    37 Registered a stacked imfiles with the database
    38 
    39         p4tool -stackedimfile [-p4_id <str>]
    40 
    41 Lists stacked imfiles.
    42 
    43 --------------------------------------------------------------------------------
    44 
    45         p4tool -todiffimfile [-p4_id <str>]
    46 
    47 Lists stacked imfiles along with the uri for an imfile to use for
    48 differencing.
    49 
    50         p4tool -adddiffimfile -p4_id <str> -exp_tag <str> -p3_version <s32>
    51 -class_id <str> -uri <str> [-bg ...]
    52 
    53 Registered a difference imfiles with the database.
    54 
    55         p4tool -diffimfile [-p4_id <str>]
    56 
    57 Lists difference imfiles.
    58 
    59 --------------------------------------------------------------------------------
     1Give me a list of all pending exposures which could have phase 4 run:
     2        p4tool -query -survey_mode <str> -filter <str> -ra <f64> -decl <f64> (plus other search options)
     3
     4The "p4tool -definerun" command creates a new p4Run for an exposure. A
     5unique identifier for the run, or a p4Run ID, is returned:
     6
     7        p4tool -definerun -exp_tag <str> -p3_ver <s32>
     8
     9Give me all p4runs to have overlaps calculated:
     10        p4tool -tooverlap
     11
     12Calculate overlaps for each exposure:
     13        phase4_overlap.pl --p4_id <str>
     14{
     15        Get list of component imfiles for exposure:
     16                p4tool -imfile -p4_id <str>
     17
     18        (Calculates, in some as-yet unknown way the overlaps between imfiles
     19and skycells)
     20
     21        Set the relationship between imfiles and skycells:
     22                p4tool -overlap -p4_id <str> -info FILE
     23        where FILE contains:
     24                imfile.0        STR     skycell.123 skycell.456
     25                imfile.1        STR     skycell.789
     26        OR:
     27                imfile.0        MULTI
     28                imfile.0        STR     skycell.123
     29                imfile.0        STR     skycell.456
     30                imfile.1        STR     skycell.789
     31}
     32
     33Give me all skycells that need to have data warped to them:
     34        p4tool -towarped
     35
     36Do the warp for each skycell:
     37        phase4_warp.pl --p4_id <str> --skycell <str>
     38{
     39        Get list of imfiles for skycell:
     40                p4tool -imfile -p4_id <str> -skycell <str>
     41
     42        Do the warping:
     43                pswarp <something>
     44
     45        Register the skycell as done warping:
     46                p4tool -warped -p4_id <str> -skycell <str> -uri <str>
     47}
     48
     49================================================================================
     50
     51Give me a list of all skycells which could have subtractions performed
     52(more than two warps):
     53        p5tool -query (some search parameters, including RA, Dec, seeing)
     54
     55Register an exposure for subtraction processing.  We need to specify which warp
     56is the input and which is the template.
     57        p5tool -definerun -skycell <str> -input_p4_id <str> -template_p4_id <str>
     58
     59Give me all skycells that need to be subtracted:
     60        p5tool -pending
     61
     62Do the subtraction for each skycell:
     63        phase5_subtract.pl --p5_id <str> --in_uri <str> --template_uri <str>
     64{
     65        Do the subtraction:
     66                pois in_uri.fits template_uri sub.fits <other stuff>
     67
     68        Register the subtraction as done:
     69                p5tool -done -p5_id <str> -uri <str>
     70}
     71
     72================================================================================
     73
     74[Here I make some assumptions about how magic works]
     75
     76Get a list of exposures for which magic processing is possible
     77        magictool -query (some search options)
     78
     79There may be multiple subtractions generated out of each exposure.
     80Given an exposure, what subtractions do I have available?
     81
     82        magictool -options -exp_tag <str>
     83
     84Register an exposure for magic processing, specifying a subtraction set:
     85        magictool -definerun -exp_tag <str> -subs FILE
     86
     87        where FILE contains something like:
     88                skycell.123       STR       p5id.1
     89                skycell.456       STR       p5id.2
     90                skycell.789       STR       p5id.3
     91
     92Give me all skycells that need to have magic performed:
     93        magictool -pendingskycell
     94
     95Do magic for each skycell:
     96        magic_skycell.pl --magic_id <str> --skycell <str> --uri <str>
     97{
     98        Do streak finding on skycell
     99
     100        Register sky cell as done:
     101                magictool -doneskycell -magic_id <str> -skycell <str> -uri <str>
     102}
     103
     104Give me all imfiles that need to have magic performed:
     105        magictool -pendingimfile
     106
     107Do magic for each imfile:
     108        magic_imfile.pl --magic_id <str> --class_id <str>
     109{
     110        Get list of all magic1 output relevant to this imfile
     111                magictool -skycell -magic_id <str> -class_id <str>
     112
     113        Do streak finding for imfile
     114
     115        Register imfile as done:
     116                magictool -doneimfile -magic_id <str> -class_id <str> -uri <str>
     117}
     118
     119[Might be a mid-level process or processes, halfway between imfiles and
     120full exposures, but for now, assume there's not, or that it can all be
     121done quickly at the exposure level.]
     122
     123Give me all exposures that need to have magic performed:
     124        magictool -pendingexp
     125
     126Do magic for each exposure:
     127        magic_exp.pl --magic_id <str>
     128{
     129        Get list of all magic2 output relevant to this exposure
     130                magictool -imfile -magic_id <str>
     131
     132        Do streak finding on exposure
     133
     134        Register exposure as done:
     135                magictool -doneexp -magic_id <str> -uri <str>
     136}
     137
     138
     139[Need to generate masks, but we need to decide at what level: imfile, or
     140skycell?  If imfile, we need to do the warp over again.  If skycell, we
     141can never give out the flattened CCD images unless they've been warped.
     142How about doing both --- it's not too hard.]
     143
     144
     145Give me all imfiles that need a magic mask:
     146        magictool -pendingmaskimfile
     147
     148Generate mask for each imfile:
     149        magic_mask_imfile.pl --magic_id <str> --class_id <str> --uri <str>
     150{
     151        Make mask
     152
     153        Register mask:
     154                magictool -donemaskimfile -magic_id <str> -class_id <str> -uri <str>
     155}
     156
     157Give me all skycells that need a magic mask:
     158        magictool -pendingmaskskycell
     159
     160Generate mask for each skycell:
     161        magic_mask_skycell.pl --magic_id <str> --skycell <str> --uri <str>
     162{
     163        Make mask
     164
     165        Register mask:
     166                magictool -donemaskskycell -magic_id <str> -skycell <str> -uri <str>
     167}
     168
     169Give me a list of all exposures which are clean (so we can release):
     170        magictool -cleanexp (some search criteria)
     171
     172Give me a list of all imfiles which are clean (so we can release):
     173        magictool -cleanimfile (some search criteria)
     174
     175Give me a list of all skycells which are clean (so we can release):
     176        magictool -cleanskycell (some search criteria)
     177
     178================================================================================
     179
     180Give me a list of all skycells for which combination processing is possible:
     181        p6tool -query -min <s32> (some other search parameters, including ra, dec, time range)
     182
     183Register skycells for combination processing:
     184        p6tool -definerun -skycell <stR> -p4_id <str> -p4_id <str> -p4_id <str>
     185
     186Give me all pending operations
     187        p6tool -pending
     188
     189Run phase 6:
     190        phase6.pl -p6_id <str>
     191{
     192        Give me the list of all inputs for this run:
     193                p6tool -inputs -p6_id <str>
     194
     195        Combine:
     196                ppStac output.fits input1.fits input2.fits ...
     197
     198        Register the completion:
     199                p6tool -done -p6_id <str> -uri <str>
     200}
     201
     202Give me a list of all stacks (for release):
     203        p6tool -list <some search criteria>
     204
Note: See TracChangeset for help on using the changeset viewer.