Changeset 28916 for trunk/ippScripts/scripts/automate_stacks.pl
- Timestamp:
- Aug 13, 2010, 4:23:58 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/automate_stacks.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/automate_stacks.pl
r28887 r28916 132 132 my %stackable_list = (); 133 133 my %reduction_class = (); 134 my @unrecoverable_quality = (); 134 135 my @detrend_list = (); 135 136 my %dettype_list = (); … … 177 178 elsif (${ $entry }{name} eq 'FILTERS') { 178 179 push @filter_list, ${ $entry }{value}; 180 } 181 elsif (${ $entry }{name} eq 'UNRECOVERABLE_QUALITY') { 182 push @unrecoverable_quality, ${ $entry }{value}; 179 183 } 180 184 elsif (${ $entry }{name} eq 'TARGETS') { … … 1062 1066 my ($label,$workdir,$obs_mode,$object,$comment,$tess_id,$dist_group,$data_group,$reduction) = get_tool_parameters($date,$target); 1063 1067 1064 my $sth = "SELECT skycell_id from stackRun where data_group = '$data_group' AND skycell_id = '$skycell' AND filter = '$filter' ";1068 my $sth = "SELECT skycell_id from stackRun where data_group = '$data_group' AND skycell_id = '$skycell' AND filter = '$filter' AND tess_id = '$tess_id'"; 1065 1069 my $data_ref = $db->selectall_arrayref( $sth ); 1066 1070 … … 1080 1084 1081 1085 my $where = " label = '$label' AND data_group = '$data_group' "; 1086 1087 my $where_possibly_faulted = $where . " AND ( " ; 1088 foreach my $acceptable_quality (@unrecoverable_quality) { 1089 $where_possibly_faulted .= " quality = $acceptable_quality OR "; 1090 } 1091 $where_possibly_faulted .= " 0 )"; 1092 1082 1093 my $chip_sth = "SELECT * from chipRun WHERE (state = 'full' OR state = 'new') AND $where "; 1094 my $cam_sth = "SELECT * from camRun JOIN camProcessedExp USING(cam_id) WHERE state = 'full' AND $where_possibly_faulted "; 1083 1095 my $warp_sth = "SELECT * from warpRun WHERE state = 'full' AND $where "; 1084 1096 1085 1097 my $chip_ref = $db->selectall_arrayref( $chip_sth ); 1098 my $cam_ref = $db->selectall_arrayref( $cam_sth ); 1086 1099 my $warp_ref = $db->selectall_arrayref( $warp_sth ); 1087 1100 … … 1104 1117 } 1105 1118 1106 return($#input_exposures + 1, $#{ $chip_ref } + 1, $#{ $ warp_ref } + 1, $Nalready);1119 return($#input_exposures + 1, $#{ $chip_ref } + 1, $#{ $cam_ref } + $#{ $warp_ref } + 2, $Nalready); 1107 1120 } 1108 1121
Note:
See TracChangeset
for help on using the changeset viewer.
