Changeset 16176 for branches/eam_branch_20080121/ippTasks/summit.copy.pro
- Timestamp:
- Jan 21, 2008, 4:56:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080121/ippTasks/summit.copy.pro
r16174 r16176 19 19 # XXX not sure how to handle the .N value if we need to use more than one 20 20 if ($NEBULOUS) 21 $ workdir_default = neb://22 $workdir_template = neb:// 23 $ volume_default= ipp004-v024 $volume_template = @HOST@-v021 $default_host = ipp004 22 $workdir_template = neb:///@HOST@-v0 23 $default_volume = ipp004-v0 24 $volume_template = 25 25 else 26 $ workdir_default = /data/ipp004.0/26 $default_host = ipp004 27 27 $workdir_template = /data/@HOST@.0/ 28 28 end … … 278 278 book getword pzPendingImfile $pageName camera -var $CAMERA 279 279 280 set.host.by.camera $CAMERA $CLASS_ID 281 host anyhost 282 280 283 # 2007-08-30T05:09:59Z 281 284 substr $DATEOBS 0 4 YEAR … … 284 287 285 288 # we need to set the workdir based on 1) nebulous or not? 2) chip/host relationship 286 # this function uses workdir_template, workdir_default, volume_template, volume_default,289 # this function uses workdir_template, default_host, volume_template, volume_default, 287 290 # it sets workdir and volume 288 set.workdir.by.camera $CAMERA $CLASS_ID 291 set.workdir.by.camera $CAMERA $CLASS_ID $workdir_template $default_host workdir_base 292 set.volume.by.camera $CAMERA $CLASS_ID $volume_template $default_volume volume 289 293 290 294 # figure out filename 291 # XXXX this filename needs to use nebulous names 292 $FILENAME = $workdir/$CAMERA/$YEAR/$MONTH/$DAY/$EXP_NAME/$EXP_NAME.$CLASS_ID.fits 293 $FILEROOT = $workdir_template/$CAMERA/$YEAR/$MONTH/$DAY 295 # XXX may need to use sprintf here 296 $FILENAME = $workdir_base/$CAMERA/$YEAR$MONTH$DAY/$EXP_NAME/$EXP_NAME.$CLASS_ID.fits 297 $workdir = $workdir_template/$CAMERA/$YEAR$MONTH$DAY 298 # workdir examples: 299 # file://data/@HOST@.0/gpc1/20080130 300 # neb://gpc1/20080130 (need to supply volname?, or are we re-defining this each time?) 294 301 295 302 book setword pzPendingImfile $pageName filename $FILENAME 296 297 set.host.by.camera $CAMERA $CLASS_ID298 host anyhost299 303 300 304 # store the pageName with this job 301 305 options $pageName 302 options $ FILEROOT306 options $workdir 303 307 304 308 $run = dsget --uri $URI --filename $FILENAME --bytes $BYTES … … 330 334 # these are functions of (at least) EXP_TYPE and SURVEY_ID, both of which should come from the data store 331 335 336 # we saved the workdir so we can pass it to pztool 337 $workdir = $options:1 338 332 339 # update the database with the success 333 $run = pztool -copydone -exp_name $EXP_NAME -inst $CAMERA -telescope $TELESCOPE -class $CLASS -class_id $CLASS_ID -uri $FILENAME -workdir $options:1 340 # for the moment, let's not propagate these 341 $run = pztool -copydone -exp_name $EXP_NAME -inst $CAMERA -telescope $TELESCOPE -class $CLASS -class_id $CLASS_ID -uri $FILENAME -workdir $workdir -end_stage reg 334 342 # tess_id, dvodb, workdir, end_stage 335 343
Note:
See TracChangeset
for help on using the changeset viewer.
