IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 2, 2009, 11:55:52 AM (17 years ago)
Author:
Paul Price
Message:

Removing warpSkyfile.ignored from database, in favour of using the quality flags. This means that we can ignore skycells on the basis of usefulness (whether we can measure the PSF) rather than an arbitrary cut of 10% lit pixels (which pixels may or may not be useful).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/ippScripts/scripts/warp_skycell.pl

    r23653 r23677  
    175175# Run pswarp
    176176my $cmdflags;
    177 my $accept = 1;                 # Accept the skycell?
    178177my $do_stats;
    179178unless ($no_op) {
     
    215214
    216215    if ($do_stats) {
    217         # Check first for the stats file, and if the ACCEPT flag is set.
     216        # Check first for the stats file
    218217        my $outputStatsReal = $ipprc->file_resolve($outputStats);
    219218        &my_die("Couldn't find expected output file: $outputStats", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) unless -f $outputStatsReal;
     
    234233        my ($quality) = $cmdflags =~ /-quality (\d+)/; # Quality flag
    235234
    236         if (!$quality and $cmdflags =~ /-accept/) {
     235        if (!$quality) {
    237236            &my_die("Couldn't find expected output file: $outputImage", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputImage);
    238237            &my_die("Couldn't find expected output file: $outputMask", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputMask);
     
    251250            $command .= " -magicked" if $magicked;
    252251
    253             $command .= " -uri $outputImage" if $accept;
     252            $command .= " -uri $outputImage" if !$quality;
    254253            $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
    255             $command .= " $cmdflags" if $accept;
     254            $command .= " $cmdflags";
    256255            $command .= " -hostname $host"   if defined $host;
    257256            $command .= " -dbname $dbname"   if defined $dbname;
Note: See TracChangeset for help on using the changeset viewer.