25 double epmx, epmy, epmxy;
30 PmBlock() : pmx(0), pmy(0), epmx(0), epmy(0), epmxy(0), color(0), mightMove(
false) {};
39 friend class PhotomFit;
40 friend class PhotomFit2;
50 unsigned indexInMatrix;
60 BaseStar(), mag(-1), emag(-1), col(0.), gen(-1), wmag(0),
61 indexInMatrix(-1), measurementCount(0), refStar(NULL),
67 BaseStar(B), mag(-1), emag(-1), col(0.), gen(-1), wmag(0),
68 indexInMatrix(0), measurementCount(0), refStar(NULL),
83 void ClearBeforeAssoc()
93 void dump(std::ostream & stream = std::cout)
const
94 { BaseStar::dumpn(stream);
96 << measurementCount << std::endl;
100 int MeasurementCount()
const {
return measurementCount;}
103 int& MeasurementCount() {
return measurementCount;}
106 double Mag()
const {
return mag;}
107 double&
Mag() {
return mag; }
108 double EMag()
const {
return emag;}
109 double& EMag() {
return emag; }
110 double Col()
const {
return col;}
111 double& Col() {
return col; }
112 int Generation()
const {
return gen;}
113 int& Generation() {
return gen; }
116 void SetMag(
double Value) { mag = Value;}
120 const double &MagWeight);
126 int IndexInMatrix()
const {
return indexInMatrix;}
129 void SetRefStar(
const RefStar &);
132 const RefStar *GetRefStar()
const {
return refStar;};
135 double Flux()
const {
return flux; }
136 double&
Flux() {
return flux; }
137 double FluxErr()
const {
return fluxErr; }
138 double& FluxErr() {
return fluxErr; }
140 double Flux2()
const {
return flux2; }
141 double& Flux2() {
return flux2; }
142 double FluxErr2()
const {
return fluxErr2; }
143 double& FluxErr2() {
return fluxErr2; }
146 std::string
WriteHeader_(std::ostream& pr=std::cout,
const char* i=NULL)
const;
147 virtual void writen(std::ostream& s)
const;
148 virtual void read_it(fastifstream& s,
const char* format);
149 static BaseStar* read(fastifstream& s,
const char* format);
154 #include "starlist.h"
163 bool inTangentPlaneCoordinates;
176 const Gtransfo &TP2RaDec,
177 const bool OnlyGoodStars =
true);
182 typedef FittedStarList::const_iterator FittedStarCIterator;
183 typedef FittedStarList::iterator FittedStarIterator;
184 typedef CountedRef<FittedStar> FittedStarRef;
195 class FittedStarTuple {
197 std::ofstream stream;
200 FittedStarTuple(
const std::string &FileName);
204 void AddEntry(
const FittedStar &F,
const Point &RaDec);
206 ~FittedStarTuple() { stream.close();}
double Mag() const
derived using available zero points in input images. In the absence ofZP, ZP= 0.
Definition: fittedstar.h:106
void SetIndexInMatrix(const unsigned &Index)
index is a value that a fit can set and reread....
Definition: fittedstar.h:123
A list of FittedStar s. Such a list is typically constructed by Associations.
Definition: fittedstar.h:158
Objects used as position anchors, typically USNO stars. Coordinate system defined by user...
Definition: refstar.h:12
void WriteTuple(const std::string &FileName, const Gtransfo &TP2RaDec, const bool OnlyGoodStars=true)
Definition: fittedstar.cc:90
void AddMagMeasurement(const double &MagValue, const double &MagWeight)
this routine will hopefully soon disappear.
Definition: fittedstar.cc:35
The objects which have been measured several times. The MeasuredStar s measuring the same object in d...
Definition: fittedstar.h:37
objects whose position is going to be fitted. Coordinates in Common Tangent Plane.
Definition: fittedstar.h:21
double Flux() const
getters
Definition: fittedstar.h:135
objects measured on actual images. Coordinates and uncertainties are expressed in pixel image frame...
Definition: measuredstar.h:21
std::string WriteHeader_(std::ostream &pr=std::cout, const char *i=NULL) const
write stuff
Definition: fittedstar.cc:142