- Timestamp:
- Dec 6, 2016, 5:29:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/release.2015/ps1.calibration/calibration.tex
r39837 r39838 458 458 detection is associated with the closest object. 459 459 460 * Object-related tables 461 462 * Other tables 463 464 * Table storag 460 In the implementation of DVO used for the PV3 calibration analysis, 461 the database tables are stored on disk using binary FITS tables. Each 462 type of database table is stored as a separate file, or a collection 463 of files if the table is spatially partitioned. The binary FITS 464 tables may be optionally compressed using the (to date) experimental 465 FITS binary table compression strategy outlined by REF. In this 466 compression scheme, using a strategy similar to that used for FITS 467 image compression (REF), the data stored in the binary table is 468 compressed and stored in the 'HEAP' section of the FITS table. In 469 brief, each column in the FITS table is compressed as one (or more) 470 blocks. The standard fields which describe the data column format 471 (e.g., TFORM1) are replaced with columns which describe the location 472 and size of the compressed data in the HEAP section; the information 473 about the uncompressed data is moved to a field with 'Z' prepended 474 (e.g., ZFORM1) and an additional field is added to define the 475 compression algorithm (e.g., ZCTYP1). The column names (e.g., TTYPE1) 476 and units (e.g., TUNIT1) are retained in their original form. The 477 compression algorithm can treat the entire column as a single block of 478 data, or it may be broken into a number of chunks, each compressed in 479 turn (this must be the same for all columns). Additional header 480 information is added to describe the block sizes and infomation needed 481 to describe the HEAP data section. The compression algorithms 482 currently defined consist of the GZIP, RICE, PLIO, and HCOMPRESS 483 (REFS). For GZIP, the compression algorithm may transpose the byte 484 order before compression: for floating point data of a similiar 485 dynamic range, this choice may allow for better compression as each 486 byte in the 4 or 8 byte floating point value is more likely to be 487 similar to the same byte in other rows than to the other bytes of the 488 same row value. This option is called \code{GZIP_2} in the FITS 489 standard, as opposed to the standard order, \code{GZIP_1}. The DVO 490 system can be set to specify the compression options for each column 491 in the tables. In practice, we have chosen a default in which 492 floating point numbers used \code{GZIP_2}, character strings use 493 \code{GZIP_1}, integers use \code{RICE}. 494 495 \subsection{Tables which describe objects} 496 497 Two tables carry the most important information about the astronomical 498 objects in the database: Average and SecFilt. These two tables 499 specify the main average properties of the astronomical object. The 500 Average table includes the astrometric information ($\alpha, \delta, 501 \mu \alpha, \mu \delta, \pi$) and associated errors, data quality 502 flags for each object, links to the other tables, and a number of IDs, 503 with one row for each astronomical object. \note{go into complete 504 detail here on the IDs?}. The SecFilt table\footnote{The name 505 SecFilt is a bit of a historical misnomer: originally, DVO was 506 designed for a monochromatic survey and data for a single 507 photometric band was maintained in the Average table. Later, DVO 508 was adapted to a multifilter system and additional filters were 509 added to the SecFilt (Secondary Filter) table. Eventually, the 510 schema was normalized and all photometric data placed in SecFilt, 511 with the Primary filter concept being dropped, but the name has 512 since stuck.} contains average photometric information for a 513 collection of filters. A given DVO instance has a specified set of 514 filters for which average photometry is stored in the SecFilt table. 515 The number and choice of filters for the SecFilt may be modified by 516 the database administrator fairly easily, but the process of updating 517 the database is somewhat expensive (\approx 24 hours for the current 518 PV3 instance). Thus the choice is semi-static for a given DVO 519 instance. In the case of the PV3 DVO instance, 9 average bandpasses 520 are defined: {\it g, r, i, z, y, J, H, K, w}. The SecFilt table 521 contains one row for each filter for each object, thus the PV3 DVO 522 contains 9 times as many rows as the Average table. The order of the 523 table is fixed in relation to the Average table: row $i$ of Average 524 defines the object with photometry contained in rows $9i \rtarrow 9i + 525 8$ ($i$ is zero counting). 526 527 The individual measurements of the astronomical objects are carried in 528 the table \code{Measure}. This table lists the values measured by 529 \code{psphot} for each chip, warp, or stack image. This includes the 530 instrumental magnitudes for the PSF, aperture, and Kron photometry; 531 raw position (Xccd, Yccd) and second moments (Mxx, Myy, Mxy), along 532 with shape parameters of the PSF model at the position of the object 533 (FWx, FWy, theta). This table also includes metadata such as the 534 exposure time, the date \& time of the observation, airmass, azimuth, 535 and information specifying the filter \note{describe the photcodes}. 536 The \code{Measure} table also carried the calibration magnitude offsts 537 ($M_{\rm cal}$ and $M_{\rm flat}$ discussed below) and the 538 astrometrically calibrated position. Astrometric offsets for several 539 systematic corrections discussed below are also defined for each 540 measurement. Since stacks and forced warp photometry may have 541 non-significant values, the table is somewhat de-normalized in that it 542 also carried instrumental flux values for the PSF, aperture, and Kron 543 photometry. 544 545 In the \code{Measure} table, there are three fields which provide two 546 independent links from the specific measurement to the associated 547 object: \code{Measure.catID} specifies the spatial partition to which 548 the measurement belongs; \code{Measure.objID} specifies to which entry 549 in the \code{Average} table the measurement belongs. These two 32 bit 550 fields can thus be combined into a single 64 bit unique ID for all 551 objects in the database. In addition, the field \code{Measure.averef} 552 specifies the row number in the \code{Average} table of the associated 553 object. The \code{Measure} table may be unsorted, in which case it is 554 slow to find the measurements associated with a specific object (a 555 full table scan is required). After the table is sorted, the 556 \code{Measure} rows for a given object are grouped together. In the 557 case, the fields \code{Average.measureOffset} and 558 \code{Average.Nmeasure} define an index for the code to jump to the 559 list of measurements for a single object. The field 560 \code{Measure.imageID} defines the link from the measurement to the 561 image which supplied the measurement. 562 563 \note{some discussion of the db construction, addstar, dvomerge, etc?} 564 565 For the warp images, we also measure the weak lensing KSB parameters 566 related to the shear and smear tensors. These measurements are stored 567 in the \code{Lensing} table, along with the radial aperture fluxes for 568 radii numbers 5, 6, \& 7 (XX, XX, XX arcsec). This table contains one 569 row for every warp row. Similarly to the \code{Measure} table, the fields 570 \code{objID}, \code{catID}, and \code{averef} define links from the 571 \code{Lensing} table to the \code{Average} table. In a similar 572 fashion, the fields \code{Average.lensingOffset} and 573 \code{Average.Nlensing} are the index into the sorted \code{Lensing} 574 table entries. \note{discuss failure of the Lensing to Measure 575 indexing} 576 577 The values stored in the \code{Lensing} table are used to calculate 578 average values for each of these types of measurements in each 579 filter. The \code{Lensobj} table stores the averaged KSB and radial 580 aperture photometry for each of the 5 filters \grizy. This table 581 contains one entry per object per filter. The table is not generally 582 stored unsorted as it is calculated after the full database is 583 populated. The link from \code{Average} to \code{Lensobj} is defined 584 by the fields \code{Average.offsetLensobj} and 585 \code{Average.Nlensobj}. Each \code{Lensobj} row also includes the 586 photcode (filter) for which the average lensing (and radial aperture) 587 properties have been calculated. 588 589 The \code{Galphot} table stores the results of the forced galaxy 590 fitting analysis for each object that has been measured. This table 591 contains one row per filter and model type (Sersic, Exponential, 592 DeVaucouleur) if forced galaxy models have been calculate for the 593 object. \note{need to expand on this somewhat} 594 595 The \code{Starpar} table carries measurements provide by Greg Green \& 596 Eddie Schlafly from their analysis of the SED of objects in the PS1 597 $3\pi$ data, using the \note{PV1?} version of the analysis (Green et 598 al REF). In this work, the goal was a 3D model of the dust in the 599 Galaxy based on Pan-STARRS (\note{and WISE \& 2MASS?}) photometry. As 600 part of this analysis, the authors fit the SEDs of all \note{stellar?} 601 sources with stellar models including free parameters of extinction, 602 distance modulus, metallicity, and absolute r-band magnitude. While 603 these photometric distance modulus measurements are not extremely 604 precise (see below), they provide a constraint on the distance is used 605 in our analysis of the astrometry (see Section~\ref{sec:astrometry}). 606 607 \subsubsection{Sky Partition} 608 609 \note{SkyTable} 610 611 \subsection{Other Tables} 612 613 \note{Image Table} 614 \note{Photcode Table} 615 \note{FlatCorrection} 616 \note{AstromOffsets} 465 617 466 618 \section{Photometry Calibration}
Note:
See TracChangeset
for help on using the changeset viewer.
