IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37431


Ignore:
Timestamp:
Sep 24, 2014, 10:57:13 AM (12 years ago)
Author:
eugene
Message:

adding -camera to ppMops options

File:
1 edited

Legend:

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

    r37411 r37431  
    252252                     warp_id => $comp->{warp1},
    253253                     diff_id => $comp->{diff_id},
     254                     camera => $comp->{camera},
    254255                     output_format => $comp->{output_format},
    255256                     direction => 1,
     
    291292                         warp_id => $comp->{warp2},
    292293                         diff_id => $comp->{diff_id},
     294                         camera => $comp->{camera},
     295                         # missing output_format?
    293296                         direction => 0,
    294297                         comment => $reg_comp->{comment},
     
    359362    my $name = shift;           # Name of component
    360363
    361     $data->{zp} = $comp->{zp} unless defined $data->{zp};
    362     $data->{zp_err} = $comp->{zp_err} unless defined $data->{zp_err};
    363     $data->{astrom} = $comp->{astrom} unless defined $data->{astrom};
    364     $data->{exp_name} = $comp->{exp_name} unless defined $data->{exp_name};
    365     $data->{exp_id} = $comp->{exp_id} unless defined $data->{exp_id};
    366     $data->{chip_id} = $comp->{chip_id} unless defined $data->{chip_id};
    367     $data->{cam_id} = $comp->{cam_id} unless defined $data->{cam_id};
    368     $data->{fake_id} = $comp->{fake_id} unless defined $data->{fake_id};
    369     $data->{warp_id} = $comp->{warp_id} unless defined $data->{warp_id};
    370     $data->{diff_id} = $comp->{diff_id} unless defined $data->{diff_id};
     364    $data->{zp}        = $comp->{zp}        unless defined $data->{zp};
     365    $data->{zp_err}    = $comp->{zp_err}    unless defined $data->{zp_err};
     366    $data->{astrom}    = $comp->{astrom}    unless defined $data->{astrom};
     367    $data->{exp_name}  = $comp->{exp_name}  unless defined $data->{exp_name};
     368    $data->{exp_id}    = $comp->{exp_id}    unless defined $data->{exp_id};
     369    $data->{chip_id}   = $comp->{chip_id}   unless defined $data->{chip_id};
     370    $data->{cam_id}    = $comp->{cam_id}    unless defined $data->{cam_id};
     371    $data->{fake_id}   = $comp->{fake_id}   unless defined $data->{fake_id};
     372    $data->{warp_id}   = $comp->{warp_id}   unless defined $data->{warp_id};
     373    $data->{diff_id}   = $comp->{diff_id}   unless defined $data->{diff_id};
     374    $data->{camera}    = $comp->{camera}    unless defined $data->{camera};
     375    # missing output_format?
    371376    $data->{direction} = $comp->{direction} unless defined $data->{direction};
    372     $data->{comment} = $comp->{comment} unless defined $data->{comment};
    373     $data->{obsmode} = $comp->{obsmode} unless defined $data->{obsmode};
    374     $data->{difftype} = $comp->{difftype} unless defined $data->{difftype};
    375     $data->{sky} = $comp->{sky} unless defined $data->{sky};
    376     $data->{shutoutc} = $comp->{shutoutc} unless defined $data->{shutoutc};
     377    $data->{comment}   = $comp->{comment}  unless defined $data->{comment};
     378    $data->{obsmode}   = $comp->{obsmode}  unless defined $data->{obsmode};
     379    $data->{difftype}  = $comp->{difftype} unless defined $data->{difftype};
     380    $data->{sky}       = $comp->{sky}      unless defined $data->{sky};
     381    $data->{shutoutc}  = $comp->{shutoutc} unless defined $data->{shutoutc};
    377382
    378383    &my_die("zp value for $name doesn't match", $pub_id, $PS_EXIT_SYS_ERROR) if defined $data->{zp} and $comp->{zp} != $data->{zp};
     
    386391    &my_die("warp_id value for $name doesn't match", $pub_id, $PS_EXIT_SYS_ERROR) if defined $data->{warp_id} and $comp->{warp_id} != $data->{warp_id};
    387392    &my_die("diff_id value for $name doesn't match", $pub_id, $PS_EXIT_SYS_ERROR) if defined $data->{diff_id} and $comp->{diff_id} != $data->{diff_id};
     393    &my_die("camera value for $name doesn't match", $pub_id, $PS_EXIT_SYS_ERROR) if defined $data->{camera} and $comp->{camera} ne $data->{camera};
    388394    &my_die("direction value for $name doesn't match", $pub_id, $PS_EXIT_SYS_ERROR) if defined $data->{direction} and $comp->{direction} != $data->{direction};
    389395    &my_die("comment value for $name doesn't match", $pub_id, $PS_EXIT_SYS_ERROR) if defined $data->{comment} and $comp->{comment} ne $data->{comment};
     
    414420    $command .= " -warp_id " . $data->{warp_id} if defined $data->{warp_id};
    415421    $command .= " -diff_id " . $data->{diff_id} if defined $data->{diff_id};
     422    $command .= " -camera " . $data->{camera} if defined $data->{camera};
    416423    $command .= " -inverse" if defined $data->{direction} and $data->{direction} == 0;
    417424    $command .= " -zp " . $data->{zp} if defined $data->{zp};
Note: See TracChangeset for help on using the changeset viewer.