IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

Fix zero points for exposure time.

File:
1 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    }
Note: See TracChangeset for help on using the changeset viewer.