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" 43 namespace extensions {
44 namespace astrometryNet {
66 return multiindex_get(_multiindex.
get(), i);
83 multiindex_unload(_multiindex.
get());
87 return _multiindex->fits->filename;
94 return multiindex_n(_multiindex.
get());
105 void operator()(multiindex_t*
m) {
162 const char* starGalCol,
164 bool uniqueIds=
true);
171 return solver_did_solve(_solver.get());
174 void run(
double cpulimit);
178 solver_get_quad_size_range_arcsec(_solver.get(), &qlo, &qhi);
194 _solver->parity = flipped ? PARITY_FLIP : PARITY_NORMAL;
198 solver_set_keep_logodds(_solver.get(), threshold);
202 _solver->funits_lower = low;
203 _solver->funits_upper = high;
207 solver_set_radec(_solver.get(), ra,
dec, radius_deg);
210 void setImageSize(
int width,
int height);
213 _solver->endobj = maxStars;
221 void operator()(solver_t*
m) {
void unload()
Unload the indices.
Interface for Persistable base class.
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)
daf_persistence package header file
MultiIndex(std::string const &filepath)
Construct a MultiIndex from an astrometry.net multi-index file.
int getLength() const
Get the number of indices.
A class representing an angle.
lsst::afw::geom::Angle healpixDistance(int hp, int nside, lsst::afw::geom::SpherePoint const &coord)
Calculate the distance from coordinates to a healpix.
LSST DM logging module built on log4cxx.
A base class for image defects.
Custom catalog class for record/table subclasses that are guaranteed to have an ID, and should generally be sorted by that ID.
void setMatchThreshold(double threshold)
std::pair< double, double > getQuadSizeRangeArcsec() const
std::string getName() const
index_t * operator[](int i) const
Get the specified index.
Point in an unspecified spherical coordinate system.
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)