Changeset 16173
- Timestamp:
- Jan 20, 2008, 3:59:25 PM (18 years ago)
- Location:
- trunk/ippTasks
- Files:
-
- 12 edited
-
camera.pro (modified) (1 diff)
-
chip.pro (modified) (1 diff)
-
chiphosts.config (modified) (2 diffs)
-
detrend.correct.pro (modified) (2 diffs)
-
detrend.norm.pro (modified) (3 diffs)
-
detrend.process.pro (modified) (2 diffs)
-
detrend.reject.pro (modified) (1 diff)
-
detrend.resid.pro (modified) (2 diffs)
-
detrend.stack.pro (modified) (1 diff)
-
notes.txt (modified) (1 diff)
-
pantasks.pro (modified) (2 diffs)
-
summit.copy.pro (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/camera.pro
r14693 r16173 127 127 book getword camPendingExp $pageName reduction -var REDUCTION 128 128 129 # specify choice of remote host:(need to choose based on chips) 130 if ($parallel) 131 host anyhost 132 else 133 host local 134 end 129 # specify choice of remote host based on camera and chip (class_id) 130 set.host.for.camera $camera FPA 135 131 136 132 # output log from filerule -
trunk/ippTasks/chip.pro
r14693 r16173 127 127 book getword chipPendingImfile $pageName reduction -var REDUCTION 128 128 129 # specify choice of remote host 130 # XXX need to choose based on chips 131 if ($parallel) 132 host anyhost 133 else 134 host local 135 end 129 # specify choice of local or remote host based on camera and chip (class_id) 130 set.host.for.camera $camera $class_id 136 131 137 132 ## generate output log based on filerule -
trunk/ippTasks/chiphosts.config
r14063 r16173 2 2 chiphosts MULTI 3 3 4 # these camera names must match those listed in ipprc.config 4 5 chiphosts METADATA 5 camera STR megacam6 camera STR MEGACAM 6 7 ccd00 STR po00 7 8 ccd01 STR po01 … … 17 18 18 19 chiphosts METADATA 19 camera STR cfh12k20 camera STR CFH12K 20 21 ccd00 STR po10 21 22 ccd01 STR po11 22 23 ccd02 STR po12 23 24 END 25 26 $gpcHost00 = ipp005 27 $gpcHost01 = ipp008 28 $gpcHost02 = ipp019 29 $gpcHost03 = ipp020 30 $gpcHost04 = ipp021 31 32 chiphosts METADATA 33 camera GPC1 34 XY01 STR gpcHost00 35 XY02 STR gpcHost00 36 XY03 STR gpcHost00 37 XY04 STR gpcHost00 38 XY05 STR gpcHost00 39 XY06 STR gpcHost00 40 XY10 STR gpcHost00 41 XY11 STR gpcHost00 42 XY12 STR gpcHost00 43 XY13 STR gpcHost00 44 XY14 STR gpcHost00 45 XY15 STR gpcHost00 46 47 XY16 STR gpcHost01 48 XY17 STR gpcHost01 49 XY20 STR gpcHost01 50 XY21 STR gpcHost01 51 XY22 STR gpcHost01 52 XY23 STR gpcHost01 53 XY24 STR gpcHost01 54 XY25 STR gpcHost01 55 XY26 STR gpcHost01 56 XY27 STR gpcHost01 57 XY30 STR gpcHost01 58 XY31 STR gpcHost01 59 60 XY32 STR gpcHost02 61 XY33 STR gpcHost02 62 XY34 STR gpcHost02 63 XY35 STR gpcHost02 64 XY36 STR gpcHost02 65 XY37 STR gpcHost02 66 XY40 STR gpcHost02 67 XY41 STR gpcHost02 68 XY42 STR gpcHost02 69 XY43 STR gpcHost02 70 XY44 STR gpcHost02 71 XY45 STR gpcHost02 72 73 XY46 STR gpcHost03 74 XY47 STR gpcHost03 75 XY50 STR gpcHost03 76 XY51 STR gpcHost03 77 XY52 STR gpcHost03 78 XY53 STR gpcHost03 79 XY54 STR gpcHost03 80 XY55 STR gpcHost03 81 XY56 STR gpcHost03 82 XY57 STR gpcHost03 83 XY60 STR gpcHost03 84 XY61 STR gpcHost03 85 86 XY62 STR gpcHost04 87 XY63 STR gpcHost04 88 XY64 STR gpcHost04 89 XY65 STR gpcHost04 90 XY66 STR gpcHost04 91 XY67 STR gpcHost04 92 XY71 STR gpcHost04 93 XY72 STR gpcHost04 94 XY73 STR gpcHost04 95 XY74 STR gpcHost04 96 XY75 STR gpcHost04 97 XY76 STR gpcHost04 98 END -
trunk/ippTasks/detrend.correct.pro
r15313 r16173 148 148 book getword detPendingCorrectedImfile $pageName dbname -var DBNAME 149 149 150 # specify choice of remote host: 151 if ($parallel) 152 host anyhost 153 else 154 host local 155 end 150 # specify choice of local or remote host based on camera and chip (class_id) 151 set.host.for.camera $camera $class_id 156 152 157 153 ## output log filename … … 279 275 book getword detPendingCorrectedExp $pageName dbname -var DBNAME 280 276 281 # specify choice of remote host: 282 if ($parallel) 283 host anyhost 284 else 285 host local 286 end 277 # specify choice of local or remote host based on camera and chip (class_id) 278 set.host.for.camera $camera FPA 287 279 288 280 # XXX push this into the filerules? -
trunk/ippTasks/detrend.norm.pro
r15854 r16173 156 156 book getword detPendingNormStatImfile $pageName dbname -var DBNAME 157 157 158 # specify choice of remote host: 159 if ($parallel) 160 host anyhost 161 else 162 host local 163 end 158 # specify choice of local or remote host based on camera and chip (class_id) 159 set.host.for.camera $camera FPA 164 160 165 161 if ("$WORKDIR" == "NULL") … … 278 274 book getword detPendingNormImfile $pageName dbname -var DBNAME 279 275 280 # specify choice of remote host: 281 if ($parallel) 282 host anyhost 283 else 284 host local 285 end 276 # specify choice of local or remote host based on camera and chip (class_id) 277 set.host.for.camera $camera $class_id 286 278 287 279 # XXX use ipp_filename.pl to lookup output file names … … 398 390 book getword detPendingNormExp $pageName dbname -var DBNAME 399 391 400 # specify choice of remote host: 401 if ($parallel) 402 host anyhost 403 else 404 host local 405 end 392 # specify choice of local or remote host based on camera and chip (class_id) 393 set.host.for.camera $camera FPA 406 394 407 395 # XXX add $WORKDIR/$LOG_DIR -
trunk/ippTasks/detrend.process.pro
r14693 r16173 147 147 book getword detPendingProcessedImfile $pageName reduction -var REDUCTION 148 148 149 # specify choice of remote host: 150 if ($parallel) 151 host anyhost 152 else 153 host local 154 end 149 # specify choice of local or remote host based on camera and chip (class_id) 150 set.host.for.camera $camera $class_id 155 151 156 152 ## output log filename … … 276 272 book getword detPendingProcessedExp $pageName dbname -var DBNAME 277 273 278 # specify choice of remote host: 279 if ($parallel) 280 host anyhost 281 else 282 host local 283 end 274 # specify choice of local or remote host based on camera and chip (class_id) 275 set.host.for.camera $camera FPA 284 276 285 277 # XXX push this into the filerules? -
trunk/ippTasks/detrend.reject.pro
r14693 r16173 125 125 book getword detRejectExp $pageName dbname -var DBNAME 126 126 127 # specify choice of remote host: 128 if ($parallel) 129 host anyhost 130 else 131 host local 132 end 127 # specify choice of local or remote host based on camera and chip (class_id) 128 set.host.for.camera $camera FPA 133 129 134 130 if ("$WORKDIR" == "NULL") -
trunk/ippTasks/detrend.resid.pro
r14693 r16173 147 147 book getword detPendingResidImfile $pageName reduction -var REDUCTION 148 148 149 # specify choice of remote host: 150 if ($parallel) 151 host anyhost 152 else 153 host local 154 end 149 # specify choice of local or remote host based on camera and chip (class_id) 150 set.host.for.camera $camera $class_id 155 151 156 152 # XXX use ipp_filename.pl to lookup output file names … … 279 275 book getword detPendingResidExp $pageName dbname -var DBNAME 280 276 281 # specify choice of remote host: 282 if ($parallel) 283 host anyhost 284 else 285 host local 286 end 277 # specify choice of local or remote host based on camera and chip (class_id) 278 set.host.for.camera $camera FPA 287 279 288 280 # XXX use ipp_filename.pl to lookup output file names -
trunk/ippTasks/detrend.stack.pro
r14693 r16173 127 127 book getword detPendingStackedImfile $pageName reduction -var REDUCTION 128 128 129 # specify choice of remote host: 130 if ($parallel) 131 host anyhost 132 else 133 host local 134 end 129 # specify choice of local or remote host based on camera and chip (class_id) 130 set.host.for.camera $camera $class_id 135 131 136 132 if ("$WORKDIR" == "NULL") -
trunk/ippTasks/notes.txt
r15313 r16173 1 2 2008.01.18 3 4 I'm working on the summit.copy.pro interaction with nebulous (and 5 those of the other ippTasks) and the assignment of jobs and data 6 locations to hosts on the basis of the chip/host relationship. I 7 have defined a table which relates the chip (class_id) to the 8 desired host name. There are a few places, and a few slightly 9 different ways, in which this gets used: 10 11 * choice of host for command execution: 12 13 every job which operates on a specific chip must be told the chip 14 host so it can run the job on that machine. the information is 15 supplied in pantasks to the job with the 'host' command. I've 16 made a pantasks macro 'set.host.by.camera' which takes the camera 17 and class_id, looks up the match in the chip/host table, and calls 18 the host command with the desired host. If there is no match 19 (camera not listed in chip/host table or chip not listed in 20 table), the host is set to 'anyhost', which randomly chooses one. 21 I have used this command for all tasks which generate a pcontrol 22 command. For the tasks which are performed at the camera level, 23 these are set to anyhost. For the tasks which operate on stacks, 24 we can use the same structure to associate the skycell with a 25 host. 26 27 * dsget output target: 28 29 dsget is called by pantasks in the task 'dsget'. currently, dsget 30 accepts a --filename argument which specifies the output filename 31 to use. we have to tell t 32 33 34 * choice of output directory. 35 36 the 37 1 38 2 39 2007.10.11 -
trunk/ippTasks/pantasks.pro
r15780 r16173 1 1 2 2 # XXX make these upper-case 3 $NEBULOUS = 0 3 4 $network = 1 4 5 $parallel = 1 … … 339 340 ?? 340 341 end 342 343 macro set.workdir.by.camera 344 if ($0 != 3) 345 echo "USAGE: set.workdir.by.camera (camera) (class_id)" 346 break 347 end 348 349 # missing camera and/or chiphosts table results in host = NULL 350 book getword chiphosts $1 $2 -var $host 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 363 if ("$host" == "NULL") 364 $workdir = $workdir_default 365 return 366 end 367 strsub $workdir_template @HOST@ $host -var workdir 368 end 369 370 macro set.host.by.camera 371 if ($0 != 3) 372 echo "USAGE: set.host.by.camera (camera) (class_id)" 373 break 374 end 375 376 if (not($parallel)) 377 host local 378 return 379 end 380 381 # missing camera and/or chiphosts table results in host = NULL 382 book getword chiphosts $1 $2 -var $host 383 384 if ("$host" == "NULL") 385 host anyhost 386 else 387 host $host 388 end 389 end -
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.
