IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17519


Ignore:
Timestamp:
May 4, 2008, 2:13:20 PM (18 years ago)
Author:
eugene
Message:

write out astrometry file

File:
1 edited

Legend:

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

    r16753 r17519  
    137137my ($astromFile, $astromName) = tempfile( "$outrootResolved.astrom.list.XXXX", UNLINK => !$save_temps);
    138138
     139my $wrote_astrom = 0;
    139140foreach my $imfile (@$imfiles) {
    140141    my $image = $imfile->{uri}; # Image name
     
    159160    print $maskFile   "$mask\n";
    160161    print $weightFile "$weight\n";
    161     print $astromFile "$astrom\n";
     162   
     163    if (!$wrote_astrom) {
     164        print $astromFile "$astrom\n";
     165        # XXX simplify this?  only ever have one file for astrometry (must be MEF)
     166        if ($astromSource eq 'PSASTRO.OUTPUT.MEF') {
     167            $wrote_astrom = 1;
     168        }
     169    }
    162170}
    163171close $imageFile;
Note: See TracChangeset for help on using the changeset viewer.