Changeset 16195 for trunk/ippTasks/summit.copy.pro
- Timestamp:
- Jan 22, 2008, 5:35:42 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/summit.copy.pro (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/summit.copy.pro
r16174 r16195 18 18 # the templates are used if we have a class_id/host relationship; if none is found, the default values are used 19 19 # XXX not sure how to handle the .N value if we need to use more than one 20 # XXX this stuff should all be placed in a 'site' config file 20 21 if ($NEBULOUS) 21 $ workdir_default = neb://22 $workdir_template = neb:// 23 $ volume_default= ipp004-v024 $volume_template = @HOST@-v022 $default_host = ipp004 23 $workdir_template = neb:///@HOST@-v0 24 $default_volume = ipp004-v0 25 $volume_template = 25 26 else 26 $ workdir_default = /data/ipp004.0/27 $default_host = ipp004 27 28 $workdir_template = /data/@HOST@.0/ 28 29 end … … 278 279 book getword pzPendingImfile $pageName camera -var $CAMERA 279 280 281 set.host.by.camera $CAMERA $CLASS_ID 282 host anyhost 283 280 284 # 2007-08-30T05:09:59Z 281 285 substr $DATEOBS 0 4 YEAR … … 284 288 285 289 # 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,290 # this function uses workdir_template, default_host, volume_template, volume_default, 287 291 # it sets workdir and volume 288 set.workdir.by.camera $CAMERA $CLASS_ID 292 set.workdir.by.camera $CAMERA $CLASS_ID $workdir_template $default_host workdir_base 293 set.volume.by.camera $CAMERA $CLASS_ID $volume_template $default_volume volume 289 294 290 295 # 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 296 # XXX may need to use sprintf here 297 $FILENAME = $workdir_base/$CAMERA/$YEAR$MONTH$DAY/$EXP_NAME/$EXP_NAME.$CLASS_ID.fits 298 $workdir = $workdir_template/$CAMERA/$YEAR$MONTH$DAY 299 # workdir examples: 300 # file://data/@HOST@.0/gpc1/20080130 301 # neb://gpc1/20080130 (need to supply volname?, or are we re-defining this each time?) 294 302 295 303 book setword pzPendingImfile $pageName filename $FILENAME 296 297 set.host.by.camera $CAMERA $CLASS_ID298 host anyhost299 304 300 305 # store the pageName with this job 301 306 options $pageName 302 options $ FILEROOT307 options $workdir 303 308 304 309 $run = dsget --uri $URI --filename $FILENAME --bytes $BYTES … … 330 335 # these are functions of (at least) EXP_TYPE and SURVEY_ID, both of which should come from the data store 331 336 337 # we saved the workdir so we can pass it to pztool 338 $workdir = $options:1 339 332 340 # 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 341 # for the moment, let's not propagate these 342 $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 343 # tess_id, dvodb, workdir, end_stage 335 344
Note:
See TracChangeset
for help on using the changeset viewer.
