IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 43050


Ignore:
Timestamp:
Jun 9, 2026, 2:38:54 PM (5 weeks ago)
Author:
tdeboer
Message:

excluding OPEN/CLEAR filters from progressing to cam

File:
1 edited

Legend:

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

    r42122 r43050  
    6262    defined $exp_tag;
    6363
    64 # add -detrend UNLESS type is one of SCIENCE listed below (eg, OBJECT)
    65 my @SCIENCE = ( "object", "science", "light" ); # Observation types to NOT mark as detrend
    66 my $DETREND_FLAG = "-end_stage reg"; # Flag to use to mark detrend exposure
     64# Exposures should have end stage of registration UNLESS type is one of SCIENCE listed below (eg, OBJECT)
     65my @SCIENCE = ( "object", "science", "light" ); # Observation types to progress to warp
     66my @DETFILTERS = ( "OPEN", "CLEAR" ); # Filters to explicitly end at registration stage (lack of detrends)
     67my $END_FLAG = "-end_stage reg"; # Flag to use
    6768
    6869# setup cache interface
     
    118119my $exp_type = &value_for_flag ($cmdflags, "-exp_type");
    119120if (uc($exp_type) eq "NULL") { &my_die ("exp_type  not found", $exp_id, $PS_EXIT_CONFIG_ERROR); }
     121
     122my $filter = &value_for_flag ($cmdflags, "-filter");
    120123
    121124my ($data_group,$dist_group,$chip_workdir,$reduction);
     
    144147$command .= " $cmdflags";
    145148
    146 # Add the detrend flag, if needed
     149# Add the registration end stage flag, if needed
    147150{
    148151    my $object = 0;             # Is it an object exposure?
     
    152155            last;
    153156        }
    154     }
    155     $command .= " $DETREND_FLAG" unless $object;
     157    }   
     158    #check against filters labeled as not progressing beyond registration
     159    foreach my $detfilter (@DETFILTERS) {
     160        if (lc($filter) =~ /$detfilter/) {
     161            $object = 0;
     162            last;
     163        }
     164    }
     165    $command .= " $END_FLAG" unless $object;
    156166}
    157167
Note: See TracChangeset for help on using the changeset viewer.