IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35933


Ignore:
Timestamp:
Aug 13, 2013, 1:46:49 PM (13 years ago)
Author:
bills
Message:

Add keywords DVOCALIB and UBERCALEXP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20130712/pstamp/scripts/psgetcalibinfo

    • Property svn:mergeinfo set to (toggle deleted branches)
      /trunk/pstamp/scripts/psgetcalibinfomergedeligible
      /branches/czw_branch/20101203/pstamp/scripts/psgetcalibinfo29907-30631
      /branches/czw_branch/20120906/pstamp/scripts/psgetcalibinfo34410-34786
      /branches/eam_branches/ipp-20101103/pstamp/scripts/psgetcalibinfo29657-29920
      /branches/eam_branches/ipp-20101205/pstamp/scripts/psgetcalibinfo29959-30585
      /branches/eam_branches/ipp-20110213/pstamp/scripts/psgetcalibinfo30628-31149
      /branches/eam_branches/ipp-20110404/pstamp/scripts/psgetcalibinfo31166-31444
      /branches/eam_branches/ipp-20110505/pstamp/scripts/psgetcalibinfo31458-31658
      /branches/eam_branches/ipp-20110710/pstamp/scripts/psgetcalibinfo31852-32345
      /branches/eam_branches/ipp-20110906/pstamp/scripts/psgetcalibinfo32363-32631
      /branches/eam_branches/ipp-20111110/pstamp/scripts/psgetcalibinfo32645-32694
      /branches/eam_branches/ipp-20120405/pstamp/scripts/psgetcalibinfo33724-33957
      /branches/eam_branches/ipp-20120601/pstamp/scripts/psgetcalibinfo33977-34079
      /branches/eam_branches/ipp-20120627/pstamp/scripts/psgetcalibinfo34099-34256
      /branches/eam_branches/ipp-20120805/pstamp/scripts/psgetcalibinfo34292-34401
      /branches/eam_branches/ipp-20120905/pstamp/scripts/psgetcalibinfo34407-34747
      /branches/eam_branches/ipp-20121130/pstamp/scripts/psgetcalibinfo34755-34841
      /branches/eam_branches/ipp-20121219/pstamp/scripts/psgetcalibinfo34857-35096
      /branches/eam_branches/ipp-20130207/pstamp/scripts/psgetcalibinfo35125-35236
      /branches/eam_branches/ipp-20130307/pstamp/scripts/psgetcalibinfo35267-35414
      /branches/eam_branches/ipp-20130419/pstamp/scripts/psgetcalibinfo35420-35554
      /branches/eam_branches/ipp-20130509/pstamp/scripts/psgetcalibinfo35565-35753
      /branches/haf_add201112/pstamp/scripts/psgetcalibinfo32980-33029
      /tags/ipp-20111110/pstamp/scripts/psgetcalibinfo32648-33012
    r35909 r35933  
    7575    }
    7676}
     77
     78
     79my $OUT;
     80if ($output eq '-') {
     81    $OUT = *STDOUT;
     82} else {
     83    open $OUT, ">$output" or die "failed to open $output for writing\n";
     84}
     85
    7786if (!$relexp) {
    78     print "Failed to find calibration information for camRun: $cam_id\n";
     87    print STDERR "Failed to find calibration information for camRun: $cam_id\n";
     88    print $OUT "DVOCALIB     STR         F # exposure not calibrated with DVO\n";
    7989    exit 0;
    8090}
    8191
    82 open OUT, ">$output" or die "failed to open $output for writing\n";
     92my $ubercal_exp = ($relexp->{flags} & 0x200) ? "T # exposure has ubercal zero point" : "F # exposure does not have ubercal zero point";
    8393
    84 print OUT "ZPCALIB      F32         $relexp->{zpt_obs} # calibrated zero point\n";
    85 print OUT "ZPCALERR     F32         $relexp->{zpt_stdev} # calibrated zero point error - 0 for ubercal exposure\n";
    86 print OUT "MCAL         F32         $relexp->{mcal} # zero point offset due to clouds\n";
    87 print OUT "DVOFLAGS     U32         $relexp->{flags} # dvo flags - 512 is ubercal bit\n";
    88 print OUT "UCALDIST     S32         $relexp->{ubercal_dist} # distance to ubercal image\n";
    89 print OUT "DVODB        STR         $relexp->{dvodb} # dvo database used for calibration \n";
    90 print OUT "UCALFILE     STR         $relexp->{ubercal_file} # ubercal file used for calibration\n";
    91 print OUT "CALDATE      STR         $relexp->{time_stamp} # time of calibration\n";
    92 print OUT "PSREL        STR         $relexp->{release_name} # PS release name\n";
     94print $OUT "DVOCALIB     STR         T # exposure calibrated with DVO\n";
     95print $OUT "ZPCALIB      F32         $relexp->{zpt_obs} # calibrated zero point\n";
     96print $OUT "ZPCALERR     F32         $relexp->{zpt_stdev} # calibrated zero point error - 0 for ubercal exposure\n";
     97print $OUT "MCAL         F32         $relexp->{mcal} # zero point offset due to clouds\n";
     98print $OUT "UCALEXP      STR         $ubercal_exp\n";
     99print $OUT "DVOFLAGS     U32         $relexp->{flags} # dvo flags\n";
     100print $OUT "UCALDIST     S32         $relexp->{ubercal_dist} # distance to ubercal image\n";
     101print $OUT "DVODB        STR         $relexp->{dvodb} # dvo database used for calibration \n";
     102print $OUT "UCALFILE     STR         $relexp->{ubercal_file} # ubercal file used for calibration\n";
     103print $OUT "CALDATE      STR         $relexp->{time_stamp} # time of calibration\n";
     104print $OUT "PSREL        STR         $relexp->{release_name} # PS release name\n";
    93105
    94 close OUT or die "failed to close $output\n";
     106close $OUT or die "failed to close $output\n";
    95107
Note: See TracChangeset for help on using the changeset viewer.