5 #include "astrometry/solver.h" 6 #include "astrometry/index.h" 7 #include "astrometry/multiindex.h" 8 #include "astrometry/starkd.h" 9 #include "astrometry/fitsioutils.h" 10 #include "astrometry/fitstable.h" 11 #include "astrometry/log.h" 12 #include "astrometry/tic.h" 13 #include "astrometry/healpix.h" 28 #include "boost/format.hpp" 45 namespace extensions {
46 namespace astrometryNet {
68 return multiindex_get(_multiindex.
get(), i);
85 multiindex_unload(_multiindex.
get());
89 return _multiindex->fits->filename;
96 return multiindex_n(_multiindex.
get());
107 void operator()(multiindex_t*
m) {
164 const char* starGalCol,
166 bool uniqueIds=
true);
173 return solver_did_solve(_solver.get());
176 void run(
double cpulimit);
180 solver_get_quad_size_range_arcsec(_solver.get(), &qlo, &qhi);
196 _solver->parity = flipped ? PARITY_FLIP : PARITY_NORMAL;
200 solver_set_keep_logodds(_solver.get(), threshold);
204 _solver->funits_lower = low;
205 _solver->funits_upper = high;
209 solver_set_radec(_solver.get(), ra, dec, radius_deg);
212 void setImageSize(
int width,
int height);
215 _solver->endobj = maxStars;
223 void operator()(solver_t*
m) {
void unload()
Unload the indices.
A thin C++ wrapper around astrometry.net's solver_t struct.
void setParity(bool flipped)
Set parity to flipped (if true) or normal (if false)
MultiIndex(std::string const &filepath)
Construct a MultiIndex from an astrometry.net multi-index file.
int getLength() const
Get the number of indices.
void setMatchThreshold(double threshold)
std::pair< double, double > getQuadSizeRangeArcsec() const
std::string getName() const
index_t * operator[](int i) const
Get the specified index.
def run(suite, exit=True)
void addIndex(std::string const &filepath, bool metadataOnly)
Add an index read from a file.
void setRaDecRadius(double ra, double dec, double radius_deg)
lsst::afw::geom::Angle healpixDistance(int hp, int nside, lsst::afw::coord::Coord const &coord)
Calculate the distance from coordinates to a healpix.
void setMaxStars(int maxStars)
void reload()
Reload the indices.
int isWithinRange(double ra, double dec, double radius_deg)
Is this multi-index in range of the specified cone?
void setPixelScaleRange(double low, double high)