Changeset 16173 for trunk/ippTasks/summit.copy.pro
- Timestamp:
- Jan 20, 2008, 3:59:25 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/summit.copy.pro (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/summit.copy.pro
r15298 r16173 7 7 # pztool -adddatastore -inst allskycam -telescope ps1 -uri http://otis1.ifa.hawaii.edu/ds/allskycam/index.txt 8 8 9 $workdir = /data/ipp010.0/ 9 # the templates are used if we have a class_id/host relationship; if none is found, the default values are used 10 # XXX not sure how to handle the .N value if we need to use more than one 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 10 20 11 21 $VERBOSE = 1 … … 34 44 periods -poll 1 35 45 periods -timeout 15 46 npending 1 36 47 37 48 # success … … 231 242 periods -poll 0.05 232 243 periods -timeout 120 233 host anyhost234 244 235 245 task.exec … … 264 274 substr $DATEOBS 8 2 DAY 265 275 276 # we need to set the workdir based on 1) nebulous or not? 2) chip/host relationship 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 280 266 281 # figure out filename 282 # XXXX this filename needs to use nebulous names 267 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 268 285 269 286 book setword pzPendingImfile $pageName filename $FILENAME 287 288 set.host.by.camera $CAMERA $CLASS_ID 289 host anyhost 270 290 271 291 # store the pageName with this job 272 292 options $pageName 273 274 if ($MD5SUM == 0) 275 $run = dsget --uri $URI --filename $FILENAME --bytes $BYTES 276 else 277 $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 278 301 end 279 302 … … 295 318 book getword pzPendingImfile $options:0 filename -var FILENAME 296 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 297 323 # update the database with the success 298 $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 299 326 300 327 # create the command line
Note:
See TracChangeset
for help on using the changeset viewer.
