|
LSSTApplications
1.1.2+25,10.0+13,10.0+132,10.0+133,10.0+224,10.0+41,10.0+8,10.0-1-g0f53050+14,10.0-1-g4b7b172+19,10.0-1-g61a5bae+98,10.0-1-g7408a83+3,10.0-1-gc1e0f5a+19,10.0-1-gdb4482e+14,10.0-11-g3947115+2,10.0-12-g8719d8b+2,10.0-15-ga3f480f+1,10.0-2-g4f67435,10.0-2-gcb4bc6c+26,10.0-28-gf7f57a9+1,10.0-3-g1bbe32c+14,10.0-3-g5b46d21,10.0-4-g027f45f+5,10.0-4-g86f66b5+2,10.0-4-gc4fccf3+24,10.0-40-g4349866+2,10.0-5-g766159b,10.0-5-gca2295e+25,10.0-6-g462a451+1
LSSTDataManagementBasePackage
|
Classes | |
| class | DbMappingConfig |
Functions | |
| def | _pk |
| def | _k |
| def | makeMysqlCsvConfig |
| def | genericTableSql |
| def | _sourceIndexes |
| def | _colToField |
| def | _getMappingKw |
| def | sourceTableSql |
| def | objectTableSql |
| def | coaddSourceTableSql |
| def | forcedSourceTableSql |
Variables | |
| list | __all__ |
| dictionary | _dbType |
| list | _sourceMappings |
| list | _objectMappings |
| list | _filterMappings |
| list | _coaddSourceMappings |
| list | _forcedSourceMappings |
|
private |
|
private |
Return the list of C++ Source field names to create indexes on.
@param sourceProcessingConfig lsst.ap.cluster.SourceProcessingConfig;
describes source processing performed by
SourceAssoc.
Definition at line 236 of file schema.py.
| def lsst.datarel.schema.coaddSourceTableSql | ( | coaddName, | |
| schema, | |||
| sourceConversionConfig, | |||
| asView, | |||
| sourceProcessingConfig, | |||
| slotConfig, | |||
| measPrefix | |||
| ) |
Return a tuple of SQL statements (createStmt, loadStmt, sourceStmt)
for a coadd source table. The canonical table name is obtained by
captilizing the first letter of coaddName and appending 'Source'. The
run specific table name is derived from the former by prepending 'Run'.
createStmt : CREATE TABLE statement for the Run<CoaddName>Source table,
which includes all fields from the run-specific
lsst.afw.table.Schema for source tables output by the
pipelines.
loadStmt : LOAD DATA statement for the Run<CoaddName>Source table.
This is a format string; to generate valid SQL a fileName
must be supplied, e.g.:
loadStmt.format(fileName='source.csv')
sourceStmt : Map the Run<CoaddName>Source table to the canonical
<CoaddName>Source schema. This will either create a VIEW,
or INSERT into the materialized equivalent.
@param coaddName
Coadd name (camel-case), e.g. 'deep' or 'goodSeeing'.
@param schema
lsst.afw.table.Schema for coadd-sources.
@param sourceConversionConfig
lsst.ap.utils.CsvConversionConfig - parameters used for
C++ to CSV conversion.
@param asView
True if the canonical table should be constructed as a VIEW on
top of the run-specific table.
@param sourceProcessingConfig
lsst.ap.cluster.SourceProcessingConfig - parameters used to
denormalize the C++ schema produced by the pipeline.
@param slotConfig
lsst.meas.algorithms.SlotConfig - pipeline slot mappings.
@param measPrefix
Prefix for measurement field names.
Definition at line 630 of file schema.py.
| def lsst.datarel.schema.forcedSourceTableSql | ( | coaddName, | |
| schema, | |||
| sourceConversionConfig, | |||
| asView, | |||
| sourceProcessingConfig, | |||
| slotConfig, | |||
| measPrefix | |||
| ) |
Return a tuple of SQL statements (createStmt, loadStmt, sourceStmt)
for a forced source table. The canonical table name is obtained by
capitalizing the first letter of coaddName and appending 'ForcedSource'.
The run specific table name is derived from the former by prepending 'Run'.
createStmt : CREATE TABLE statement for the Run<CoaddName>ForcedSource
table, which includes all fields from the run-specific
lsst.afw.table.Schema for source tables output by the
pipelines.
loadStmt : LOAD DATA statement for the Run<CoaddName>ForcedSource
table. This is a format string; to generate valid SQL a
fileName must be supplied, e.g.:
loadStmt.format(fileName='source.csv')
sourceStmt : Map the Run<CoaddName>ForcedSource table to the canonical
<CoaddName>ForcedSource schema. This will either create a
VIEW, or INSERT into the materialized equivalent.
@param coaddName
Coadd name (camel-case), e.g. 'deep' or 'goodSeeing'.
@param schema
lsst.afw.table.Schema for forced sources.
@param sourceConversionConfig
lsst.ap.utils.CsvConversionConfig - parameters used for
C++ to CSV conversion.
@param asView
True if the canonical table should be constructed as a VIEW on
top of the run-specific table.
@param sourceProcessingConfig
lsst.ap.cluster.SourceProcessingConfig - parameters used to
denormalize the C++ schema produced by the pipeline.
@param slotConfig
lsst.meas.algorithms.SlotConfig - pipeline slot mappings.
@param measPrefix
Prefix for measurement field names.
Definition at line 795 of file schema.py.
| def lsst.datarel.schema.genericTableSql | ( | schema, | |
| csvConversionConfig, | |||
| indexedFields | |||
| ) |
Return a pair of SQL template strings (createStmt, loadStmt).
createStmt : a format string for the CREATE TABLE statement corresponding
to the given schema and desired indexes. To generate valid
SQL, tableName must be supplied, e.g.:
str.format(create, tableName='MyTable')
loadStmt : a format string for the corresponding LOAD DATA statement.
To generate valid SQL, tableName and fileName must be supplied,
e.g.:
str.format(load, tableName='MyTable', fileName='MyTable.csv')
Note that the generated LOAD statement will never REPLACE data, and assumes
that CSV files conform to the format returned by makeMysqlCsvConfig().
@param schema lsst.afw.table.Schema describing the C++ table
to map to a MySQL database table.
@param csvConversionConfig lsst.ap.utils.CsvConversionConfig describing
the C++ table to CSV file conversion options.
@param indexedFields List or set of C++ field names to create indexes on
Definition at line 91 of file schema.py.
| def lsst.datarel.schema.makeMysqlCsvConfig | ( | ) |
| def lsst.datarel.schema.objectTableSql | ( | schema, | |
| dbMappingConfig, | |||
| sourceAssocConfig, | |||
| filters | |||
| ) |
Return a tuple of SQL statements (createStmt, loadStmt, objectStmt)
for the Object table.
createStmt : CREATE TABLE statement for the RunObject table, which
includes all fields from the run-specific
lsst.afw.table.Schema for source cluster tables output
by the SourceAssoc pipeline.
loadStmt : LOAD DATA statement for the RunObject table. This is
a format string; to generate valid SQL a fileName must
be supplied, e.g.:
loadStmt.format(fileName='object.csv')
objectStmt : Map the RunObject table to the canonical Object schema.
This will either create a VIEW, or INSERT into its
materialized equivalent.
@param schema lsst.afw.table.Schema for objects (source clusters)
@param dbMappingConfig lsst.datarel.DbMappingConfig
@param sourceAssocConfig lsst.ap.tasks.sourceAssoc.SourceAssocConfig
@param filters Iterable over the filter names included in the
canonical Object table.
Definition at line 473 of file schema.py.
| def lsst.datarel.schema.sourceTableSql | ( | schema, | |
| dbMappingConfig, | |||
| sourceAssocConfig | |||
| ) |
Return a tuple of SQL statements (createStmt, loadStmt, sourceStmt)
for the Source table.
createStmt : CREATE TABLE statement for the RunSource table, which
includes all fields from the run-specific
lsst.afw.table.Schema for source tables output by the
pipelines.
loadStmt : LOAD DATA statement for the RunSource table. This is
a format string; to generate valid SQL a fileName must
be supplied, e.g.:
loadStmt.format(fileName='source.csv')
sourceStmt : Map the RunSource table to the canonical Source schema.
This will either create a VIEW, or INSERT into the
materialized equivalent.
@param schema lsst.afw.table.Schema for sources
@param dbMappingConfig lsst.datarel.DbMappingConfig
@param sourceAssocConfig lsst.ap.tasks.sourceAssoc.SourceAssocConfig
Definition at line 347 of file schema.py.
| list lsst.datarel.schema.__all__ |
| dictionary lsst.datarel.schema._dbType |
| list lsst.datarel.schema._filterMappings |
| list lsst.datarel.schema._objectMappings |
1.8.5