Changeset 43050
- Timestamp:
- Jun 9, 2026, 2:38:54 PM (5 weeks ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/register_exp.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/register_exp.pl
r42122 r43050 62 62 defined $exp_tag; 63 63 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) 65 my @SCIENCE = ( "object", "science", "light" ); # Observation types to progress to warp 66 my @DETFILTERS = ( "OPEN", "CLEAR" ); # Filters to explicitly end at registration stage (lack of detrends) 67 my $END_FLAG = "-end_stage reg"; # Flag to use 67 68 68 69 # setup cache interface … … 118 119 my $exp_type = &value_for_flag ($cmdflags, "-exp_type"); 119 120 if (uc($exp_type) eq "NULL") { &my_die ("exp_type not found", $exp_id, $PS_EXIT_CONFIG_ERROR); } 121 122 my $filter = &value_for_flag ($cmdflags, "-filter"); 120 123 121 124 my ($data_group,$dist_group,$chip_workdir,$reduction); … … 144 147 $command .= " $cmdflags"; 145 148 146 # Add the detrendflag, if needed149 # Add the registration end stage flag, if needed 147 150 { 148 151 my $object = 0; # Is it an object exposure? … … 152 155 last; 153 156 } 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; 156 166 } 157 167
Note:
See TracChangeset
for help on using the changeset viewer.
