Changeset 39846
- Timestamp:
- Dec 11, 2016, 9:09:09 PM (10 years ago)
- Location:
- trunk/doc/release.2015
- Files:
-
- 2 edited
-
ps1.analysis/stages.tex (modified) (14 diffs)
-
ps1.calibration/calibration.tex (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/release.2015/ps1.analysis/stages.tex
r39823 r39846 5 5 6 6 \RequirePackage{color} 7 \RequirePackage{code} 7 8 \input{astro.sty} 8 9 … … 18 19 19 20 % Pick a terse version of the title here; 20 \shorttitle{PS1 Data Processing S tages}21 \shorttitle{PS1 Data Processing System} 21 22 \shortauthors{E.A. Magnier et al} 22 23 \begin{document} 23 \title{Pan-STARRS Data Processing S tages}24 \title{Pan-STARRS Data Processing System} 24 25 25 26 % this is a crude trick to get the order of affiliations right. These … … 92 93 % \section{INTRODUCTION}\label{sec:intro} 93 94 94 \section{Processing Database} 95 \section{IPP Software Subsystems} 96 97 \subsection{Processing Database} 95 98 96 99 A critical element in the Pan-STARRS IPP infrastructure is the … … 161 164 crashes. 162 165 163 \section{Download from Summit} 166 \subsection{Nebulous} 167 168 \subsection{Pantasks \& Parallel Processing} 169 170 \subsection{DVO} 171 172 The Pan-STARRS IPP uses an internal database system, distinct from the 173 publically visible database system, to determine the association 174 between multiple detections of the same astronomical object and as 175 part of the astrometric and photometric calibration process. This 176 database system, called the ``Desktop Virtual Observatory'' (DVO) was 177 developed originally for the LONEOS project, and used as part of the 178 CFHT Elixir system (Magnier \& Cuillandre REF). The capabilities of 179 this databasing system have been somewhat expanded for the Pan-STARRS 180 context. 181 182 One of the main purposes of the DVO system is to define the 183 relationship between individual detections of an astronomical object 184 and the definition of that object. Before describing the database 185 schema, we will discuss the process by which detections are associated 186 with objects. New detections are generally added to the database in a 187 group associated with, for example, an image from the GPC1 camera. As 188 new detections are loaded, they are compared to the objects already 189 stored in the database. If an object is already found in the database 190 within the match radius, the new detection is associated to that 191 object. If more than one object exists within the database, the 192 detection is associated with the closest object. 193 194 Detections in DVO have a special piece of metadata called the 195 \code{photcode} which identifies the source of the measurement. A 196 \code{photcode} has a name which in general consists of the name of 197 the camera or telescope (e.g., GPC1 or 2MASS), the name (or short-hand 198 name) of the filter used for the measurement (e.g., $g$), and an 199 identifier for the detector, if not unique (e.g., XY01 for GPC1). 200 Along with each name, there is a numerical value for the photcode. A 201 table within the DVO system, \code{Photcode}, lists the photcoes and 202 defines a number of additional pieces of information for each 203 photcode. These include the nominal zero point and airmass slope, as 204 well as color trends to transform a measurement in the specific 205 photcode to a common system. There are 3 classes of photcodes defined 206 within the DVO system. Those photcodes associated with detections 207 from an image loaded into the database system are called \code{DEP} 208 photcodes. There are also photcodes associated with the average 209 photometry values, called SEC photcodes. There are also those 210 measurements which come from external data sources for which DVO does 211 not have any information to determine a calibration (e.g., 212 instrumental magnitudes and detector coordinates). These are 213 measurements are reference values and are assigned REF photcodes. 214 215 In the implementation of DVO used for the PV3 calibration analysis, 216 the database tables are stored on disk using binary FITS tables. Each 217 type of database table is stored as a separate file, or a collection 218 of files for table which are spatially partitioned. The binary FITS 219 tables may be optionally compressed using the (to date) experimental 220 FITS binary table compression strategy outlined by REF. In this 221 compression scheme, using a strategy similar to that used for FITS 222 image compression (REF), the data stored in the binary table is 223 compressed and stored in the 'HEAP' section of the FITS table. In 224 brief, each column in the FITS table is compressed as one (or more) 225 blocks. The standard fields which describe the data column format 226 (e.g., TFORM1) are replaced with columns which describe the location 227 and size of the compressed data in the HEAP section; the information 228 about the uncompressed data is moved to a field with 'Z' prepended 229 (e.g., ZFORM1) and an additional field is added to define the 230 compression algorithm (e.g., ZCTYP1). The column names (e.g., TTYPE1) 231 and units (e.g., TUNIT1) are retained in their original form. The 232 compression algorithm can treat the entire column as a single block of 233 data, or it may be broken into a number of chunks, each compressed in 234 turn (this must be the same for all columns). Additional header 235 information is added to describe the block sizes and infomation needed 236 to describe the HEAP data section. The compression algorithms 237 currently defined consist of the GZIP, RICE, PLIO, and HCOMPRESS 238 (REFS). For GZIP, the compression algorithm may transpose the byte 239 order before compression: for floating point data of a similiar 240 dynamic range, this choice may allow for better compression as each 241 byte in the 4 or 8 byte floating point value is more likely to be 242 similar to the same byte in other rows than to the other bytes of the 243 same row value. This option is called \code{GZIP_2} in the FITS 244 standard, as opposed to the standard order, \code{GZIP_1}. The DVO 245 system can be set to specify the compression options for each column 246 in the tables. In practice, we have chosen a default in which 247 floating point numbers used \code{GZIP_2}, character strings use 248 \code{GZIP_1}, integers use \code{RICE}. 249 250 \subsubsection{Sky Partition} 251 252 DVO includes two major classes of database tables: those containing 253 information directly about astronomical objects in the sky and those 254 containing other supporting information. The object-related tables 255 are partitioned on the basis of position in the sky: objects within a 256 region bounded by lines of constant RA,DEC are contained in a specific 257 file. The boundaries and the associated partition names are stored in 258 one of the supporting tables, \code{SkyTable}. This table contains 259 the definitions of the boundaries for each sky region (\code{R_MIN}, 260 \code{R_MAX}, \code{D_MIN}, \code{D_MAX}), the name of the sky region, 261 an ID (\code{INDEX}, equal to the sequence number of the region in the 262 table), and index entries to enable navigation within the table. The 263 regions are defined in a hierarchical sense, with a series of levels 264 each containing a finer mesh of regions covering the sky. 265 266 In the default used by the PV3 DVO, the partitioning scheme is based 267 on the one used by the Hubble Space Telescope Guide Star Catalog 268 files. Level 0 is a single region covering the full sky. Level 1 269 divides the sky in Declination into bands 7.5\degree\ high. Level 2 270 subdivides these Declination bands in the RA direction, with spacing 271 related to the stellar density. Level 3 divides these RA chunks into 272 4 - 8 smaller partitions. This level exactly matches the HST GSC 273 layout, and uses the same naming convention to identify the 274 partitions: n0000/0000, etc. \note{more on the names?}. Level 4 275 further divides these regions by a factor of 16. In the 276 \code{SkyTable}, a region at one level has a pointer to its parent 277 region (the one which contains it) and a sequence pointing to its 278 children (regions it contains). The \code{SkyTable} enables fast 279 lookups of the on-disk partitions which map to a specific coordinate 280 on the sky. In general, a single DVO will have the full sky 281 represented with tables at a single level, though it is possible for 282 mixed levels to be used, this mode is not well tested. For the PV3 283 master database, the partitioning at the 5th level results in \approx 284 150,000 regions to cover the full sky, of which \approx 110,000 are 285 used for the PV3 $3\pi$ data. The densest portions of the bulge 286 contain at most \approx 300k astronomical objects in the database 287 files, with an associated maximum of 30M measurements in these files. 288 With the compression scheme described above, this makes the largest 289 database files \approx 3GB, which can be loaded into memory in 30 290 seconds on our partition machines. 291 292 The DVO software system allows the tables which are partitioned across 293 the sky to also be distributed across multiple computers, which we 294 call partition hosts. A single file defines the names of these 295 partition hosts and the location of the database partition on the 296 disks of that machine. The \code{SkyTable} contains elements to 297 define by ID the parition host to which a partitioned set of tables 298 has been assigned. Operations which query the database, or perform 299 other operations on the database, are aware of the partitioning scheme 300 and will launch their operations as remote processes on the machines 301 which contain the data they need. For example, a query for data from 302 a small region will launch sub-query operations on the machines which 303 contain the data overlapping the region of interest. These remote 304 query operations will select the database information which matches 305 the query request (i.e., applying restrictions as defined) and return 306 to the master process the results. The results from the various 307 partition hosts are then merged into a single result by the master 308 process. This parallelization is critical to querying and 309 manipulating the enormous database on a reasonable timescale. 310 311 \subsection{Tables which describe objects} 312 313 Two tables carry the most important information about the astronomical 314 objects in the database: Average and SecFilt. These two tables 315 specify the main average properties of the astronomical object. The 316 Average table includes the astrometric information ($\alpha, \delta, 317 \mu \alpha, \mu \delta, \pi$) and associated errors, data quality 318 flags for each object, links to the other tables, and a number of IDs, 319 with one row for each astronomical object. \note{go into complete 320 detail here on the IDs?}. The SecFilt table\footnote{The name 321 SecFilt is a bit of a historical misnomer: originally, DVO was 322 designed for a monochromatic survey and data for a single 323 photometric band was maintained in the Average table. Later, DVO 324 was adapted to a multifilter system and additional filters were 325 added to the SecFilt (Secondary Filter) table. Eventually, the 326 schema was normalized and all photometric data placed in SecFilt, 327 with the Primary filter concept being dropped, but the name has 328 since stuck.} contains average photometric information for a 329 collection of filters. A given DVO instance has a specified set of 330 filters for which average photometry is stored in the SecFilt table. 331 The number and choice of filters for the SecFilt may be modified by 332 the database administrator fairly easily, but the process of updating 333 the database is somewhat expensive (\approx 24 hours for the current 334 PV3 instance). Thus the choice is semi-static for a given DVO 335 instance. In the case of the PV3 DVO instance, 9 average bandpasses 336 are defined: {\it g, r, i, z, y, J, H, K, w}. The SecFilt table 337 contains one row for each filter for each object, thus the PV3 DVO 338 contains 9 times as many rows as the Average table. The order of the 339 table is fixed in relation to the Average table: row $i$ of Average 340 defines the object with photometry contained in rows $9i \rightarrow 9i + 341 8$ ($i$ is zero counting). 342 343 The individual measurements of the astronomical objects are carried in 344 the table \code{Measure}. This table lists the values measured by 345 \code{psphot} for each chip, warp, or stack image. This includes the 346 instrumental magnitudes for the PSF, aperture, and Kron photometry; 347 raw position (Xccd, Yccd) and second moments (Mxx, Myy, Mxy), along 348 with shape parameters of the PSF model at the position of the object 349 (FWx, FWy, theta). This table also includes metadata such as the 350 exposure time, the date \& time of the observation, airmass, azimuth, 351 and information specifying the filter \note{describe the photcodes}. 352 The \code{Measure} table also carried the calibration magnitude offsts 353 ($M_{\rm cal}$ and $M_{\rm flat}$ discussed below) and the 354 astrometrically calibrated position. Astrometric offsets for several 355 systematic corrections discussed below are also defined for each 356 measurement. Since stacks and forced warp photometry may have 357 non-significant values, the table is somewhat de-normalized in that it 358 also carried instrumental flux values for the PSF, aperture, and Kron 359 photometry. 360 361 In the \code{Measure} table, there are three fields which provide two 362 independent links from the specific measurement to the associated 363 object: \code{Measure.catID} specifies the spatial partition to which 364 the measurement belongs; \code{Measure.objID} specifies to which entry 365 in the \code{Average} table the measurement belongs. These two 32 bit 366 fields can thus be combined into a single 64 bit unique ID for all 367 objects in the database. In addition, the field \code{Measure.averef} 368 specifies the row number in the \code{Average} table of the associated 369 object. The \code{Measure} table may be unsorted, in which case it is 370 slow to find the measurements associated with a specific object (a 371 full table scan is required). After the table is sorted, the 372 \code{Measure} rows for a given object are grouped together. In the 373 case, the fields \code{Average.measureOffset} and 374 \code{Average.Nmeasure} define an index for the code to jump to the 375 list of measurements for a single object. The field 376 \code{Measure.imageID} defines the link from the measurement to the 377 image which supplied the measurement. 378 379 \note{some discussion of the db construction, addstar, dvomerge, etc?} 380 381 For the warp images, we also measure the weak lensing KSB parameters 382 related to the shear and smear tensors. These measurements are stored 383 in the \code{Lensing} table, along with the radial aperture fluxes for 384 radii numbers 5, 6, \& 7 (XX, XX, XX arcsec). This table contains one 385 row for every warp row. Similarly to the \code{Measure} table, the fields 386 \code{objID}, \code{catID}, and \code{averef} define links from the 387 \code{Lensing} table to the \code{Average} table. In a similar 388 fashion, the fields \code{Average.lensingOffset} and 389 \code{Average.Nlensing} are the index into the sorted \code{Lensing} 390 table entries. \note{discuss failure of the Lensing to Measure 391 indexing} 392 393 The values stored in the \code{Lensing} table are used to calculate 394 average values for each of these types of measurements in each 395 filter. The \code{Lensobj} table stores the averaged KSB and radial 396 aperture photometry for each of the 5 filters \grizy. This table 397 contains one entry per object per filter. The table is not generally 398 stored unsorted as it is calculated after the full database is 399 populated. The link from \code{Average} to \code{Lensobj} is defined 400 by the fields \code{Average.offsetLensobj} and 401 \code{Average.Nlensobj}. Each \code{Lensobj} row also includes the 402 photcode (filter) for which the average lensing (and radial aperture) 403 properties have been calculated. 404 405 The \code{Galphot} table stores the results of the forced galaxy 406 fitting analysis for each object that has been measured. This table 407 contains one row per filter and model type (Sersic, Exponential, 408 DeVaucouleur) if forced galaxy models have been calculate for the 409 object. \note{need to expand on this somewhat} 410 411 The \code{Starpar} table carries measurements provide by Greg Green \& 412 Eddie Schlafly from their analysis of the SED of objects in the PS1 413 $3\pi$ data, using the \note{PV1?} version of the analysis (Green et 414 al REF). In this work, the goal was a 3D model of the dust in the 415 Galaxy based on Pan-STARRS (\note{and WISE \& 2MASS?}) photometry. As 416 part of this analysis, the authors fit the SEDs of all \note{stellar?} 417 sources with stellar models including free parameters of extinction, 418 distance modulus, metallicity, and absolute r-band magnitude. While 419 these photometric distance modulus measurements are not extremely 420 precise (see below), they provide a constraint on the distance is used 421 in our analysis of the astrometry (see Section~\ref{sec:astrometry}). 422 423 \subsection{Other Tables} 424 425 Data from GPC1 (and other cameras processed by the IPP) are loaded 426 into DVO in units \code{smf} files generated by the Camera calibration 427 stage. As described above, these files contain all measurements from 428 a complete exposure, with measurements from each chip grouped into 429 separate FITS tables. When these measurements are loaded into the 430 \code{Measure} and similar tables, a subset of the information from 431 the chip header is used to populated a row in the DVO \code{Image} 432 table. This table contains one row for each chip known to DVO, with 433 information such as the filter (\code{photcode}), the exposure time, 434 the airmass, the astrometric calibration terms, the photometric 435 zero point, etc. For GPC1 and other mosaic cameras, an additional row 436 is defined to carry the projection and camera distortion elements of 437 the astrometry model. As chips are loaded into this table, they are 438 assigned an internal ID (a running sequence in the table). Images may 439 also be assigned an external ID: in the case of the GPC1 images, this 440 ID is defined by the processing mysql database and is guaranteed to be 441 unique within the processing system. 442 443 Other tables are used to track information used by the calibration 444 system. This includes the complete set of flat-field corrections 445 determined by the photometry calibration analysis (see 446 Section~\ref{sec:relphot}) and the astrometric flat-field corrections 447 determined by the astrometry calibration analysis (see Section~\ref{sec:relastro}) 448 449 \section{IPP Data Processing Stages} 450 451 \subsection{Download from Summit} 164 452 165 453 As exposures are taken by the PS1 telescope \& camera system, the 60 … … 197 485 chips. 198 486 199 \s ection{Image Registration}487 \subsection{Image Registration} 200 488 201 489 Once chips for an exposure have all been downloaded, the exposure is … … 223 511 database tables (rawExp and rawImfile). 224 512 225 \s ection{Chip Processing}513 \subsection{Chip Processing} 226 514 227 515 The science analysis of an exposure begins with the processing of the … … 260 548 the processing monitor tool. 261 549 262 \s ection{Camera Calibration}550 \subsection{Camera Calibration} 263 551 264 552 After sources have been detected and measured for each of the chip, … … 300 588 monitoring system to visualize the data processing. 301 589 302 \s ection{Warp}590 \subsection{Warp} 303 591 304 592 Once astrometric and photometric calibrations have been performed, … … 316 604 available} from the image extraction tools \note{in DR2}. 317 605 318 \s ection{Stack}606 \subsection{Stack} 319 607 320 608 The skycell images generated by the Warp process are added together to … … 348 636 transients from a given season. 349 637 350 \s ection{Stack Photometry}638 \subsection{Stack Photometry} 351 639 352 640 The stack images are generated in the Stack stage of the IPP, but the … … 389 677 is used for the Camera and Stack calibration stages. 390 678 391 \s ection{Forced Warp Photometry}679 \subsection{Forced Warp Photometry} 392 680 393 681 Traditionally, projects which use multiple exposures to increase the … … 462 750 measurement as the signal-to-noise increases by $\sqrt{N}$. 463 751 464 \s ection{Forced Galaxy Models}752 \subsection{Forced Galaxy Models} 465 753 466 754 The convolved galaxy models are also re-measured on the warp images by … … 515 803 and objects}. 516 804 517 \s ection{Difference Images}805 \subsection{Difference Images} 518 806 519 807 Two of the primary science drivers for the Pan-STARRS system are the … … 548 836 diffs'. 549 837 550 \begin{verbatim} 551 DVO Ingest 552 Calibration 553 IPP to PSPS 554 PSPS Load & Merge 555 \end{verbatim} 838 \subsection{Addstar : DVO Ingest} 839 840 \subsection{Calibration Operations} 841 842 \subsection{IPP to PSPS} 843 844 \subsection{PSPS Load \& Merge} 845 846 \section{IPP Hardware Systems} 847 848 \subsection{Kihei Processing Cluster} 849 850 \subsection{Los Alamos National Labs} 851 852 \subsection{UH Cray Cluster} 556 853 557 854 \end{document} -
trunk/doc/release.2015/ps1.calibration/calibration.tex
r39845 r39846 503 503 the data from the exposure are loaded into the DVO database. 504 504 505 \section{DVO Description}506 507 The Pan-STARRS IPP uses an internal database system, distinct from the508 publically visible database system, to determine the association509 between multiple detections of the same astronomical object and as510 part of the astrometric and photometric calibration process. This511 database system, called the ``Desktop Virtual Observatory'' (DVO) was512 developed originally for the LONEOS project, and used as part of the513 CFHT Elixir system (Magnier \& Cuillandre REF). The capabilities of514 this databasing system have been somewhat expanded for the Pan-STARRS515 context.516 517 One of the main purposes of the DVO system is to define the518 relationship between individual detections of an astronomical object519 and the definition of that object. Before describing the database520 schema, we will discuss the process by which detections are associated521 with objects. New detections are generally added to the database in a522 group associated with, for example, an image from the GPC1 camera. As523 new detections are loaded, they are compared to the objects already524 stored in the database. If an object is already found in the database525 within the match radius, the new detection is associated to that526 object. If more than one object exists within the database, the527 detection is associated with the closest object.528 529 Detections in DVO have a special piece of metadata called the530 \code{photcode} which identifies the source of the measurement. A531 \code{photcode} has a name which in general consists of the name of532 the camera or telescope (e.g., GPC1 or 2MASS), the name (or short-hand533 name) of the filter used for the measurement (e.g., $g$), and an534 identifier for the detector, if not unique (e.g., XY01 for GPC1).535 Along with each name, there is a numerical value for the photcode. A536 table within the DVO system, \code{Photcode}, lists the photcoes and537 defines a number of additional pieces of information for each538 photcode. These include the nominal zero point and airmass slope, as539 well as color trends to transform a measurement in the specific540 photcode to a common system. There are 3 classes of photcodes defined541 within the DVO system. Those photcodes associated with detections542 from an image loaded into the database system are called \code{DEP}543 photcodes. There are also photcodes associated with the average544 photometry values, called SEC photcodes. There are also those545 measurements which come from external data sources for which DVO does546 not have any information to determine a calibration (e.g.,547 instrumental magnitudes and detector coordinates). These are548 measurements are reference values and are assigned REF photcodes.549 550 In the implementation of DVO used for the PV3 calibration analysis,551 the database tables are stored on disk using binary FITS tables. Each552 type of database table is stored as a separate file, or a collection553 of files for table which are spatially partitioned. The binary FITS554 tables may be optionally compressed using the (to date) experimental555 FITS binary table compression strategy outlined by REF. In this556 compression scheme, using a strategy similar to that used for FITS557 image compression (REF), the data stored in the binary table is558 compressed and stored in the 'HEAP' section of the FITS table. In559 brief, each column in the FITS table is compressed as one (or more)560 blocks. The standard fields which describe the data column format561 (e.g., TFORM1) are replaced with columns which describe the location562 and size of the compressed data in the HEAP section; the information563 about the uncompressed data is moved to a field with 'Z' prepended564 (e.g., ZFORM1) and an additional field is added to define the565 compression algorithm (e.g., ZCTYP1). The column names (e.g., TTYPE1)566 and units (e.g., TUNIT1) are retained in their original form. The567 compression algorithm can treat the entire column as a single block of568 data, or it may be broken into a number of chunks, each compressed in569 turn (this must be the same for all columns). Additional header570 information is added to describe the block sizes and infomation needed571 to describe the HEAP data section. The compression algorithms572 currently defined consist of the GZIP, RICE, PLIO, and HCOMPRESS573 (REFS). For GZIP, the compression algorithm may transpose the byte574 order before compression: for floating point data of a similiar575 dynamic range, this choice may allow for better compression as each576 byte in the 4 or 8 byte floating point value is more likely to be577 similar to the same byte in other rows than to the other bytes of the578 same row value. This option is called \code{GZIP_2} in the FITS579 standard, as opposed to the standard order, \code{GZIP_1}. The DVO580 system can be set to specify the compression options for each column581 in the tables. In practice, we have chosen a default in which582 floating point numbers used \code{GZIP_2}, character strings use583 \code{GZIP_1}, integers use \code{RICE}.584 585 \subsubsection{Sky Partition}586 587 DVO includes two major classes of database tables: those containing588 information directly about astronomical objects in the sky and those589 containing other supporting information. The object-related tables590 are partitioned on the basis of position in the sky: objects within a591 region bounded by lines of constant RA,DEC are contained in a specific592 file. The boundaries and the associated partition names are stored in593 one of the supporting tables, \code{SkyTable}. This table contains594 the definitions of the boundaries for each sky region (\code{R_MIN},595 \code{R_MAX}, \code{D_MIN}, \code{D_MAX}), the name of the sky region,596 an ID (\code{INDEX}, equal to the sequence number of the region in the597 table), and index entries to enable navigation within the table. The598 regions are defined in a hierarchical sense, with a series of levels599 each containing a finer mesh of regions covering the sky.600 601 In the default used by the PV3 DVO, the partitioning scheme is based602 on the one used by the Hubble Space Telescope Guide Star Catalog603 files. Level 0 is a single region covering the full sky. Level 1604 divides the sky in Declination into bands 7.5\degree\ high. Level 2605 subdivides these Declination bands in the RA direction, with spacing606 related to the stellar density. Level 3 divides these RA chunks into607 4 - 8 smaller partitions. This level exactly matches the HST GSC608 layout, and uses the same naming convention to identify the609 partitions: n0000/0000, etc. \note{more on the names?}. Level 4610 further divides these regions by a factor of 16. In the611 \code{SkyTable}, a region at one level has a pointer to its parent612 region (the one which contains it) and a sequence pointing to its613 children (regions it contains). The \code{SkyTable} enables fast614 lookups of the on-disk partitions which map to a specific coordinate615 on the sky. In general, a single DVO will have the full sky616 represented with tables at a single level, though it is possible for617 mixed levels to be used, this mode is not well tested. For the PV3618 master database, the partitioning at the 5th level results in \approx619 150,000 regions to cover the full sky, of which \approx 110,000 are620 used for the PV3 $3\pi$ data. The densest portions of the bulge621 contain at most \approx 300k astronomical objects in the database622 files, with an associated maximum of 30M measurements in these files.623 With the compression scheme described above, this makes the largest624 database files \approx 3GB, which can be loaded into memory in 30625 seconds on our partition machines.626 627 The DVO software system allows the tables which are partitioned across628 the sky to also be distributed across multiple computers, which we629 call partition hosts. A single file defines the names of these630 partition hosts and the location of the database partition on the631 disks of that machine. The \code{SkyTable} contains elements to632 define by ID the parition host to which a partitioned set of tables633 has been assigned. Operations which query the database, or perform634 other operations on the database, are aware of the partitioning scheme635 and will launch their operations as remote processes on the machines636 which contain the data they need. For example, a query for data from637 a small region will launch sub-query operations on the machines which638 contain the data overlapping the region of interest. These remote639 query operations will select the database information which matches640 the query request (i.e., applying restrictions as defined) and return641 to the master process the results. The results from the various642 partition hosts are then merged into a single result by the master643 process. This parallelization is critical to querying and644 manipulating the enormous database on a reasonable timescale.645 646 \subsection{Tables which describe objects}647 648 Two tables carry the most important information about the astronomical649 objects in the database: Average and SecFilt. These two tables650 specify the main average properties of the astronomical object. The651 Average table includes the astrometric information ($\alpha, \delta,652 \mu \alpha, \mu \delta, \pi$) and associated errors, data quality653 flags for each object, links to the other tables, and a number of IDs,654 with one row for each astronomical object. \note{go into complete655 detail here on the IDs?}. The SecFilt table\footnote{The name656 SecFilt is a bit of a historical misnomer: originally, DVO was657 designed for a monochromatic survey and data for a single658 photometric band was maintained in the Average table. Later, DVO659 was adapted to a multifilter system and additional filters were660 added to the SecFilt (Secondary Filter) table. Eventually, the661 schema was normalized and all photometric data placed in SecFilt,662 with the Primary filter concept being dropped, but the name has663 since stuck.} contains average photometric information for a664 collection of filters. A given DVO instance has a specified set of665 filters for which average photometry is stored in the SecFilt table.666 The number and choice of filters for the SecFilt may be modified by667 the database administrator fairly easily, but the process of updating668 the database is somewhat expensive (\approx 24 hours for the current669 PV3 instance). Thus the choice is semi-static for a given DVO670 instance. In the case of the PV3 DVO instance, 9 average bandpasses671 are defined: {\it g, r, i, z, y, J, H, K, w}. The SecFilt table672 contains one row for each filter for each object, thus the PV3 DVO673 contains 9 times as many rows as the Average table. The order of the674 table is fixed in relation to the Average table: row $i$ of Average675 defines the object with photometry contained in rows $9i \rightarrow 9i +676 8$ ($i$ is zero counting).677 678 The individual measurements of the astronomical objects are carried in679 the table \code{Measure}. This table lists the values measured by680 \code{psphot} for each chip, warp, or stack image. This includes the681 instrumental magnitudes for the PSF, aperture, and Kron photometry;682 raw position (Xccd, Yccd) and second moments (Mxx, Myy, Mxy), along683 with shape parameters of the PSF model at the position of the object684 (FWx, FWy, theta). This table also includes metadata such as the685 exposure time, the date \& time of the observation, airmass, azimuth,686 and information specifying the filter \note{describe the photcodes}.687 The \code{Measure} table also carried the calibration magnitude offsts688 ($M_{\rm cal}$ and $M_{\rm flat}$ discussed below) and the689 astrometrically calibrated position. Astrometric offsets for several690 systematic corrections discussed below are also defined for each691 measurement. Since stacks and forced warp photometry may have692 non-significant values, the table is somewhat de-normalized in that it693 also carried instrumental flux values for the PSF, aperture, and Kron694 photometry.695 696 In the \code{Measure} table, there are three fields which provide two697 independent links from the specific measurement to the associated698 object: \code{Measure.catID} specifies the spatial partition to which699 the measurement belongs; \code{Measure.objID} specifies to which entry700 in the \code{Average} table the measurement belongs. These two 32 bit701 fields can thus be combined into a single 64 bit unique ID for all702 objects in the database. In addition, the field \code{Measure.averef}703 specifies the row number in the \code{Average} table of the associated704 object. The \code{Measure} table may be unsorted, in which case it is705 slow to find the measurements associated with a specific object (a706 full table scan is required). After the table is sorted, the707 \code{Measure} rows for a given object are grouped together. In the708 case, the fields \code{Average.measureOffset} and709 \code{Average.Nmeasure} define an index for the code to jump to the710 list of measurements for a single object. The field711 \code{Measure.imageID} defines the link from the measurement to the712 image which supplied the measurement.713 714 \note{some discussion of the db construction, addstar, dvomerge, etc?}715 716 For the warp images, we also measure the weak lensing KSB parameters717 related to the shear and smear tensors. These measurements are stored718 in the \code{Lensing} table, along with the radial aperture fluxes for719 radii numbers 5, 6, \& 7 (XX, XX, XX arcsec). This table contains one720 row for every warp row. Similarly to the \code{Measure} table, the fields721 \code{objID}, \code{catID}, and \code{averef} define links from the722 \code{Lensing} table to the \code{Average} table. In a similar723 fashion, the fields \code{Average.lensingOffset} and724 \code{Average.Nlensing} are the index into the sorted \code{Lensing}725 table entries. \note{discuss failure of the Lensing to Measure726 indexing}727 728 The values stored in the \code{Lensing} table are used to calculate729 average values for each of these types of measurements in each730 filter. The \code{Lensobj} table stores the averaged KSB and radial731 aperture photometry for each of the 5 filters \grizy. This table732 contains one entry per object per filter. The table is not generally733 stored unsorted as it is calculated after the full database is734 populated. The link from \code{Average} to \code{Lensobj} is defined735 by the fields \code{Average.offsetLensobj} and736 \code{Average.Nlensobj}. Each \code{Lensobj} row also includes the737 photcode (filter) for which the average lensing (and radial aperture)738 properties have been calculated.739 740 The \code{Galphot} table stores the results of the forced galaxy741 fitting analysis for each object that has been measured. This table742 contains one row per filter and model type (Sersic, Exponential,743 DeVaucouleur) if forced galaxy models have been calculate for the744 object. \note{need to expand on this somewhat}745 746 The \code{Starpar} table carries measurements provide by Greg Green \&747 Eddie Schlafly from their analysis of the SED of objects in the PS1748 $3\pi$ data, using the \note{PV1?} version of the analysis (Green et749 al REF). In this work, the goal was a 3D model of the dust in the750 Galaxy based on Pan-STARRS (\note{and WISE \& 2MASS?}) photometry. As751 part of this analysis, the authors fit the SEDs of all \note{stellar?}752 sources with stellar models including free parameters of extinction,753 distance modulus, metallicity, and absolute r-band magnitude. While754 these photometric distance modulus measurements are not extremely755 precise (see below), they provide a constraint on the distance is used756 in our analysis of the astrometry (see Section~\ref{sec:astrometry}).757 758 \subsection{Other Tables}759 760 Data from GPC1 (and other cameras processed by the IPP) are loaded761 into DVO in units \code{smf} files generated by the Camera calibration762 stage. As described above, these files contain all measurements from763 a complete exposure, with measurements from each chip grouped into764 separate FITS tables. When these measurements are loaded into the765 \code{Measure} and similar tables, a subset of the information from766 the chip header is used to populated a row in the DVO \code{Image}767 table. This table contains one row for each chip known to DVO, with768 information such as the filter (\code{photcode}), the exposure time,769 the airmass, the astrometric calibration terms, the photometric770 zero point, etc. For GPC1 and other mosaic cameras, an additional row771 is defined to carry the projection and camera distortion elements of772 the astrometry model. As chips are loaded into this table, they are773 assigned an internal ID (a running sequence in the table). Images may774 also be assigned an external ID: in the case of the GPC1 images, this775 ID is defined by the processing mysql database and is guaranteed to be776 unique within the processing system.777 778 Other tables are used to track information used by the calibration779 system. This includes the complete set of flat-field corrections780 determined by the photometry calibration analysis (see781 Section~\ref{sec:relphot}) and the astrometric flat-field corrections782 determined by the astrometry calibration analysis (see Section~\ref{sec:relastro})783 784 505 \section{Photometry Calibration} 785 506
Note:
See TracChangeset
for help on using the changeset viewer.
