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" 29 #include "boost/format.hpp" 44 namespace extensions {
45 namespace astrometryNet {
67 return multiindex_get(_multiindex.
get(), i);
84 multiindex_unload(_multiindex.
get());
88 return _multiindex->fits->filename;
95 return multiindex_n(_multiindex.
get());
106 void operator()(multiindex_t*
m) {
163 const char* starGalCol,
165 bool uniqueIds=
true);
172 return solver_did_solve(_solver.get());
175 void run(
double cpulimit);
179 solver_get_quad_size_range_arcsec(_solver.get(), &qlo, &qhi);
195 _solver->parity = flipped ? PARITY_FLIP : PARITY_NORMAL;
199 solver_set_keep_logodds(_solver.get(), threshold);
203 _solver->funits_lower = low;
204 _solver->funits_upper = high;
208 solver_set_radec(_solver.get(), ra, dec, radius_deg);
211 void setImageSize(
int width,
int height);
214 _solver->endobj = maxStars;
222 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.
lsst::geom::Angle healpixDistance(int hp, int nside, lsst::geom::SpherePoint const &coord)
Calculate the distance from coordinates to a healpix.
void setMatchThreshold(double threshold)
std::pair< double, double > getQuadSizeRangeArcsec() const
std::string getName() const
index_t * operator[](int i) const
Get the specified index.
void addIndex(std::string const &filepath, bool metadataOnly)
Add an index read from a file.
void setRaDecRadius(double ra, double dec, double radius_deg)
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)