IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39838


Ignore:
Timestamp:
Dec 6, 2016, 5:29:12 PM (10 years ago)
Author:
eugene
Message:

updates to cal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/release.2015/ps1.calibration/calibration.tex

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