Changeset 24487
- Timestamp:
- Jun 18, 2009, 10:55:36 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
-
dbconfig/changes.txt (modified) (1 diff)
-
dbconfig/warp.md (modified) (1 diff)
-
ippScripts/scripts/warp_skycell.pl (modified) (5 diffs)
-
ippTasks/warp.pro (modified) (2 diffs)
-
ippTools/share/pxadmin_create_tables.sql (modified) (1 diff)
-
ippTools/share/warptool_towarped.sql (modified) (1 diff)
-
ippTools/src/faketool.c (modified) (3 diffs)
-
ippTools/src/pxwarp.c (modified) (2 diffs)
-
ippTools/src/pxwarp.h (modified) (1 diff)
-
ippTools/src/warptool.c (modified) (4 diffs)
-
ippTools/src/warptoolConfig.c (modified) (2 diffs)
-
ippconfig/recipes/filerules-split.mdc (modified) (1 diff)
-
ippconfig/recipes/pswarp.config (modified) (1 diff)
-
ippconfig/recipes/reductionClasses.mdc (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dbconfig/changes.txt
r24174 r24487 1126 1126 1127 1127 -- Version 1.1.53 1128 1129 ALTER TABLE warpRun ADD COLUMN reduction VARCHAR(64) AFTER tess_id; -
trunk/dbconfig/warp.md
r23688 r24487 19 19 dvodb STR 255 20 20 tess_id STR 64 21 reduction STR 64 21 22 end_stage STR 64 # Key 22 23 registered TAI NULL -
trunk/ippScripts/scripts/warp_skycell.pl
r24205 r24487 36 36 } 37 37 38 my ($warp_id, $skycell_id, $warp_skyfile_id, $tess_dir, $ camera, $dbname, $outroot, $threads, $run_state, $magicked, $verbose, $no_update, $no_op, $redirect, $save_temps);38 my ($warp_id, $skycell_id, $warp_skyfile_id, $tess_dir, $reduction, $camera, $dbname, $outroot, $threads, $run_state, $magicked, $verbose, $no_update, $no_op, $redirect, $save_temps); 39 39 GetOptions( 40 40 'warp_id|i=s' => \$warp_id, # Warp identifier … … 44 44 'camera|c=s' => \$camera, # Camera name 45 45 'dbname|d=s' => \$dbname, # Database name 46 'reduction=s' => \$reduction, # Reduction class 46 47 'outroot=s' => \$outroot, # Output root name 47 48 'threads=s' => \$threads, # Number of threads to use for pswarp … … 73 74 74 75 $ipprc->redirect_output($logDest) or my_die( "Unable to redirect output", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR ) if $redirect; 76 77 # Recipes to use based on reduction class 78 $reduction = 'DEFAULT' unless defined $reduction; 79 my $recipe_pswarp = $ipprc->reduction($reduction, 'WARP_PSWARP'); # Recipe to use for ppImage 80 unless ($recipe_pswarp) { 81 &my_die("Couldn't find selected reduction for WARP_PSWARP: $reduction\n", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_CONFIG_ERROR); 82 } 75 83 76 84 my $source_id = $ipprc->source_id($dbname, $PS_TABLE_ID_WARP); … … 102 110 my $astromSource; # The astrometry source 103 111 { 104 my $command = "$ppConfigDump -camera $camera - dump-recipe PSWARP -";112 my $command = "$ppConfigDump -camera $camera -recipe PSWARP $recipe_pswarp -dump-recipe PSWARP -"; 105 113 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 106 114 run(command => $command, verbose => $verbose); … … 192 200 $command .= " -F SOURCE.PLOT.PSFMODEL SOURCE.PLOT.SKY.PSFMODEL"; 193 201 $command .= " -F SOURCE.PLOT.APRESID SOURCE.PLOT.SKY.APRESID"; 202 $command .= " -recipe PSWARP $recipe_pswarp"; 194 203 $command .= " -psf"; # Turn on PSF determination 195 204 $command .= " -tracedest $traceDest -log $logDest"; -
trunk/ippTasks/warp.pro
r24195 r24487 297 297 # XXX change tess_id to tess_dir when schema is changed 298 298 book getword warpPendingSkyCell $pageName tess_id -var TESS_DIR 299 book getword warpPendingSkyCell $pageName reduction -var REDUCTION 299 300 book getword warpPendingSkyCell $pageName exp_tag -var EXP_TAG 300 301 book getword warpPendingSkyCell $pageName state -var RUN_STATE … … 317 318 stderr $LOGDIR/warp.skycell.log 318 319 319 $run = warp_skycell.pl --threads @MAX_THREADS@ --warp_id $WARP_ID --warp_skyfile_id $WARP_SKYFILE_ID --skycell_id $SKYCELL_ID --tess_dir $TESS_DIR -- camera $CAMERA --outroot $outroot --redirect-output --run-state $RUN_STATE $MAGICKED_ARG320 $run = warp_skycell.pl --threads @MAX_THREADS@ --warp_id $WARP_ID --warp_skyfile_id $WARP_SKYFILE_ID --skycell_id $SKYCELL_ID --tess_dir $TESS_DIR --reduction $REDUCTION --camera $CAMERA --outroot $outroot --redirect-output --run-state $RUN_STATE $MAGICKED_ARG 320 321 add_standard_args run 321 322 -
trunk/ippTools/share/pxadmin_create_tables.sql
r24177 r24487 794 794 dvodb VARCHAR(255), 795 795 tess_id VARCHAR(64), 796 reduction VARCHAR(64), 796 797 end_stage VARCHAR(64), 797 798 registered DATETIME, -
trunk/ippTools/share/warptool_towarped.sql
r23429 r24487 6 6 warpRun.fake_id, 7 7 warpRun.state, 8 warpRun.reduction, 8 9 camRun.cam_id, 9 10 rawExp.camera, -
trunk/ippTools/src/faketool.c
r24414 r24487 235 235 bool status; 236 236 char *end_stage = psMetadataLookupStr(&status, md, "end_stage"); 237 if (end_stage && strcasecmp(end_stage, "warp")) continue;237 if (end_stage && strcasecmp(end_stage, "warp")) continue; 238 238 239 239 char *raw_tess_id = psMetadataLookupStr(&status, md, "tess_id"); 240 if (raw_tess_id || tess_id) continue;240 if (raw_tess_id || tess_id) continue; 241 241 242 242 char *label = psMetadataLookupStr(&status, md, "label"); … … 244 244 245 245 if (!status) { 246 psError(PS_ERR_UNKNOWN, false, "cannot queue analysis to WARP without a defined tess id: label: %s, exp_id %" PRId64, label, exp_id);246 psError(PS_ERR_UNKNOWN, false, "cannot queue analysis to WARP without a defined tess id: label: %s, exp_id %" PRId64, label, exp_id); 247 247 psFree(output); 248 248 return false; … … 1157 1157 // pxwarpQueueByFakeID() can only be run after fakeRun.state has been set to stop 1158 1158 if (!pxwarpQueueByFakeID(config, 1159 fakeRun->fake_id, 1160 fakeRun->workdir, 1161 fakeRun->label, 1162 fakeRun->dvodb, 1163 fakeRun->tess_id, 1164 fakeRun->end_stage 1159 fakeRun->fake_id, 1160 fakeRun->workdir, 1161 fakeRun->label, 1162 fakeRun->dvodb, 1163 fakeRun->tess_id, 1164 fakeRun->reduction, 1165 fakeRun->end_stage 1165 1166 )) { 1166 1167 psError(PS_ERR_UNKNOWN, false, "failed to queue warpRun"); -
trunk/ippTools/src/pxwarp.c
r23613 r24487 126 126 127 127 bool pxwarpQueueByFakeID(pxConfig *config, 128 psS64 fake_id, 129 char *workdir, 130 char *label, 131 char *dvodb, 132 char *tess_id, 133 char *end_stage) 128 psS64 fake_id, 129 const char *workdir, 130 const char *label, 131 const char *dvodb, 132 const char *tess_id, 133 const char *reduction, 134 const char *end_stage) 134 135 { 135 136 PS_ASSERT_PTR_NON_NULL(config, false); … … 146 147 dvodb, 147 148 tess_id, 149 reduction, 148 150 end_stage, 149 151 NULL, // registered -
trunk/ippTools/src/pxwarp.h
r23613 r24487 31 31 32 32 bool pxwarpQueueByFakeID(pxConfig *config, 33 psS64 fake_id, 34 char *workdir, 35 char *label, 36 char *dvodb, 37 char *tess_id, 38 char *end_stage); 33 psS64 fake_id, 34 const char *workdir, 35 const char *label, 36 const char *dvodb, 37 const char *tess_id, 38 const char *reduction, 39 const char *end_stage); 39 40 40 41 #endif // PXWARP_H -
trunk/ippTools/src/warptool.c
r24426 r24487 139 139 PXOPT_LOOKUP_STR(dvodb, config->args, "-dvodb", false, false); 140 140 PXOPT_LOOKUP_STR(tess_id, config->args, "-tess_id", true, false); // required (no default TESS) 141 PXOPT_LOOKUP_STR(reduction, config->args, "-reduction", false, false); // required (no default TESS) 141 142 PXOPT_LOOKUP_STR(end_stage, config->args, "-end_stage", false, false); 142 143 PXOPT_LOOKUP_TIME(registered, config->args, "-registered", false, false); … … 159 160 dvodb, 160 161 tess_id, 162 reduction, 161 163 end_stage, 162 164 registered, … … 249 251 PXOPT_LOOKUP_STR(dvodb, config->args, "-set_dvodb", false, false); 250 252 PXOPT_LOOKUP_STR(tess_id, config->args, "-set_tess_id", false, false); 253 PXOPT_LOOKUP_STR(reduction, config->args, "-set_reduction", false, false); 251 254 PXOPT_LOOKUP_STR(end_stage, config->args, "-set_end_stage", false, false); 252 255 … … 332 335 // queue the exp 333 336 if (!pxwarpQueueByFakeID(config, 334 row->fake_id, 335 workdir ? workdir : row->workdir, 336 label ? label : row->label, 337 dvodb ? dvodb : row->dvodb, 338 tess_id ? tess_id : row->tess_id, 339 end_stage ? end_stage : row->end_stage)) 337 row->fake_id, 338 workdir ? workdir : row->workdir, 339 label ? label : row->label, 340 dvodb ? dvodb : row->dvodb, 341 tess_id ? tess_id : row->tess_id, 342 reduction ? reduction : row->reduction, 343 end_stage ? end_stage : row->end_stage)) 340 344 { 341 345 psError(PS_ERR_UNKNOWN, false, "failed to trying to queue fake_id: %" PRId64, row->fake_id); -
trunk/ippTools/src/warptoolConfig.c
r24426 r24487 98 98 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-set_dvodb", 0, "define DVO db", NULL); 99 99 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-set_tess_id", 0, "define tess ID", NULL); 100 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-set_reduction", 0, "define reduction class", NULL); 100 101 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-set_end_stage", 0, "define end stage", NULL); 101 102 psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-all", 0, "allow everything to be queued without search terms", false); … … 111 112 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-label", 0, "define label", NULL); 112 113 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-dvodb", 0, "define dvodb", NULL); 113 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-tess_id", 0, "define tess_id", NULL); 114 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-tess_id", 0, "define tess_id (required)", NULL); 115 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-reduction", 0, "define reduction class", NULL); 114 116 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-end_stage", 0, "define end stage", NULL); 115 117 psMetadataAddTime(definerunArgs, PS_LIST_TAIL, "-registered", 0, "time detrend run was registered", now); -
trunk/ippconfig/recipes/filerules-split.mdc
r24476 r24487 226 226 PPSTAMP.CHIP OUTPUT {OUTPUT}.ch.fits IMAGE NONE CHIP FALSE MEF 227 227 228 PPSIM.OUTPUT OUTPUT {OUTPUT}.{CHIP.NAME}.fits IMAGE NONE CHIP TRUE NONE228 PPSIM.OUTPUT OUTPUT {OUTPUT}.{CHIP.NAME}.fits IMAGE NONE CHIP TRUE SPLIT 229 229 PPSIM.FAKE.CHIP OUTPUT {OUTPUT}.{CHIP.NAME}.fake.fits IMAGE NONE CHIP TRUE NONE 230 230 PPSIM.FORCE.CHIP OUTPUT {OUTPUT}.{CHIP.NAME}.force.fits IMAGE NONE CHIP TRUE NONE -
trunk/ippconfig/recipes/pswarp.config
r20326 r24487 10 10 ACCEPT.FRAC F32 0.1 # Minimum fraction of good pixels to accept result 11 11 INTERPOLATION.NUM S32 1000 # Number of interpolation kernels to pre-calculate 12 13 # Default recipe for warping 14 WARP METADATA 15 END -
trunk/ippconfig/recipes/reductionClasses.mdc
r24467 r24487 130 130 CHIP_PPIMAGE STR CHIP 131 131 CHIP_PSPHOT STR CHIP 132 WARP_PSWARP STR WARP 132 133 STACK_PPSTACK STR STACK 133 134 STACK_PPSUB STR STACK … … 146 147 CHIP_PPIMAGE STR PPIMAGE_P 147 148 CHIP_PSPHOT STR CHIP 149 WARP_PSWARP STR WARP 148 150 STACK_PPSTACK STR STACK 149 151 STACK_PPSUB STR STACK … … 162 164 CHIP_PPIMAGE STR PPIMAGE_FLATCORR 163 165 CHIP_PSPHOT STR CHIP 166 WARP_PSWARP STR WARP 164 167 STACK_PPSTACK STR STACK 165 168 STACK_PPSUB STR STACK … … 178 181 CHIP_PPIMAGE STR PPIMAGE_FLATTEST 179 182 CHIP_PSPHOT STR CHIP 183 WARP_PSWARP STR WARP 180 184 STACK_PPSTACK STR STACK 181 185 STACK_PPSUB STR STACK … … 194 198 CHIP_PPIMAGE STR PPIMAGE_DET_ONLY 195 199 CHIP_PSPHOT STR CHIP 200 WARP_PSWARP STR WARP 196 201 STACK_PPSTACK STR STACK 197 202 STACK_PPSUB STR STACK … … 208 213 CHIP_PPIMAGE STR PPIMAGE_OBDSF 209 214 CHIP_PSPHOT STR CHIP 215 WARP_PSWARP STR WARP 210 216 STACK_PPSTACK STR STACK 211 217 STACK_PPSUB STR STACK … … 223 229 CHIP_PPIMAGE STR PPIMAGE_MASKPHOT 224 230 CHIP_PSPHOT STR CHIP 231 WARP_PSWARP STR WARP 225 232 STACK_PPSTACK STR STACK 226 233 STACK_PPSUB STR STACK … … 238 245 CHIP_PPIMAGE STR CHIP_DENSE_STARS 239 246 CHIP_PSPHOT STR CHIP 240 STACK_PPSTACK STR STACK 241 STACK_PPSUB STR STACK 242 STACK_PSPHOT STR STACK 243 DIFF_PPSUB STR DIFF 244 DIFF_PSPHOT STR DIFF 245 JPEG_BIN1 STR PPIMAGE_J1 246 JPEG_BIN2 STR PPIMAGE_J2 247 FAKEPHOT STR FAKEPHOT 248 ADDSTAR STR ADDSTAR 249 PSASTRO STR DEFAULT_RECIPE 250 END 251 252 # Intended for areas with high stellar density 253 WARPWARP METADATA 254 DIFF_PPSUB STR WARPWARP 255 DIFF_PSPHOT STR DIFF 256 JPEG_BIN1 STR PPIMAGE_J1 257 JPEG_BIN2 STR PPIMAGE_J2 247 WARP_PSWARP STR WARP 248 STACK_PPSTACK STR STACK 249 STACK_PPSUB STR STACK 250 STACK_PSPHOT STR STACK 251 DIFF_PPSUB STR DIFF 252 DIFF_PSPHOT STR DIFF 253 JPEG_BIN1 STR PPIMAGE_J1 254 JPEG_BIN2 STR PPIMAGE_J2 255 FAKEPHOT STR FAKEPHOT 258 256 ADDSTAR STR ADDSTAR 259 257 PSASTRO STR DEFAULT_RECIPE … … 265 263 CHIP_PPIMAGE STR CHIP 266 264 CHIP_PSPHOT STR PR 265 WARP_PSWARP STR WARP 267 266 STACK_PPSTACK STR PR 268 267 STACK_PPSUB STR PR
Note:
See TracChangeset
for help on using the changeset viewer.
