Changeset 16171
- Timestamp:
- Jan 20, 2008, 3:52:51 PM (18 years ago)
- Location:
- branches/eam_branch_20080109/ippTasks
- Files:
-
- 2 edited
-
pantasks.pro (modified) (2 diffs)
-
summit.copy.pro (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080109/ippTasks/pantasks.pro
r16165 r16171 1 1 2 2 # XXX make these upper-case 3 $NEBULOUS = 0 3 4 $network = 1 4 5 $parallel = 1 … … 346 347 end 347 348 348 if (not($parallel))349 ???350 return351 end352 353 349 # missing camera and/or chiphosts table results in host = NULL 354 350 book getword chiphosts $1 $2 -var $host 355 351 352 if ($NEBULOUS) 353 if ("$host" == "NULL") 354 $workdir = $workdir_default 355 $volume = "NULL" 356 return 357 end 358 strsub $workdir_template @HOST@ $host -var workdir 359 strsub $volume_template @HOST@ $host -var volume 360 return 361 end 362 356 363 if ("$host" == "NULL") 357 ??? 358 return 359 end 360 361 $workdir = /data/$host.0 364 $workdir = $workdir_default 365 return 366 end 367 strsub $workdir_template @HOST@ $host -var workdir 362 368 end 363 369 -
branches/eam_branch_20080109/ippTasks/summit.copy.pro
r16149 r16171 7 7 # pztool -adddatastore -inst allskycam -telescope ps1 -uri http://otis1.ifa.hawaii.edu/ds/allskycam/index.txt 8 8 9 # XXX these things below need to be set in pantasks.pro, perhaps with a site-dependent call.9 # the templates are used if we have a class_id/host relationship; if none is found, the default values are used 10 10 # XXX not sure how to handle the .N value if we need to use more than one 11 $workdir_template = /data/@HOST@.0/ 11 if ($NEBULOUS) 12 $workdir_default = neb:// 13 $workdir_template = neb:// 14 $volume_default = ipp004-v0 15 $volume_template = @HOST@-v0 16 else 17 $workdir_default = /data/ipp004.0/ 18 $workdir_template = /data/@HOST@.0/ 19 end 12 20 13 21 $VERBOSE = 1 … … 267 275 268 276 # we need to set the workdir based on 1) nebulous or not? 2) chip/host relationship 269 set.workdir.by.camera $CAMERA $CLASS_ID /data/@HOST@.0 277 # this function uses workdir_template, workdir_default, volume_template, volume_default, 278 # it sets workdir and volume 279 set.workdir.by.camera $CAMERA $CLASS_ID 270 280 271 281 # figure out filename 272 282 # XXXX this filename needs to use nebulous names 273 283 $FILENAME = $workdir/$CAMERA/$YEAR/$MONTH/$DAY/$EXP_NAME/$EXP_NAME.$CLASS_ID.fits 284 $FILEROOT = $workdir/$CAMERA/$YEAR/$MONTH/$DAY/$EXP_NAME/$EXP_NAME.$CLASS_ID 274 285 275 286 book setword pzPendingImfile $pageName filename $FILENAME … … 280 291 # store the pageName with this job 281 292 options $pageName 282 283 if ($MD5SUM == 0) 284 $run = dsget --uri $URI --filename $FILENAME --bytes $BYTES 285 else 286 $run = dsget --uri $URI --filename $FILENAME --bytes $BYTES --md5 $MD5SUM 293 options $FILEROOT 294 295 $run = dsget --uri $URI --filename $FILENAME --bytes $BYTES 296 if ($MD5SUM) 297 $run = $run --md5 $MD5SUM 298 end 299 if ($NEBULOUS && ("$volname" != "NULL")) 300 $run = $run --volume $volume 287 301 end 288 302 … … 304 318 book getword pzPendingImfile $options:0 filename -var FILENAME 305 319 320 # we need to set the values of tess_id, dvodb, end_stage, workdir here 321 # these are functions of (at least) EXP_TYPE and SURVEY_ID, both of which should come from the data store 322 306 323 # update the database with the success 307 $run = pztool -copydone -exp_name $EXP_NAME -inst $CAMERA -telescope $TELESCOPE -class $CLASS -class_id $CLASS_ID -uri $FILENAME 324 $run = pztool -copydone -exp_name $EXP_NAME -inst $CAMERA -telescope $TELESCOPE -class $CLASS -class_id $CLASS_ID -uri $FILENAME -workdir $options:1 325 # tess_id, dvodb, workdir, end_stage 308 326 309 327 # create the command line
Note:
See TracChangeset
for help on using the changeset viewer.
