IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26986


Ignore:
Timestamp:
Feb 18, 2010, 11:50:07 AM (16 years ago)
Author:
Paul Price
Message:

Trying to get exposure comment line into the DataStore.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/publish_file.pl

    r25927 r26986  
    8282my ($dsFile, $dsFileName) = tempfile("/tmp/publish.$pub_id.ds.XXXX", UNLINK => !$save_temps );
    8383
     84my $comment;                    # Comment for exposure
    8485if ($stage eq 'camera') {
    8586    my $command =  "camtool -processedexp -cam_id $stage_id";
     
    109110    my $astrom = sqrt($comp->{sigma_ra}**2 + $comp->{sigma_dec}**2);
    110111    my $name = "cam_$cam_id";
     112    $comment = $comp->{comment};
    111113
    112114    if ($product eq "MONET") {
     
    157159        my $path_base = $comp->{path_base}; # Base name for file
    158160        next if defined $comp->{quality} and $comp->{quality} > 0;
     161        print "Warning: mis-matched comments\n" if defined $comment and $comment ne $comp->{comment};
     162        $comment = $comp->{comment} unless defined $comment;
    159163
    160164        (carp "Bad zpt_obs or exp_time for component" and next) if not defined $comp->{zpt_obs} or not defined $comp->{exp_time};
     
    234238unless ($no_update) {
    235239    my $command = "$dsreg --add $stage.$stage_id --copy --abspath --product $product --type $product --list $dsFileName";
     240    $command .= " --ps0 \"$comment\"" if defined $comment;
    236241
    237242    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
  • trunk/ippTools/share/camtool_find_processedexp.sql

    r25926 r26986  
    1010    rawExp.camera,
    1111    rawExp.telescope,
    12     rawExp.filelevel
     12    rawExp.filelevel,
     13    rawExp.comment
    1314FROM camRun
    1415JOIN camProcessedExp
  • trunk/ippTools/share/difftool_skyfile.sql

    r25791 r26986  
    1818    camProcessedInput.zpt_lq,
    1919    camProcessedInput.zpt_uq,
     20    rawInput.comment,
    2021    rawInput.exp_time,
    2122    rawInput.camera,
Note: See TracChangeset for help on using the changeset viewer.