IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 14, 2009, 12:39:56 PM (17 years ago)
Author:
Paul Price
Message:

For MOPS, write exposure name as FPA_ID, exposure identifier as EXP_ID.

File:
1 edited

Legend:

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

    r25072 r25074  
    8282my %zp;                         # Zero points
    8383my %exp_id;                     # Exposure identifiers
     84my %exp_name;                   # Exposure names
    8485{
    8586    my $command;                # Command to run
     
    118119            $zp{"$skycell_id.pos"} = $zp;
    119120            $zp{"$skycell_id.neg"} = $zp if defined $comp->{bothways} and $comp->{bothways};
    120             $exp_id{"$skycell_id.pos"} = $comp->{exp1};
    121             $exp_id{"$skycell_id.neg"} = $comp->{exp2} if defined $comp->{bothways} and $comp->{bothways};
     121            $exp_id{"$skycell_id.pos"} = $comp->{exp_id_1};
     122            $exp_id{"$skycell_id.neg"} = $comp->{exp_id_2} if defined $comp->{bothways} and $comp->{bothways};
     123            $exp_name{"$skycell_id.pos"} = $comp->{exp_name_1};
     124            $exp_name{"$skycell_id.neg"} = $comp->{exp_name_2} if defined $comp->{bothways} and $comp->{bothways};
    122125        } elsif ($stage eq 'camera') {
    123126            my $cam_id = $comp->{cam_id};
     
    125128            $zp{$cam_id} = $zp;
    126129            $exp_id{$cam_id} = $comp->{exp_id};
     130            $exp_name{$cam_id} = $comp->{exp_name};
    127131        }
    128132    }
     
    140144    my $zp = $zp{$comp};
    141145    my $exp_id = $exp_id{$comp};
     146    my $exp_name = $exp_name{$comp};
    142147    if ($product eq "IPP-MOPS") {
    143148        my $outuri = "$outroot.$comp.fits";
     
    145150            &my_die( "Unable to resolve output file $outuri", $pub_id, $PS_EXIT_SYS_ERROR);
    146151
    147         my $command = "$ppMops $file $zp $exp_id $out";
     152        my $command = "$ppMops $file $zp $exp_id $exp_name $out";
    148153        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    149154            run(command => $command, verbose => $verbose);
Note: See TracChangeset for help on using the changeset viewer.