Changeset 40028 for trunk/doc/release.2015/ps1.datasystem/datasystem.tex
- Timestamp:
- May 9, 2017, 11:03:29 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/release.2015/ps1.datasystem/datasystem.tex
r40027 r40028 1155 1155 1156 1156 % overview 1157 DVO tracks three main classes of information: 1) properties of1157 DVO tracks three main classes of information: 1) average properties of 1158 1158 astronomical objects; 2) measurements of those objects (from which the 1159 properties are derived); 3) properties of image which provided some or 1160 all of the measuements. Figure~\ref{fig:DVO_schema} illustrates the 1161 schematic relationship between these types of measurements. 1162 1163 In the most basic implementation, a collection of measurements from a 1164 set of images are loaded into DVO along with the metadata describing 1165 the images. The latter includes properties such as the exposure time, 1166 airmass, filter, time \& date of the exposure, etc. Critically, the 1167 image metadata includes an astrometric transformation relating the 1168 detection coordinate on the image to the coordinate on the sky. As 1169 the collection of measurements are loaded into DVO, the software 1170 constructs astronomical objects based on those detections. If 1171 images overlapped, multiple observations of the same astronomical 1172 object are grouped together. Thus, a single DVO database will contain 1173 a one-to-many relationship between the images and the measurements and 1174 a many-to-one relationship between the measurements and the derived 1175 astronomical objects. 1159 average properties are derived); 3) properties of image which provided 1160 some or all of the measuements. Figure~\ref{fig:DVO_schema} 1161 illustrates the schematic relationship between these types of 1162 measurements. 1163 1164 In the most basic implementation, a collection of measurements for 1165 detections from a set of images is loaded into DVO along with the 1166 metadata describing the images. The latter includes properties such 1167 as the exposure time, airmass, filter, time \& date of the exposure, 1168 etc. Critically, the image metadata includes an astrometric 1169 transformation relating the detection coordinate on the image to the 1170 coordinate on the sky. As the collection of measurements are loaded 1171 into DVO, the software constructs astronomical objects based on those 1172 detections. If images overlap, multiple observations of the same 1173 astronomical object are grouped together. Thus, a single DVO database 1174 will contain a one-to-many relationship between the images and the 1175 measurements and a many-to-one relationship between the measurements 1176 and the derived astronomical objects. 1176 1177 1177 1178 \subsubsection{DVO Schema} … … 1182 1183 astronomical objects; those which store information about individual 1183 1184 measurements; those which store information about the images; those 1184 which store supporting information. 1185 which store supporting information (metadata). 1186 1187 \subsubsubsection{Photcodes} 1188 1189 % photcodes 1190 DVO has a special metadata table called \ippdbcolumn{photcode} which 1191 identifies the photometry filter systems. Entries in this table are 1192 used to identify the source of measurements and images. Each row in 1193 the \ippdbcolumn{photcode} table includes a \ippdbcolumn{photcode} 1194 name, a unique numerical ID, and information about that photometry 1195 system. 1196 1197 There are 3 classes of photcodes defined within the DVO system. One 1198 class of photcodes define the filter systems for the average 1199 photometry measurements; these are called \ippmisc{SEC} photcodes. A 1200 second class of photcode is associated with measurements from a 1201 specific camera for which image metadata is available are called 1202 \ippmisc{DEP} photcodes. There are also those measurements which come 1203 from external data sources for which DVO does not have any information 1204 to determine a calibration (e.g., instrumental magnitudes and detector 1205 coordinates). These are measurements are reference values and are 1206 assigned \ippmisc{REF} photcodes. 1207 1208 The names for \ippmisc{SEC} photcodes are the names of filter systems, 1209 such as $g,r,i$ or $J,H,K$. For \ippmisc{DEP} and \ippmisc{REF} 1210 photcodes, the names are constructed from the name of a camera or 1211 telescope (e.g., GPC1 or 2MASS), the name (or short-hand name) of a 1212 filter (e.g., \gps{}), and an identifier for the detector, if not 1213 unique (e.g., XY01 for a GPC1 OTA). 1214 1215 Additional information is associated with each photcode to define the 1216 nominal zero point and airmass slope, as well as color trends to 1217 transform a measurement in the specific photcode to a common system. 1218 For example, a \ippmisc{DEP} photcode GPC1.g.X01 would have the 1219 nominal zero point (25.XX) and airmass term (0.14). The structures 1220 allow for individual chips to have different color terms to bring them 1221 to a common filter system. 1222 1223 Beyond the basic use, DVO has the ability to accept data from other 1224 kinds of data sources in which measurements are not clearly associated 1225 with specific images. DVO ingest methods are defined for several 1226 large-scale surveys for which the published data represent average 1227 properties derived from multiple measurements, and for which the 1228 measurement-to-image relationship is not provided. Ingests methods 1229 have been defined for example for 2MASS, WISE, Gaia, USNO-B. In each 1230 of these cases, the astrometric and photometric measurements are 1231 stored in the \ippdbtable{Measure} table, with the data source 1232 identified by the photcode of the measurement. 1185 1233 1186 1234 \subsubsubsection{Measurement Tables} 1187 1235 1188 The individual measurements of the astronomical objects are carried in 1189 the table \ippdbtable{Measure}. For measurements from PS1 in the PV3 1190 / DR1 database, this would be values determined by \ippprog{psphot} 1191 for each \ippstage{chip}, \ippstage{warp}, or \ippstage{stack} stage 1192 image. Measurements for other cameras processed by the IPP may also 1193 be included similarly in a DVO database. Measurements from other 1194 sources, such as SDSS, 2MASS, or WISE, can also be included in this 1195 table (see \S\ref{sec:other.photometry}.1236 In most cases, the individual measurements of the astronomical objects 1237 are carried in the table \ippdbtable{Measure}. For measurements from 1238 PS1 in the PV3 / DR1 database, this would consist of values determined 1239 by \ippprog{psphot} for each \ippstage{chip}, \ippstage{warp}, or 1240 \ippstage{stack} stage image. Measurements for other cameras 1241 processed by the IPP may also be included similarly in a DVO database. 1242 Measurements from other sources, such as SDSS, 2MASS, or WISE, can 1243 also be included in this table (see \S\ref{sec:other.photometry}. 1196 1244 1197 1245 The \ippdbtable{Measure} table includes the instrumental magnitudes … … 1208 1256 discussed below) and the astrometrically calibrated position. 1209 1257 Astrometric offsets for several systematic corrections discussed below 1210 are also defined for each measurement. Since stacks and forced warp 1211 photometry may have non-significant values, the table is somewhat 1212 de-normalized in that it also carries instrumental flux values for the 1258 are also defined for each measurement. Photometry from chip, warp, 1259 and stack are all placed in the same table with photcodes 1260 distinguishing the source \note{show example of stack and warp 1261 photcodes}. Since stacks and forced warp fluxes may have 1262 non-significant values, the table is somewhat de-normalized: it also 1263 carries both magnitudes as well as instrumental flux values for the 1213 1264 PSF, aperture, and Kron photometry. In this case, we have chosen to 1214 1265 trade storage space for computing time. 1215 1216 In the \ippdbtable{Measure} table, there are three fields which1217 provide two independent links from the specific measurement to the1218 associated object: \ippdbtable{Measure}.\ippdbcolumn{catID} specifies1219 the spatial partition to which the measurement belongs;1220 \ippdbtable{Measure}.\ippdbcolumn{objID} specifies to which entry in1221 the \ippdbtable{Average} table the measurement belongs. These two 321222 bit fields can thus be combined into a single 64 bit ID unique for all1223 objects in the database. \note{PSPS IDs} In addition, the field1224 \ippdbtable{Measure}.\ippdbcolumn{averef} specifies the row number in1225 the \ippdbtable{Average} table of the associated object. The1226 \ippdbtable{Measure} table may be unsorted, in which case it is slow1227 to find the measurements associated with a specific object (a full1228 table scan is required). After the table is sorted and indexed, the1229 \ippdbcolumn{Measure} rows for a given object are grouped together.1230 In this case, the fields1231 \ippdbtable{Average}.\ippdbcolumn{measureOffset} and1232 \ippdbcolumn{Average}.\ippdbcolumn{Nmeasure} define an index for the1233 code to jump to the list of measurements for a single object. The1234 field \ippdbtable{Measure}.\ippdbcolumn{imageID} defines the link from1235 the measurement to the image which supplied the measurement.1236 1266 1237 1267 For the warp images, we also measure the weak lensing KSB parameters … … 1250 1280 the Lensing to Measure indexing} 1251 1281 1252 \subsubsubsection{ Astronomical Objects}1282 \subsubsubsection{Object Tables} 1253 1283 1254 1284 % object -> detection … … 1328 1358 in our analysis of the astrometry \citep[][see]{magnier2017a}. 1329 1359 1330 \subsubsubsection{Other Tables} 1360 \note{move the next paragraph after Average is defined?} 1361 1362 In the \ippdbtable{Measure} table, there are three fields which 1363 provide two independent links from the specific measurement to the 1364 associated object: \ippdbtable{Measure}.\ippdbcolumn{catID} specifies 1365 the spatial partition to which the measurement belongs; 1366 \ippdbtable{Measure}.\ippdbcolumn{objID} specifies to which entry in 1367 the \ippdbtable{Average} table the measurement belongs. These two 32 1368 bit fields can thus be combined into a single 64 bit ID unique for all 1369 objects in the database. \note{PSPS IDs} In addition, the field 1370 \ippdbtable{Measure}.\ippdbcolumn{averef} specifies the row number in 1371 the \ippdbtable{Average} table of the associated object. The 1372 \ippdbtable{Measure} table may be unsorted, in which case it is slow 1373 to find the measurements associated with a specific object (a full 1374 table scan is required). After the table is sorted and indexed, the 1375 \ippdbcolumn{Measure} rows for a given object are grouped together. 1376 In this case, the fields 1377 \ippdbtable{Average}.\ippdbcolumn{measureOffset} and 1378 \ippdbcolumn{Average}.\ippdbcolumn{Nmeasure} define an index for the 1379 code to jump to the list of measurements for a single object. The 1380 field \ippdbtable{Measure}.\ippdbcolumn{imageID} defines the link from 1381 the measurement to the image which supplied the measurement. 1382 1383 \subsubsubsection{Image Tables} 1331 1384 1332 1385 Measurements which are loaded into DVO may be associated with a … … 1356 1409 %% \ippdbtable{Measure} and similar tables, 1357 1410 1411 \subsubsubsection{Other Tables} 1412 1413 Are there other tables to discuss? 1414 1358 1415 Other tables are used to track information used by the calibration 1359 1416 system. This includes the complete set of flat-field corrections … … 1361 1418 flat-field corrections determined by the astrometry calibration 1362 1419 analysis \citep[][see]{magnier2017a}. 1363 1364 \subsubsection{MISC INFO TO BE RE-ORGed}1365 1366 Beyond that basic use, DVO has the ability to accept data from other1367 kinds of data sources in which measurements are not clearly associated1368 with specific images. DVO ingest methods are defined for several1369 large-scale surveys for which the published data represent average1370 properties derived from multiple measurements, and for which the1371 measurement-to-image relationship is not provided. Ingets methods1372 have been defined for example for 2MASS, WISE, Gaia, USNO-B. In each1373 of these cases, the astrometric and photometric measurements are1374 stored in the \table{Measure} table, with the data source identified1375 by the photcode of the measurement.1376 1377 % photcodes1378 Detections in DVO have a special piece of metadata called the1379 \ippdbcolumn{photcode} which identifies the source of the measurement.1380 A \ippdbcolumn{photcode} has a name which in general consists of the1381 name of the camera or telescope (e.g., GPC1 or 2MASS), the name (or1382 short-hand name) of the filter used for the measurement (e.g.,1383 \gps{}), and an identifier for the detector, if not unique (e.g., XY011384 for a GPC1 OTA). Along with each name, there is a numerical value for1385 the photcode. A table within the DVO system, \ippdbtable{Photcode},1386 lists the photcodes and defines a number of additional pieces of1387 information for each photcode. These include the nominal zero point1388 and airmass slope, as well as color trends to transform a measurement1389 in the specific photcode to a common system. There are 3 classes of1390 photcodes defined within the DVO system. Those photcodes associated1391 with detections from an image loaded into the database system are1392 called \ippmisc{DEP} photcodes. There are also photcodes associated with1393 the average photometry values, called \ippmisc{SEC} photcodes. There are1394 also those measurements which come from external data sources for1395 which DVO does not have any information to determine a calibration1396 (e.g., instrumental magnitudes and detector coordinates). These are1397 measurements are reference values and are assigned \ippmisc{REF}1398 photcodes.1399 1400 \subsubsection{DVO Data Storage}1401 1402 % FITS table + compression1403 In the implementation of DVO used for the PV3 calibration analysis,1404 the database tables are stored on disk using binary FITS tables. Each1405 type of database table is stored as a separate file, or a collection1406 of files for table which are spatially partitioned. The binary FITS1407 tables are compressed using the (to date) experimental FITS binary1408 table compression strategy outlined by \note{REF}. Table compression1409 is in general an option in DVO; for the PV3 database, the large data1410 volume (70TB compressed) drove the decision to compress the tables.1411 1412 % FITS table compression details1413 The FITS binary table compression scheme uses a strategy similar to1414 that used for FITS image compression (\note{REF}). The binary tabular1415 data is compressed and stored in the 'HEAP' section of the FITS table1416 extension, with pointers to the compressed data stored in the regular1417 data section. Each column in the FITS table is compressed as one (or1418 more) blocks. The standard header keywords which describe the data1419 column format (e.g., TFORM1) are replaced with keywords which describe1420 the location and size of the compressed data in the HEAP section; the1421 information about the uncompressed data is moved to a keyword with 'Z'1422 prepended (e.g., ZFORM1) and an additional field is added to define1423 the compression algorithm (e.g., ZCTYP1). The column names (e.g.,1424 TTYPE1) and units (e.g., TUNIT1) are retained in their original form.1425 1426 % FITS table compression details1427 The compression algorithm can treat the entire column as a single1428 block of data, or it may be broken into a number of chunks, each1429 compressed in turn (this must be the same for all columns).1430 Additional header information is added to describe the block sizes and1431 infomation needed to describe the HEAP data section. The compression1432 algorithms currently defined consist of the GZIP, RICE, PLIO, and1433 HCOMPRESS (REFS). For GZIP, the compression algorithm may transpose1434 the byte order before compression: for floating point data of a1435 similiar dynamic range, this choice may allow for better compression1436 as each byte in the 4 or 8 byte floating point value is more likely to1437 be similar to the same byte in other rows than to the other bytes of1438 the same row value. This option is called \code{GZIP_2} in the FITS1439 standard, as opposed to the standard order, \code{GZIP_1}. The DVO1440 system can be set to specify the compression options for each column1441 in the tables. In practice, we have chosen a default in which1442 floating point numbers use \code{GZIP_2}, character strings use1443 \code{GZIP_1}, integers use \code{RICE}.1444 1420 1445 1421 \subsubsection{Sky Partition} … … 1515 1491 database on a reasonable timescale. 1516 1492 1517 \subsection{Addstar : DVO Ingest} 1493 \subsubsection{DVO Data Storage} 1494 1495 % FITS table + compression 1496 In the implementation of DVO used for the PV3 calibration analysis, 1497 the database tables are stored on disk using binary FITS tables. Each 1498 type of database table is stored as a separate file, or a collection 1499 of files for table which are spatially partitioned. The binary FITS 1500 tables are compressed using the (to date) experimental FITS binary 1501 table compression strategy outlined by \note{REF}. Table compression 1502 is in general an option in DVO; for the PV3 database, the large data 1503 volume (70TB compressed) drove the decision to compress the tables. 1504 1505 % FITS table compression details 1506 The FITS binary table compression scheme uses a strategy similar to 1507 that used for FITS image compression (\note{REF}). The binary tabular 1508 data is compressed and stored in the 'HEAP' section of the FITS table 1509 extension, with pointers to the compressed data stored in the regular 1510 data section. Each column in the FITS table is compressed as one (or 1511 more) blocks. The standard header keywords which describe the data 1512 column format (e.g., TFORM1) are replaced with keywords which describe 1513 the location and size of the compressed data in the HEAP section; the 1514 information about the uncompressed data is moved to a keyword with 'Z' 1515 prepended (e.g., ZFORM1) and an additional field is added to define 1516 the compression algorithm (e.g., ZCTYP1). The column names (e.g., 1517 TTYPE1) and units (e.g., TUNIT1) are retained in their original form. 1518 1519 % FITS table compression details 1520 The compression algorithm can treat the entire column as a single 1521 block of data, or it may be broken into a number of chunks, each 1522 compressed in turn (this must be the same for all columns). 1523 Additional header information is added to describe the block sizes and 1524 infomation needed to describe the HEAP data section. The compression 1525 algorithms currently defined consist of the GZIP, RICE, PLIO, and 1526 HCOMPRESS (REFS). For GZIP, the compression algorithm may transpose 1527 the byte order before compression: for floating point data of a 1528 similiar dynamic range, this choice may allow for better compression 1529 as each byte in the 4 or 8 byte floating point value is more likely to 1530 be similar to the same byte in other rows than to the other bytes of 1531 the same row value. This option is called \code{GZIP_2} in the FITS 1532 standard, as opposed to the standard order, \code{GZIP_1}. The DVO 1533 system can be set to specify the compression options for each column 1534 in the tables. In practice, we have chosen a default in which 1535 floating point numbers use \code{GZIP_2}, character strings use 1536 \code{GZIP_1}, integers use \code{RICE}. 1537 1538 \subsubsection{Addstar : DVO Ingest} 1518 1539 \label{sec:addstar} 1519 \note{CZW: This should be reviewed.}1520 1540 1521 1541 Upon completion of the processing of each stage, the results of the 1522 photometry analysis are isolated in a large number of individual 1523 catalogs, with little connection between the separate measurements of 1524 astronomical sources. Unifying these measurements in a DVO database 1525 is the purpose of the \ippstage{addstar} processing. The catalogs for 1526 the \ippstage{camera}, \ippstage{staticsky}, \ippstage{skycal}, 1527 \ippstage{fullforce}, and \ippstage{diff} are processed in this 1528 fashion, although not every measurement in each catalog are included 1529 in the final DVO that is constructed. 1530 1531 The construction of this final DVO is performed in a hierarchical 1532 process. The individual catalogs are added to a \ippmisc{minidvo}, 1542 photometry analysis are stored in a large number of individual catalog 1543 files as described in~\ref{XXX}. The data from these files are loaded 1544 into a DVO database to define the astronomical objects and to allow 1545 for calibration analysis. The program which loads the data into the 1546 DVO database is called \ippprog{addstar}, and is associated with the 1547 the \ippstage{addstar} processing stage. The measurement catalogs 1548 generated by the \ippstage{camera}, \ippstage{staticsky}, 1549 \ippstage{skycal}, \ippstage{fullforce}, and \ippstage{diff} stages 1550 are processed loaded into DVOs in this fashion, although not every 1551 measurement in each catalog are included in the master DVO that is 1552 constructed. For a particular re-processing version, a single master 1553 DVO is constructed for the positive image stages (\ippstage{camera}, 1554 \ippstage{staticsky}, \ippstage{skycal}, \ippstage{fullforce}) and a 1555 separate one is constructed for the difference image analysis stage 1556 results. 1557 1558 The construction of the master DVO is performed in a hierarchical 1559 fashion. The individual catalogs are added to a \ippmisc{minidvo}, 1533 1560 which is simply a DVO database defined over some subset of possible 1534 inputs. These \ippmisc{minidvos} are then merged into larger 1535 databases to construct the final completely catalog. \note{describe 1536 database tables} 1537 1538 Each catalog that is to be added to DVO has an entry created in the 1539 \ippdbtable{addRun} database table. This entry notes which 1561 inputs. These \ippmisc{minidvos} are then merged by stage into larger 1562 databases to construct a single master DVO database. In the process, 1563 an intermediate master DVO for each stage is generated. The 1564 \ippprog{dvomerge} program is responsible for merging two DVO 1565 databases together. In the merge, astronomical objects are joined 1566 together using essentially the same rules as those used to associated 1567 detections into objects. One exception: the match radius may be 1568 chosen to be a different size depending on the data source. For 1569 example, when WISE data is merged with PS1 data, as discussed below, a 1570 match radius of 3 arcseconds is used due to the large beam-size of the 1571 WISE telescope. 1572 1573 As of PV3, the process of merging \ippmisc{minidvos} is not highly 1574 automated, requiring manual attention. The generation of the 1575 \ippmisc{minidvos} is automated and managed by the \ippstage{addstar} 1576 stage. Each catalog that is to be added to DVO has an entry created 1577 in the \ippdbtable{addRun} database table. This entry notes which 1540 1578 \ippdbcolumn{stage} is the source of the catalog, and links to the 1541 1579 appropriate database table with the \ippdbcolumn{stage_id} field. As 1542 1580 some stages, such as the \ippstage{diff} stage, create more than a 1543 single catalog, multiple entries with the \ippdbcolumn{stage_id} are 1544 created, with the \ippdbcolumn{stage_extra1} field containing an 1545 index to the individual components. The catalog specified by the 1546 entry is added to the target \ippmisc{minidvo} by the 1547 \ippprog{addstar} program, \note{describe what's done?}. When this 1581 single catalog for a single exposure, multiple entries with the 1582 \ippdbcolumn{stage_id} are created, with the 1583 \ippdbcolumn{stage_extra1} field containing an index to the individual 1584 components. The catalog specified by the entry is added to the target 1585 \ippmisc{minidvo} by the \ippprog{addstar} program, with object 1586 constructed as described above (\S~\ref{sec:object}). When this 1548 1587 completes, an entry containing the statistics of the job is added to 1549 1588 the \ippdbtable{addProcessedExp} table. 1550 1589 1590 After the master DVO is contructed containing the PS1 data, data from 1591 other sources are also added to the database. For the PV3 DVO 1592 database, data was added from 2MASS, WISE, Gaia, and Tycho. These 1593 external data sources are added by first generating a DVO database 1594 containing just the particular data source, then using the same DVO 1595 merging method to merge the external data DVO into the PS1 master. 1596 1551 1597 \subsection{Calibration Operations} 1552 1598 \label{sec:calibration} 1599 1600 Once the master DVO database has been constructed, high-quality 1601 astrometric and photometric calibrations can be calculated. The 1602 details of the calibration analysis are discussed in 1603 \cite{Magnier2017c}. We present a brief summary here. 1604 1605 Astrometric calibration consists of measuring and correcting 1606 systematic structures along with improved calibration of the 1607 transformations from chip to focal plane coordinates based on relative 1608 astrometry. These steps are performed iteratively. First, the 1609 relative astrometry analysis generates an improved solution without 1610 correction for systematic effects. Next, systematic effects are 1611 measured by querying the DVO database to determine the residual 1612 astrometric error as a function of some parameters. In the case of 1613 the PV3 astrometry analysis, systematic errors have been determined as 1614 a function of position in the camera (essentially an astrometric 1615 flat-field correction), as a function of the brightness of the star 1616 (the so-called Koppenh\"offer effect, see~\ref{Magnier2017c}), and as 1617 a function of airmass and color (Differential chromatic refraction). 1618 Once the systematic errors have been measured, they are applied back 1619 to the measurements in the database. Within the DVO 1620 \ippdbtable{Measure} table, the different types of systematic effects 1621 are included as separate offsets (in chip pixel coordinates) for each 1622 measurement. A single ``corrected'' version of the chip pixel 1623 coordinates is stored in which the systematic offsets are combined 1624 with the raw pixel coordinates for each measurement. After the 1625 systematic effects have been applied to the database, relative 1626 astrometry is again performed this time using the corrected positions. 1627 1628 Photometric calibration involved the efforts of external collaborative 1629 analysis. 1630 1631 \begin{verbatim} 1632 * data goes to harvard 1633 * eddie determines the zero points for photometric data 1634 * zero points are returned to ifa 1635 * zero points are applied to the DVO 1636 * systematic errors are measured (high-resolution flat-field) 1637 * applied back to DVO 1638 * relative photometry measured for non-photometric data 1639 \end{verbatim} 1553 1640 1554 1641 \subsection{IPP to PSPS} 1555 1642 \label{sec:ipp2psps} 1556 1643 \note{Default to pointing to Flewelling et al 2017?} 1644 1645 \begin{verbatim} 1646 \end{verbatim} 1557 1647 1558 1648 \subsection{PSPS Load and Merge} … … 1779 1869 1780 1870 \begin{figure} 1781 \begin{center}1871 \begin{center} 1782 1872 \begin{verbatim} 1783 1873 task example.static.task
Note:
See TracChangeset
for help on using the changeset viewer.
