Changeset 31297
- Timestamp:
- Apr 15, 2011, 12:17:51 PM (15 years ago)
- Location:
- branches/haf_branches/haf_add2011
- Files:
-
- 3 edited
-
ippScripts/scripts/addstar_run.pl (modified) (3 diffs)
-
ippTasks/addstar.pro (modified) (2 diffs)
-
ippTasks/survey.pro (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/haf_branches/haf_add2011/ippScripts/scripts/addstar_run.pl
r31280 r31297 95 95 $recipe_addstar = $ipprc->reduction($reduction, 'ADDSTAR_STACK'); # Recipe to use 96 96 } 97 if ($stage =~/staticsky/) {98 $recipe_addstar = $ipprc->reduction($reduction, 'ADDSTAR_STATICSKY'); # Recipe to use99 }97 #if ($stage =~/staticsky/) { 98 # $recipe_addstar = $ipprc->reduction($reduction, 'ADDSTAR_STATICSKY'); # Recipe to use 99 #} 100 100 &my_die("Unrecognised ADDSTAR recipe", $add_id, $PS_EXIT_CONFIG_ERROR) unless defined $recipe_addstar; 101 101 … … 106 106 107 107 # the camera configurations should define the psastro output to be a single file (MEF), regardless of the inputs 108 109 # it was PSASTRO.OUTPUT 108 110 my $fpaObjects = $ipprc->filename("PSASTRO.OUTPUT", $stageroot) or &my_die("Missing entry from camera config", $add_id, $PS_EXIT_CONFIG_ERROR); 111 112 if (($stage =~/staticsky/) || ($stage =~/stack/)) { 113 $fpaObjects =~ s/smf$/cmf/; 114 115 } 109 116 my $traceDest = $ipprc->filename("TRACE.EXP", $outroot) or &my_die("Missing entry from camera config", $add_id, $PS_EXIT_CONFIG_ERROR); 110 117 … … 182 189 $command .= " $realFile"; 183 190 $command .= " -use-name $fpaObjects"; # DVO wants the neb-name as a file reference 184 $command .= " -image" if $image_only; 185 191 $command .= " -image" if $image_only; 192 if ($stage = ~/staticsky/) { 193 $command .= " -accept-astrom "; 194 } 186 195 my $mjd_addstar_start = DateTime->now->mjd; # MJD of starting script 187 196 -
branches/haf_branches/haf_add2011/ippTasks/addstar.pro
r31280 r31297 252 252 book getword addPendingExp $pageName exp_tag -var EXP_TAG 253 253 book getword addPendingExp $pageName add_id -var ADD_ID 254 book getword addPendingExp $pageName camroot -var CAMROOT 254 book getword addPendingExp $pageName stageroot -var STAGEROOT 255 book getword addPendingExp $pageName stage -var STAGE 255 256 book getword addPendingExp $pageName workdir -var WORKDIR_TEMPLATE 256 257 book getword addPendingExp $pageName reduction -var REDUCTION … … 277 278 278 279 ## generate outroot specific to this exposure (& chip) 279 sprintf outroot "%s/%s/%s.add.%s" $WORKDIR $EXP_TAG $EXP_TAG $ADD_ID 280 281 if ("$STAGE" == "cam") 282 sprintf outroot "%s/%s/%s.add.%s" $WORKDIR $EXP_TAG $EXP_TAG $ADD_ID 283 end 284 if ("$STAGE" == "staticsky") 285 sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID 286 end 287 if ("$STAGE" == "stack") 288 sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID 289 end 290 280 291 281 292 stdout $LOGDIR/addstar.exp.log 282 293 stderr $LOGDIR/addstar.exp.log 283 294 284 $run = addstar_run.pl -- exp_tag $EXP_TAG --add_id $ADD_ID --camera $CAMERA --dvodb $DVODB --stage $STAGE --stageroot $STAGEROOT --outroot $outroot --redirect-output295 $run = addstar_run.pl --add_id $ADD_ID --camera $CAMERA --dvodb $DVODB --stage $STAGE --stageroot $STAGEROOT --outroot $outroot --redirect-output 285 296 if ("$REDUCTION" != "NULL") 286 297 $run = $run --reduction $REDUCTION -
branches/haf_branches/haf_add2011/ippTasks/survey.pro
r31280 r31297 231 231 232 232 macro survey.add.addstar 233 if ($0 != 4)233 if ($0 != 5) 234 234 echo "USAGE: survey.add.addstar (label) (dvodb) (minidvodb_group) (stage)" 235 235 break … … 238 238 book setword SURVEY_ADDSTAR $1 DVODB $2 239 239 book setword SURVEY_ADDSTAR $1 MINIDVODB_GROUP $3 240 book setwor kSURVEY_ADDSTAR $1 STAGE $4240 book setword SURVEY_ADDSTAR $1 STAGE $4 241 241 book setword SURVEY_ADDSTAR $1 STATE PENDING 242 242 end
Note:
See TracChangeset
for help on using the changeset viewer.
