IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33023


Ignore:
Timestamp:
Dec 24, 2011, 3:28:40 PM (15 years ago)
Author:
heather
Message:

smore changes: handles -uncensored properly (well for queuing, it queues
things regardless of magicked state, as we copy a backup of the uncensored
files), and some debugging to get minidvodb's relphot'd and resorted properly
(some typos)

Location:
branches/haf_add201112
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/haf_add201112/ippScripts/scripts/addstar_run.pl

    r33022 r33023  
    115115# it was PSASTRO.OUTPUT
    116116
    117 my $fpaObjects;
     117my $fpaObjects = $ipprc->filename("PSASTRO.OUTPUT", $stageroot) or &my_die("Missing entry from camera config", $add_id, $PS_EXIT_CONFIG_ERROR);
     118
    118119if ($stage =~ /cam/) {
    119120    # if it is cam stage we need to be careful when grabbing the filename.
     
    150151        #is this cam_id magicked or not?
    151152        if ($magicked) {
    152             $fpaObjects = $ipprc->destreak_filename("PSASTRO.OUTPUT",     $stageroot) or &my_die("Missing entry from camera config", $add_id, $PS_EXIT_CONFIG_ERROR);
     153            $fpaObjects = $ipprc->destreaked_filename("$fpaObjects") or &my_die("Missing entry from camera config", $add_id, $PS_EXIT_CONFIG_ERROR);
    153154            print "cam_id is magicked, using $fpaObjects for the cam smf\n";
    154155        } else {
    155            
    156             $fpaObjects = $ipprc->filename("PSASTRO.OUTPUT",     $stageroot) or &my_die("Missing entry from camera config", $add_id, $PS_EXIT_CONFIG_ERROR);
    157156            print "cam_id is NOT magicked, using $fpaObjects for the cam smf\n";
    158157        }
    159158    }
    160 } else {
    161     # for non cam stages, grabe the file name like this:
    162     $fpaObjects = $ipprc->filename("PSASTRO.OUTPUT",     $stageroot) or &my_die("Missing entry from camera config", $add_id, $PS_EXIT_CONFIG_ERROR);
    163159}
    164160if (($stage =~/staticsky/) || ($stage =~/stack/)) {
  • branches/haf_add201112/ippScripts/scripts/minidvodb_premerge.pl

    r32992 r33023  
    7979
    8080unless ($no_op) {
    81     {
     81   
    8282        #this is chopped into several parts: addstar, relphot
    8383        #addstar
    84         {
     84        {
    8585            my $command  = "$addstar -resort";
    8686            $command .= " -D CAMERA $camera";
     
    110110            print "$command\n";
    111111            my $mjd_relphot_start = DateTime->now->mjd;   # MJD of starting script
    112 
     112           
    113113            my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    114114                run(command => $command, verbose => $verbose);
     
    122122
    123123        {
    124 
     124           
    125125            $dtime_script = 86400.0*(DateTime->now->mjd - $mjd_start);
    126126            my $command = "addtool -minidvodb_id $minidvodb_id";
     
    139139            }
    140140        }
    141     } else {
    142         &my_die("dvodb: minidvodb_id = $minidvodb_id not found", $minidvodb_id, $PS_EXIT_UNKNOWN_ERROR);
    143     }
     141#} else {
     142#    &my_die("dvodb: minidvodb_id = $minidvodb_id not found", $minidvodb_id, $PS_EXIT_UNKNOWN_ERROR);
     143#}
    144144} else {
    145145    print "skipping processing for minidvodb_id = $minidvodb_id\n";
  • branches/haf_add201112/ippTools/src/addtool.c

    r33003 r33023  
    292292    } else {
    293293      //This picks only the unmagicked/uncensored ones
    294       if (strcmp(stage,"cam") == 0) {
    295         psStringAppend(&query, " AND (camRun.magicked = 0)");
    296       }
     294      //if (strcmp(stage,"cam") == 0) {
     295        //we can now properly handle the magicked case in ippScripts, so we queue camRuns in any magic state now if -uncensored.
     296        //psStringAppend(&query, " AND (camRun.magicked = 0)");
     297        //}
    297298      if (strcmp(stage,"stack") == 0) {
    298299        psStringAppend(&query, " AND (stackRun.magicked = 0)");
Note: See TracChangeset for help on using the changeset viewer.