Changeset 35134
- Timestamp:
- Feb 8, 2013, 11:50:49 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
-
dbconfig/background.md (modified) (1 diff)
-
dbconfig/changes.txt (modified) (2 diffs)
-
ippScripts/scripts/background_warp.pl (modified) (4 diffs)
-
ippTasks/background.pro (modified) (3 diffs)
-
ippTools/share/bgtool_towarp.sql (modified) (1 diff)
-
ippTools/share/bgtool_warp.sql (modified) (1 diff)
-
ippTools/share/pxadmin_create_tables.sql (modified) (1 diff)
-
ippTools/src/bgtool.c (modified) (2 diffs)
-
ippTools/src/bgtoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dbconfig/background.md
r29493 r35134 48 48 dist_group STR 64 49 49 reduction STR 64 50 alt_cam_label STR 64 50 51 note STR 255 51 52 registered TAI NULL -
trunk/dbconfig/changes.txt
r35048 r35134 2266 2266 UPDATE dbversion set schema_version = '1.1.73', updated= CURRENT_TIMESTAMP(); 2267 2267 2268 ALTER TABLE warpBackgroundRun ADD COLUMN alt_cam_label VARCHAR(255) AFTER reduction; 2269 2270 UPDATE dbversion set schema_version = '1.1.74', updated= CURRENT_TIMESTAMP(); 2268 2271 2269 2272 -- new tables for managing the "release" of ipp data … … 2335 2338 ) ENGINE=innodb DEFAULT CHARSET=latin1; 2336 2339 2337 UPDATE dbversion set schema_version = '1.1.74', updated= CURRENT_TIMESTAMP(); 2340 ALTER TABLE warpBackgroundRun ADD COLUMN alt_cam_label VARCHAR(255) AFTER reduction; 2341 2342 UPDATE dbversion set schema_version = '1.1.75', updated= CURRENT_TIMESTAMP(); -
trunk/ippScripts/scripts/background_warp.pl
r35127 r35134 39 39 40 40 my ($warp_bg_id, $skycell_id, $tess_dir, $reduction, $camera, $dbname, $outroot, $threads, $verbose, $no_update, $no_op, $redirect, $save_temps); 41 my ($astrometry, $imageName, $maskName, $weightName, $magicked );41 my ($astrometry, $imageName, $maskName, $weightName, $magicked, $exp_tag, $alternate_astrometry_label); 42 42 GetOptions( 43 43 'warp_bg_id|i=s' => \$warp_bg_id, # Warp identifier 44 44 'skycell_id|s=s' => \$skycell_id, # Skycell identifier 45 45 'tess_dir|s=s' => \$tess_dir, # Tesselation identifier 46 'exp_tag|=s' => \$exp_tag, # exposure tag 46 47 'camera|c=s' => \$camera, # Camera name 47 48 'dbname|d=s' => \$dbname, # Database name … … 51 52 'mask-list=s' => \$maskName, # list of input mask files 52 53 'astrometry=s' => \$astrometry, 54 'alt_cam_label=s' => \$alternate_astrometry_label, # camRun.label for alternate astrometry 53 55 'magicked=s' => \$magicked, 54 56 'threads=s' => \$threads, # Number of threads to use for pswarp … … 84 86 } 85 87 88 if ($alternate_astrometry_label) { 89 my_die( "--exp_tag is required when using alternate astrometry", $warp_bg_id, $skycell_id, $PS_EXIT_PROG_ERROR ) 90 unless defined $exp_tag; 91 } 92 86 93 my $ipprc = PS::IPP::Config->new( $camera ) or 87 94 my_die( "Unable to set up", $warp_bg_id, $skycell_id, $PS_EXIT_CONFIG_ERROR ); # IPP configuration … … 119 126 my $tempOutRoot = "/tmp/background.warp.$warp_bg_id.$skycell_id"; 120 127 121 # XXX: get this from recipe122 my $alternate_astrometry_label = 'M31.test.20130206.bgsub';123 # XXX: get exp_id from command line124 my $exp_id = 196758;125 126 128 if (!defined $imageName) { 127 129 # go find our inputs 128 130 my $astrom_path_base; 129 131 if (defined $alternate_astrometry_label) { 130 my $command = "$camtool -processedexp -exp_ id $exp_id-label $alternate_astrometry_label";132 my $command = "$camtool -processedexp -exp_tag $exp_tag -label $alternate_astrometry_label"; 131 133 $command .= " -dbname $dbname" if $dbname; 132 134 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = -
trunk/ippTasks/background.pro
r28486 r35134 394 394 book getword warpBackgroundRuns $pageName dbname -var DBNAME 395 395 book getword warpBackgroundRuns $pageName reduction -var REDUCTION 396 book getword warpBackgroundRuns $pageName alt_cam_label -var ALT_CAM_LABEL 396 397 397 398 set.host.for.skycell $SKYCELL_ID … … 402 403 stderr $LOGDIR/bg.warp.run.log 403 404 404 $run = background_warp.pl --threads @MAX_THREADS@ --warp_bg_id $WARP_BG_ID --skycell_id $SKYCELL_ID --tess_dir $TESS_DIR --camera $CAMERA -- outroot $outroot --redirect-output405 $run = background_warp.pl --threads @MAX_THREADS@ --warp_bg_id $WARP_BG_ID --skycell_id $SKYCELL_ID --tess_dir $TESS_DIR --camera $CAMERA --exp_tag $EXP_TAG --outroot $outroot --redirect-output 405 406 if ("$REDUCTION" != "NULL") 406 407 $run = $run --reduction $REDUCTION 408 end 409 if ("$ALT_CAM_LABEL" != "NULL") 410 $run = $run --alt_cam_label $ALT_CAM_LABEL 407 411 end 408 412 add_standard_args run … … 446 450 447 451 periods -poll $LOADPOLL 448 # periods -exec $LOADEXEC449 452 periods -exec 30 450 453 periods -timeout 60 -
trunk/ippTools/share/bgtool_towarp.sql
r34589 r35134 24 24 AND (Label.active OR Label.active IS NULL) 25 25 -- WHERE hook %s 26 ORDER BY priority DESC, chip_bg_id26 ORDER BY priority DESC, warp_bg_id, skycell_id -
trunk/ippTools/share/bgtool_warp.sql
r28743 r35134 4 4 warpBackgroundRun.workdir, 5 5 warpBackgroundRun.label, 6 warpBackgroundRun.alt_cam_label, 6 7 rawExp.exp_id, 7 8 rawExp.exp_name, -
trunk/ippTools/share/pxadmin_create_tables.sql
r35110 r35134 1843 1843 data_group VARCHAR(64), -- group for data 1844 1844 dist_group VARCHAR(64), -- group for distribution 1845 reduction VARCHAR(64), -- reduction class (for altering recipe) 1845 reduction VARCHAR(64), -- reduction class (for altering recipe) 1846 alt_cam_label VARCHAR(64), -- label for alternate version of astrometry (optional) 1846 1847 note VARCHAR(255), -- note 1847 1848 registered TIMESTAMP DEFAULT CURRENT_TIMESTAMP, -- time run was registered -
trunk/ippTools/src/bgtool.c
r35121 r35134 1310 1310 PXOPT_LOOKUP_STR(dist_group, config->args, "-set_dist_group", false, false); 1311 1311 PXOPT_LOOKUP_STR(reduction, config->args, "-set_reduction", false, false); 1312 PXOPT_LOOKUP_STR(alt_cam_label, config->args, "-set_alt_cam_label", false, false); 1312 1313 PXOPT_LOOKUP_STR(note, config->args, "-set_note", false, false); 1313 1314 PXOPT_LOOKUP_TIME(registered, config->args, "-registered", false, false); … … 1424 1425 dist_group ? dist_group : row->dist_group, 1425 1426 reduction ? reduction : row->reduction, 1427 alt_cam_label, 1426 1428 note ? note : row->note, 1427 1429 NULL, 0)) { -
trunk/ippTools/src/bgtoolConfig.c
r35121 r35134 285 285 psMetadataAddStr(definewarpArgs, PS_LIST_TAIL, "-set_label", 0, "define label", NULL); 286 286 psMetadataAddStr(definewarpArgs, PS_LIST_TAIL, "-set_reduction", 0, "define reduction class", NULL); 287 psMetadataAddStr(definewarpArgs, PS_LIST_TAIL, "-set_alt_cam_label", 0, "define alternate astrometry sources", NULL); 287 288 psMetadataAddStr(definewarpArgs, PS_LIST_TAIL, "-set_data_group", 0, "define data group", NULL); 288 289 psMetadataAddStr(definewarpArgs, PS_LIST_TAIL, "-set_dist_group", 0, "define dist group", NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
