IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 1, 2006, 12:20:48 PM (20 years ago)
Author:
jhoblitt
Message:

add partial detail about p0search, p2search, & the administrative tools

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/doc/install.pod

    r8029 r8035  
    3333    make
    3434    make install
     35
     36=head2 jhbuild Build Procedure
     37
     38If you are using one of the C<ippdev> modulesets jhbuild can build and install C<pXtools> for you.  E.g.
     39
     40    jhbuild build pxtools
    3541   
    3642=head2 Database Setup
     
    111117    23 rows in set (0.00 sec)
    112118
     119=head1 USE
     120
     121The workflow is as follows:
     122
     123XXX
     124
     125=head2 Phase 0 tools
     126
     127The primary C<pXtools> utility for handling Phase 0 is C<p0search>.  This tool
     128has two modes C<-pending> and C<-update>. The pending mode lists all
     129C<newImfile>s that are part of an exposure that I<has not> yet been classified
     130as either science or detrend data.
     131
     132For example:
     133
     134    p0search -pending
     135
     136Would output something like:
     137
     138    newImfile MULTI #
     139
     140    newImfile  METADATA
     141       exp_id STR  10
     142       class STR  OTA
     143       class_id STR  0
     144       uri STR  file://0
     145    END
     146
     147    newImfile  METADATA
     148       exp_id STR  10
     149       class STR  OTA
     150       class_id STR  1
     151       uri STR  file://1
     152    END
     153
     154    newImfile  METADATA
     155       exp_id STR  10
     156       class STR  OTA
     157       class_id STR  2
     158       uri STR  file://2
     159    END
     160
     161    newImfile  METADATA
     162       exp_id STR  10
     163       class STR  OTA
     164       class_id STR  3
     165       uri STR  file://3
     166    END
     167
     168To declare C<exp_id 10> as science data, you would invoke C<p0search> like this:
     169   
     170    p0search -update -exp_id 10
     171
     172Note that by default C<-update> flags the exposure as science data.  To declare it to be detrend data the command would be:
     173
     174    p0search -update -exp_id 10 -detrend
     175
     176Also keep in mind that this is a one time declaration.  Once it has been
     177declared as either science or detrend data this decision can not be undone
     178(without manually editing the database)
     179
     180=head2 Phase 1 tools
     181
     182These tools are not yet in use.
     183
     184=head2 Phase 2 tools
     185
     186C<p2search> handles all of state for Phase 2.  It has four basic modes:
     187
     188=over 4
     189
     190=item * C<-quick>
     191
     192=item * C<-define>
     193
     194=item * C<-pending>
     195
     196=item * C<-done>
     197
     198=head2 Administrative tools
     199
     200=over 4
     201
     202=item * C<pxadmin>
     203
     204=item * C<pxinject>
     205
    113206=cut
     207
     208=head2 Bypassing 'Summit Copy'
     209
     210The C<pXtools> suite assumes that exposures and image data are initially
     211registered with the C<pz*> set of I<Summit Copy step> tools.  Sometimes this is
     212inconvenient as you want to work with local data and bypass this set.  This is
     213what the C<pxinject> utility is for.  C<pxinject> directly inserts data into
     214the database, side stepping any ordering rules or sanity checking.
     215
     216The end result of the C<pz*> utilities is that new exposures are registered in the C<newExp> table and raw image data is in the C<newImfile> table.  You can insert this data yourself, preparing the system to run I<phase 0>.
     217
     218Here is an example of inserting an exposure that has 4 component image files.
     219
     220    #!//bin/sh
     221
     222    inject="./pxinject"
     223
     224    $inject -newExp -exp_id 10 -inst gpc -telescope ps1 -exp_type object -imfiles 4
     225
     226    `$inject -newImfile -exp_id 10 -class OTA -class_id 0 -uri file://0`
     227    `$inject -newImfile -exp_id 10 -class OTA -class_id 1 -uri file://1`
     228    `$inject -newImfile -exp_id 10 -class OTA -class_id 2 -uri file://2`
     229    `$inject -newImfile -exp_id 10 -class OTA -class_id 3 -uri file://3`
     230
     231=cut
Note: See TracChangeset for help on using the changeset viewer.