IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42388


Ignore:
Timestamp:
Feb 8, 2023, 12:15:30 PM (3 years ago)
Author:
eugene
Message:

merge from eam_branches/ipp-20220316. option to skip astrometry and only generate jpegs; generate the jpegs even if the FWHM > maxFWHM

Location:
trunk/ippScripts
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/Build.PL

    r42105 r42388  
    155155        scripts/sc_transfer_tool.pl
    156156        scripts/remote_md5sum.pl
     157        scripts/fpcamera_exp.pl
    157158    )],
    158159    dist_abstract => 'Scripts for running the Pan-STARRS IPP',
  • trunk/ippScripts/scripts/camera_exp.pl

    r42229 r42388  
    133133}
    134134
     135## option to skip the astrometry analysis (but still do the jpegs)
     136## if not defined in the config file, default is to not skip
     137my $skip_astrom = 0;
     138$skip_astrom = metadataLookupBool($recipeData, 'PSASTRO.SKIP.ASTROMETRY');
     139print "skip astrom: $skip_astrom\n";
     140if ($skip_astrom) { print "skip the astrom\n"; }
     141
    135142my $cmdflags;
    136143
     
    183190        ($expFWHM) = $cmdflags =~ /-fwhm_major (\d+)/; 
    184191       
    185         if ($expFWHM > $maxFWHM) {
     192        if (not defined $expFWHM) {
     193            print "FWHM not measured (no photometry?), Setting quality to 4077\n";
     194            $cmdflags .= " -quality 4077 "; # This corresponds to PSASTRO_ERR_DATA
     195            $skip_astrom = 1;
     196        } elsif ($expFWHM > $maxFWHM) {
    186197            print "Setting quality to 4007 due to large FWHM: exposure: $expFWHM  maximum: $maxFWHM\n";
    187198            $cmdflags .= " -quality 4007 "; # This corresponds to PSASTRO_ERR_DATA
    188             $no_op = 1;
    189         }
    190     }
    191 }
    192 
     199            # $no_op = 1;
     200            $skip_astrom = 1; # skip astrometry, but make the jpegs
     201        }
     202    }
     203}
    193204
    194205my $do_masks;               # Produce masks?
     
    297308my $jpeg1      = prepare_output("PPIMAGE.JPEG1",      $outroot, undef, 1) if $do_jpegs;
    298309my $jpeg2      = prepare_output("PPIMAGE.JPEG2",      $outroot, undef, 1) if $do_jpegs;
    299 my $fpaObjects = prepare_output("PSASTRO.OUTPUT",     $outroot, undef, 1) if !$bkg_only;
     310my $fpaObjects = prepare_output("PSASTRO.OUTPUT",     $outroot, undef, 1) if (!$bkg_only && !$skip_astrom);
    300311
    301312my $configuration;
     
    342353    }
    343354
    344     if (!$bkg_only) {
     355    if (!$bkg_only && !$skip_astrom) {
    345356        # run psastro on the chipObjects, producing fpaObjects
    346357        my $command;
  • trunk/ippScripts/scripts/rawcheck.pl

  • trunk/ippScripts/scripts/warp_overlap.pl

Note: See TracChangeset for help on using the changeset viewer.