Changeset 20257
- Timestamp:
- Oct 17, 2008, 4:00:52 PM (18 years ago)
- Location:
- trunk/pstamp
- Files:
-
- 1 added
- 5 edited
-
doc/psnotes.txt (modified) (8 diffs)
-
scripts/pstamp_finish.pl (modified) (2 diffs)
-
scripts/pstamp_results_file.pl (modified) (1 diff)
-
test/pstamp_req_create (modified) (1 diff)
-
test/sample_pstamp.txt (modified) (1 diff)
-
test/sample_simtest.txt (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/doc/psnotes.txt
r20218 r20257 6 6 This note describes the installation and operation of the IPP Postage Stamp Server. 7 7 We assume that IPP source for examination and that the user has the standard 8 ippconfiguration environment set up.9 10 This component of the IPP system is not intended for general distribution to ippusers8 IPP configuration environment set up. 9 10 This component of the IPP system is not intended for general distribution to IPP users 11 11 and does not have streamlined installation procedures at this time. 12 12 … … 91 91 92 92 93 The ippincludes a number of tools for accessing a data store. An introduction to these tools may93 The IPP includes a number of tools for accessing a data store. An introduction to these tools may 94 94 be seen by using the program perldoc. 95 95 … … 109 109 110 110 The files for the Data Store Server located in the IPP source tree in the directory 111 DataStoreServer (this directory may not be available in the distributed ipp111 DataStoreServer (this directory may not be available in the distributed IPP 112 112 tarballs). 113 113 … … 115 115 ----------------------------- 116 116 117 To set up the database go to the DataStoreServer/scripts and start up mysql. 118 119 mysql> create database mydatabase; 120 mysql> use mydatabase; 121 mysql> source scripts/tabledefs.sql; 122 123 Note: if you already have a current IPP database that you would like to use 124 for the Postage Stamp Request tables, when skip you can skip the create step 125 and use that database. 126 117 The tables for the PSS are part of the regular IPP database tables. 118 119 The Data Store implementation has been designed to not require the IPP for its 120 operation so the Data Store's tables are not created as part of the IPP database setup. 121 122 Currently however, the PostageStamp Server implementation assumes that the data 123 store and postage stamp tables are in the same mysql database (this will be 124 fixed soon). 125 126 To set up the database go to the directory DataStoreServer/scripts and start up mysql. 127 128 If you do not already have a current IPP database that you would like to use 129 for the Postage Stamp Request tables issue the following commands 130 131 mysql> create database mydatabase; 132 mysql> use mydatabase; 133 mysql> source scripts/tabledefs.sql; 134 135 Now exit mysql and run the command 136 pxadmin -create -dbname mydatabase 137 138 If you already have a database set up, then just issue the commands 139 mysql> use mydatabase; 140 mysql> source scripts/tabledefs.sql; 127 141 128 142 Web Server Configuration … … 170 184 ScriptAlias /ds-cgi /DATASTOREDIR/ds-cgi/ 171 185 186 (another sample of this configuration file may be found in 187 DataStoreServer/web/conf/httpd-datastore.conf 188 172 189 Here we have assumed that the data store cgi scripts will be installed in 173 190 /DATASTOREDIR/ds-cgi and the data store data files will be stored in … … 282 299 state enabled 283 300 dbname ps_simtest 284 dvodb currently not used301 dvodb NULL (currently not used) 285 302 camera SIMTEST 286 303 telescope SimScope 287 304 need_magic 0 288 305 289 The column dbname contain es the name of the database that is used to look up images. To290 create a project use pstamptool. In this case the ps_simtest is a database306 The column dbname contains the name of the database that is used to look up images. 307 To create a project use pstamptool. In this example ps_simtest is a database 291 308 refererencing images made by a simtest run. 292 309 … … 298 315 299 316 Postage Stamp requests are submitted in the form of a FITS binary table. The 300 format of this table is described in a document which can be found by going 301 to the page 302 303 PostageStampServer 304 305 on the IPP wiki. 306 307 308 The tables for the PSS are part of the regular IPP database 309 tables. The Data Store implementation has been designed to not require the IPP for it's 310 operation. 311 So the Data Store's tables are not created as part of the ipp database setup. 312 313 However, the current PostageStamp Server implementation assumes that the data 314 store and postage stamp tables are in the same mysql database (this will be 315 fixes soon). 316 317 As will be explained below, the request database does not necessarily have to be the 318 same as the image database. 317 format of this table is described in a document which may be found on the IPP wiki. 318 http://kiawe.ifa.hawaii.edu/IPPwiki/index.php/PostageStampServer 319 320 Only the first table extension found in the request file is processed. 321 322 Each postage stamp request file submitted to the PSS generates a "Request". 323 The name of the request is given by the value for the keyword REQ_NAME in 324 the extension's fits header. Each postage stamp request must have a unique REQ_NAME must be unique. 325 326 To process the request the PSS parses the request file. 327 Each row in a request table contains a request specification. Each request specification 328 causes zero or more "Jobs" to be queued for processing. Each Job operates on 329 one input image. 330 331 When all of the Jobs for a given Request complete, a Postage stamp results 332 file is created and it along with the images produced by the jobs are 333 registered in a fileset on the output Data Store. 334 335 There are two job types specified by the value for the JOB_TYPE keyword in the 336 request specification. 337 338 JOB_TYPE = "stamp" creates a "postage stamp" image. 339 JOB_TYPE = "get_image" builds a fileset containing copies of images 340 341 There are two programs that may be used to create a postage stamp request. 342 pstamprequest creates a request file with a single request specification. 343 344 For example 345 346 pstamprequest -req_name REQ_00001 -project simtest req.fits \ 347 -byexp chip simtest.004.000 null \ 348 -pixcenter 500 500 -pixrange 100 100 349 350 creates a request file req.fits containing a request specification for a 100 x 100 pixel 351 postage stamp image centered at (500,500) in the source. 352 The source image is chip processed image for one of the object exposures from a simtest run. 353 354 Another program that may be used to create a request file is located in 355 pstamp/test/pstamp_req_create. 356 357 This program a text file and creates a multi-row postage stamp request. 358 359 319 360 320 361 XXXXXXXXXXXXXXXXXXXXXX The following sections are to be completed … … 322 363 -------------------- 323 364 pantasks tasks 324 Database 365 325 366 DataStore for input and output 326 367 Web interface (limited functionality prototype only) 327 368 328 369 329 Request files330 Link to Spec331 332 333 370 334 371 Examples -
trunk/pstamp/scripts/pstamp_finish.pl
r20256 r20257 110 110 my ($rlf, $reglist_name) = tempfile ("$out_dir/reglist.XXXX", UNLINK => !$save_temps); 111 111 print $rlf "results.fits|||table|\n"; 112 113 # XXX: this file is in the request's workdir not the out_dir 112 114 my $err_file = "$out_dir/parse_error.txt"; 113 115 if (-e $err_file ) { … … 138 140 # including those that produced no jobs. 139 141 # for now add an entry for rownum 1 and a phony error code. 140 # we've included parse_ results.txt to the fileset if it exists142 # we've included parse_error.txt to the fileset if it exists 141 143 # 142 144 my $rownum = 0; -
trunk/pstamp/scripts/pstamp_results_file.pl
r18986 r20257 91 91 92 92 # output parameters 93 # { name => 'STAMP_NAME', type => '16A', writetype => TSTRING },94 93 { name => 'OPTION_MASK',type => 'J', writetype => TULONG }, 95 94 -
trunk/pstamp/test/pstamp_req_create
r18740 r20257 49 49 { name => 'JOB_TYPE', type => '16A', writetype => TSTRING }, 50 50 51 { name => 'STAMP_NAME', type => '16A', writetype => TSTRING },52 51 { name => 'OPTION_MASK',type => 'J', writetype => TULONG }, 53 52 -
trunk/pstamp/test/sample_pstamp.txt
r18740 r20257 15 15 # subsequent lines define the rows in the table 16 16 17 # ROWNUM PROJECT JOB_TYPE STAMP_NAME OPTION_MASK REQ_TYPE IMG_TYPE IDCLASS_ID COORD_MASK CENTER_X CENTER_Y WIDTH HEIGHT REQFILT MJD_MIN MJD_MAX18 1 megacam-mops stamp null1 byid chip 419 null 3 1500 1500 100 100 null 0 019 2 megacam-mops stamp null1 byid chip 419 null 3 1600 1500 100 100 null 0 020 3 megacam-mops stamp null1 byid chip 419 null 3 1700 1500 100 100 null 0 017 # ROWNUM PROJECT JOB_TYPE OPTION_MASK REQ_TYPE IMG_TYPE ID CLASS_ID COORD_MASK CENTER_X CENTER_Y WIDTH HEIGHT REQFILT MJD_MIN MJD_MAX 18 1 megacam-mops stamp 1 byid chip 419 null 3 1500 1500 100 100 null 0 0 19 2 megacam-mops stamp 1 byid chip 419 null 3 1600 1500 100 100 null 0 0 20 3 megacam-mops stamp 1 byid chip 419 null 3 1700 1500 100 100 null 0 0 21 21 22 22 # the following row will create several jobs
Note:
See TracChangeset
for help on using the changeset viewer.
