Changeset 41999
- Timestamp:
- Jan 25, 2022, 2:26:06 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-ps2-20210802/ippScripts/scripts/warp_overlap.pl
r41996 r41999 130 130 my @matchlist = get_overlaps($astromFile, $tess_dir_abs, $astromAccept,$maxCerror); # List of overlaps 131 131 if (! @matchlist) { 132 &my_die("Unable to perform dvoImageOverlaps: missing astrometry", $warp_id, $PS_EXIT_DATA_ERROR); 132 # OLD: &my_die("Unable to perform dvoImageOverlaps: missing astrometry", $warp_id, $PS_EXIT_DATA_ERROR); 133 warn("no overlaps found (bad astrometry); setting warpRun state to 'drop'\n"); 134 135 # Add the processed file to the database 136 unless ($no_update) { 137 my $command = "$warptool -updaterun -set_state drop -warp_id $warp_id"; # Command to run warptool 138 $command .= " -dbname $dbname" if defined $dbname; 139 140 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 141 run(command => $command, verbose => $verbose); 142 unless ($success) { 143 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 144 warn("Unable to perform warptool -updaterun -set_state fail: $error_code\n"); 145 exit($error_code); 146 } 147 } 148 exit(0); 133 149 } 134 150 # Match each of the imfiles to this list (the input images may be split, but the astrometry is not) … … 158 174 # Add the processed file to the database 159 175 unless ($no_update) { 160 my $command = "$warptool -updaterun -set_state drop "; # Command to run warptool176 my $command = "$warptool -updaterun -set_state drop -warp_id $warp_id"; # Command to run warptool 161 177 $command .= " -dbname $dbname" if defined $dbname; 162 178
Note:
See TracChangeset
for help on using the changeset viewer.
