LSSTApplications
17.0+103,17.0+11,17.0+61,18.0.0+13,18.0.0+25,18.0.0+5,18.0.0+52,18.0.0-4-g68ffd23,18.1.0-1-g0001055+8,18.1.0-1-g03d53ef+1,18.1.0-1-g1349e88+28,18.1.0-1-g2505f39+22,18.1.0-1-g380d4d4+27,18.1.0-1-g5315e5e+1,18.1.0-1-g5e4b7ea+10,18.1.0-1-g7e8fceb+1,18.1.0-1-g85f8cd4+23,18.1.0-1-g9a6769a+13,18.1.0-1-ga1a4c1a+22,18.1.0-1-gd55f500+17,18.1.0-12-g42eabe8e+10,18.1.0-14-gd04256d+15,18.1.0-16-g430f6a53+1,18.1.0-17-gd2166b6e4,18.1.0-18-gb5d19ff+1,18.1.0-2-gfbf3545+7,18.1.0-2-gfefb8b5+16,18.1.0-3-g52aa583+13,18.1.0-3-g62b5e86+14,18.1.0-3-g8f4a2b1+17,18.1.0-3-g9bc06b8+7,18.1.0-3-gb69f684+9,18.1.0-4-g1ee41a7+1,18.1.0-5-g6dbcb01+13,18.1.0-5-gc286bb7+3,18.1.0-6-g48bdcd3+2,18.1.0-6-gd05e160+9,18.1.0-7-gc4d902b+2,18.1.0-7-gebc0338+8,18.1.0-9-gae7190a+10,w.2019.38
LSSTDataManagementBasePackage
|
A thin C++ wrapper around astrometry.net's solver_t struct. More...
#include <astrometry_net.h>
Public Member Functions | |
Solver () | |
~Solver () | |
lsst::afw::table::SimpleCatalog | getCatalog (std::vector< index_t *> inds, lsst::geom::SpherePoint const &ctrCoord, lsst::geom::Angle const &radius, const char *idCol, std::vector< std::string > const &filterNameList, std::vector< std::string > const &magColList, std::vector< std::string > const &magErrColList, const char *starGalCol, const char *varCol, bool uniqueIds=true) |
Load reference objects in a region of the sky described by a center coordinate and a radius. More... | |
std::shared_ptr< lsst::daf::base::PropertyList > | getSolveStats () const |
std::shared_ptr< lsst::afw::geom::SkyWcs > | getWcs () |
bool | didSolve () const |
void | run (double cpulimit) |
std::pair< double, double > | getQuadSizeRangeArcsec () const |
void | addIndices (std::vector< index_t *> inds) |
Add indices to the solver. More... | |
void | setParity (bool flipped) |
Set parity to flipped (if true) or normal (if false) More... | |
void | setMatchThreshold (double threshold) |
void | setPixelScaleRange (double low, double high) |
void | setRaDecRadius (double ra, double dec, double radius_deg) |
void | setImageSize (int width, int height) |
void | setMaxStars (int maxStars) |
void | setStars (lsst::afw::table::SourceCatalog const &srcs, int x0, int y0) |
A thin C++ wrapper around astrometry.net's solver_t struct.
This provide memory management and methods used by LSST.
Definition at line 120 of file astrometry_net.h.
|
explicit |
Definition at line 63 of file astrometry_net.cc.
lsst::meas::extensions::astrometryNet::Solver::~Solver | ( | ) |
Definition at line 65 of file astrometry_net.cc.
void lsst::meas::extensions::astrometryNet::Solver::addIndices | ( | std::vector< index_t *> | inds | ) |
Add indices to the solver.
The indices are bare pointers whose memory is managed by the caller. Typically the indices are owned by a MultiIndex object owned by the caller.
Definition at line 181 of file astrometry_net.cc.
|
inline |
Definition at line 171 of file astrometry_net.h.
lsst::afw::table::SimpleCatalog lsst::meas::extensions::astrometryNet::Solver::getCatalog | ( | std::vector< index_t *> | inds, |
lsst::geom::SpherePoint const & | ctrCoord, | ||
lsst::geom::Angle const & | radius, | ||
const char * | idCol, | ||
std::vector< std::string > const & | filterNameList, | ||
std::vector< std::string > const & | magColList, | ||
std::vector< std::string > const & | magErrColList, | ||
const char * | starGalCol, | ||
const char * | varCol, | ||
bool | uniqueIds = true |
||
) |
Load reference objects in a region of the sky described by a center coordinate and a radius.
[in] | inds | list of star kd-trees from astrometry.net |
[in] | ctrCoord | center of search region |
[in] | radius | search radius |
[in] | idCol | name of ID column in astrometry.net data |
[in] | filterNameList | names of filters in astrometry.net data |
[in] | magColList | names of magnitude columns in astrometry.net data |
[in] | magErrColList | names of magnitude uncertainty (sigma) columns in astrometry.net data |
[in] | starGalCol | name of "starGal" column (true if object is a star) in astrometry.net data |
[in] | varCol | name of "var" column (true if brightness is variable) in astrometry.net data |
[in] | uniqueIds | if true then only return unique IDs (the first of each seen) |
Returned schema:
Definition at line 72 of file astrometry_net.cc.
|
inline |
Definition at line 177 of file astrometry_net.h.
std::shared_ptr< lsst::daf::base::PropertyList > lsst::meas::extensions::astrometryNet::Solver::getSolveStats | ( | ) | const |
Definition at line 100 of file astrometry_net.cc.
std::shared_ptr< lsst::afw::geom::SkyWcs > lsst::meas::extensions::astrometryNet::Solver::getWcs | ( | ) |
Definition at line 141 of file astrometry_net.cc.
void lsst::meas::extensions::astrometryNet::Solver::run | ( | double | cpulimit | ) |
Definition at line 159 of file astrometry_net.cc.
void lsst::meas::extensions::astrometryNet::Solver::setImageSize | ( | int | width, |
int | height | ||
) |
Definition at line 212 of file astrometry_net.cc.
|
inline |
Definition at line 198 of file astrometry_net.h.
|
inline |
Definition at line 213 of file astrometry_net.h.
|
inline |
Set parity to flipped (if true) or normal (if false)
Definition at line 194 of file astrometry_net.h.
|
inline |
Definition at line 202 of file astrometry_net.h.
|
inline |
Definition at line 207 of file astrometry_net.h.
void lsst::meas::extensions::astrometryNet::Solver::setStars | ( | lsst::afw::table::SourceCatalog const & | srcs, |
int | x0, | ||
int | y0 | ||
) |
Definition at line 219 of file astrometry_net.cc.