Skip to content

Commit

Permalink
Rename x/ySigma to x/yErr
Browse files Browse the repository at this point in the history
  • Loading branch information
r-owen committed Aug 1, 2018
1 parent d2199b1 commit 673a90a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions python/lsst/jointcal/testUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ def createFakeCatalog(num, bbox, instFluxKeyName, skyWcs=None, refCat=False):
schema = lsst.afw.table.SourceTable.makeMinimalSchema()
# centroid
centroidKey = lsst.afw.table.Point2DKey.addFields(schema, "centroid", "centroid", "pixels")
xErrKey = schema.addField("centroid_xSigma", type="F")
yErrKey = schema.addField("centroid_ySigma", type="F")
xErrKey = schema.addField("centroid_xErr", type="F")
yErrKey = schema.addField("centroid_yErr", type="F")
# shape
shapeKey = lsst.afw.table.QuadrupoleKey.addFields(schema, "shape", "",
lsst.afw.table.CoordinateType.PIXEL)
Expand Down
4 changes: 2 additions & 2 deletions src/CcdImage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ std::ostream &operator<<(std::ostream &out, CcdImageKey const &key) {
void CcdImage::loadCatalog(afw::table::SourceCatalog const &catalog, std::string const &fluxField) {
auto xKey = catalog.getSchema().find<double>("slot_Centroid_x").key;
auto yKey = catalog.getSchema().find<double>("slot_Centroid_y").key;
auto xsKey = catalog.getSchema().find<float>("slot_Centroid_xSigma").key;
auto ysKey = catalog.getSchema().find<float>("slot_Centroid_ySigma").key;
auto xsKey = catalog.getSchema().find<float>("slot_Centroid_xErr").key;
auto ysKey = catalog.getSchema().find<float>("slot_Centroid_yErr").key;
auto mxxKey = catalog.getSchema().find<double>("slot_Shape_xx").key;
auto myyKey = catalog.getSchema().find<double>("slot_Shape_yy").key;
auto mxyKey = catalog.getSchema().find<double>("slot_Shape_xy").key;
Expand Down
4 changes: 2 additions & 2 deletions src/MeasuredStar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ namespace jointcal {
/* Interesting fields of the stack catalogs :
'base_SdssCentroid_x'
'base_SdssCentroid_y'
'base_SdssCentroid_xSigma'
'base_SdssCentroid_ySigma'
'base_SdssCentroid_xErr'
'base_SdssCentroid_yErr'
We miss the xy uncertainty term.
We can cook it up from the sdss shape:
Expand Down

0 comments on commit 673a90a

Please sign in to comment.