IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24507


Ignore:
Timestamp:
Jun 19, 2009, 8:47:32 AM (17 years ago)
Author:
Paul Price
Message:

Fix zero points for exposure time.

Location:
branches/pap_mops
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_mops/ippScripts/scripts/publish_file.pl

    r24504 r24507  
    107107        next if defined $comp->{quality} and $comp->{quality} > 0;
    108108
     109        (carp "Bad zpt_obs or exp_time for component" and next) if not defined $comp->{zpt_obs} or not defined $comp->{exp_time};
     110        my $zp = $comp->{zpt_obs} + 2.5 * log($comp->{exp_time}) / log(10);
     111
    109112        if ($stage eq 'diff') {
    110113            my $skycell_id = $comp->{skycell_id};
     
    112115            $files{"$skycell_id.neg"} = $ipprc->filename( "PPSUB.INVERSE.SOURCES", $path_base ) if
    113116                defined $comp->{bothways} and $comp->{bothways};
    114             $zp{"$skycell_id.pos"} = $comp->{zpt_obs};
    115             $zp{"$skycell_id.neg"} = $comp->{zpt_obs};
     117            $zp{"$skycell_id.pos"} = $zp;
     118            $zp{"$skycell_id.neg"} = $zp if defined $comp->{bothways} and $comp->{bothways};
    116119        } elsif ($stage eq 'camera') {
    117120            my $cam_id = $comp->{cam_id};
    118121            $files{$cam_id} = $ipprc->filename( "PSASTRO.OUTPUT", $path_base );
    119             $zp{$cam_id} = $comp->{zpt_obs};
     122            $zp{$cam_id} = $zp;
    120123        }
    121124    }
  • branches/pap_mops/ippTools/share/camtool_find_processedexp.sql

    r24112 r24507  
    55    rawExp.exp_tag,
    66    rawExp.exp_name,
     7    rawExp.exp_time,
    78    rawExp.camera,
    89    rawExp.telescope,
  • branches/pap_mops/ippTools/share/difftool_skyfile.sql

    r24450 r24507  
    1010    camProcessedExp.zpt_lq,
    1111    camProcessedExp.zpt_uq,
     12    rawExp.exp_time,
    1213    rawExp.camera,
    1314    warp1,
     
    1920JOIN diffInputSkyfile USING(diff_id, skycell_id)
    2021JOIN warpRun
    21     ON warpRun.warp_id = diffInputSkyfile.warp1 -- NOTE: joining input only!
     22-- NOTE: joining input only!
     23-- This is so that we can get the correct zero point
     24-- XXX This needs to be more clever to handle diffs between stacks
     25    ON warpRun.warp_id = diffInputSkyfile.warp1
    2226JOIN fakeRun USING(fake_id)
    2327JOIN camRun USING(cam_id)
Note: See TracChangeset for help on using the changeset viewer.