LSSTApplications
17.0+11,17.0+34,17.0+56,17.0+57,17.0+59,17.0+7,17.0-1-g377950a+33,17.0.1-1-g114240f+2,17.0.1-1-g4d4fbc4+28,17.0.1-1-g55520dc+49,17.0.1-1-g5f4ed7e+52,17.0.1-1-g6dd7d69+17,17.0.1-1-g8de6c91+11,17.0.1-1-gb9095d2+7,17.0.1-1-ge9fec5e+5,17.0.1-1-gf4e0155+55,17.0.1-1-gfc65f5f+50,17.0.1-1-gfc6fb1f+20,17.0.1-10-g87f9f3f+1,17.0.1-11-ge9de802+16,17.0.1-16-ga14f7d5c+4,17.0.1-17-gc79d625+1,17.0.1-17-gdae4c4a+8,17.0.1-2-g26618f5+29,17.0.1-2-g54f2ebc+9,17.0.1-2-gf403422+1,17.0.1-20-g2ca2f74+6,17.0.1-23-gf3eadeb7+1,17.0.1-3-g7e86b59+39,17.0.1-3-gb5ca14a,17.0.1-3-gd08d533+40,17.0.1-30-g596af8797,17.0.1-4-g59d126d+4,17.0.1-4-gc69c472+5,17.0.1-6-g5afd9b9+4,17.0.1-7-g35889ee+1,17.0.1-7-gc7c8782+18,17.0.1-9-gc4bbfb2+3,w.2019.22
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::afw::geom::SpherePoint const &ctrCoord, lsst::afw::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 119 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 170 of file astrometry_net.h.
lsst::afw::table::SimpleCatalog lsst::meas::extensions::astrometryNet::Solver::getCatalog | ( | std::vector< index_t *> | inds, |
lsst::afw::geom::SpherePoint const & | ctrCoord, | ||
lsst::afw::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 176 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 197 of file astrometry_net.h.
|
inline |
Definition at line 212 of file astrometry_net.h.
|
inline |
Set parity to flipped (if true) or normal (if false)
Definition at line 193 of file astrometry_net.h.
|
inline |
Definition at line 201 of file astrometry_net.h.
|
inline |
Definition at line 206 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.