NAME

summary_parse.pl - Update the Sybase starcheck summary table of the aca database


SYNOPSIS

summary_parse.pl [ mission planning directory ]


OPTIONS

-help
print this usage and exit

-dryrun
print retrieved information to screen, no changes to database

-missing
sets the list of to-be-parsed folders to include any folder that exists in the mp_load_info table but does not exist in the starcheck_summary table

-log logfilename
write processing information and warnings to file logfilename


DESCRIPTION

This script populates a table that stores all of the obsid-summary information from starcheck.txt. When called without any options, the script queries the mp_load_info table to get a list of all load directories that have newer ``processed dates'' than the dates already within the starcheck_summary table. The obsid summary data from the starcheck files within those directories are then added to the starcheck_summary table. If the script is run on a directory that already exists within the table (either reprocessed in automatic processing and hence updated in the mp_load_info table, or specified at the command line), the old information is deleted and a new entry is created.


DATABASE COLUMNS

starcheck_summary

 name                                               type       length     
 -------------------------------------------------- ---------- -----------
 mp_path                                            varchar             30
 obsid                                              int                  4
 tstart                                             varchar             25
 last_ap_date                                       datetimn             8
 line_num                                           intn                 4


EXAMPLES

This script should be run in an overnight cron job with no input parameters.


AUTHOR

Jean Connelly, <jeanconn@localdomain>


COPYRIGHT AND LICENSE

Copyright 2006 by Smithsonian Astrophysical Obsevatory

This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself.