1 | |
---|
2 | void Annotation::drawCircle(Detection &obj, FitsHeader &header) |
---|
3 | { |
---|
4 | |
---|
5 | |
---|
6 | |
---|
7 | } |
---|
8 | |
---|
9 | void Annotation::fileComments(Param &par) |
---|
10 | { |
---|
11 | std::string fname = par.getImageFile(); |
---|
12 | if(par.getFlagSubsection()) fname+=par.getSubsection(); |
---|
13 | this->itsFile << this->comment() << " Duchamp Source Finder v."<< VERSION << "\n"; |
---|
14 | this->itsFile << this->comment() << " Results for FITS file: " << fname << "\n"; |
---|
15 | if(par.getFlagFDR()) |
---|
16 | this->itsFile<<this->comment() << " FDR Significance = " << par.getAlpha() << "\n"; |
---|
17 | else |
---|
18 | this->itsFile<<this->comment() << " Threshold = " << par.getCut() << "\n"; |
---|
19 | if(par.getFlagATrous()){ |
---|
20 | this->itsFile<<this->comment() << " The a trous reconstruction method was used, with the following parameters:\n"; |
---|
21 | this->itsFile<<this->comment() << " Dimension = " << par.getReconDim() << "\n"; |
---|
22 | this->itsFile<<this->comment() << " Threshold = " << par.getAtrousCut() << "\n"; |
---|
23 | this->itsFile<<this->comment() << " Minimum Scale =" << par.getMinScale() << "\n"; |
---|
24 | this->itsFile<<this->comment() << " Filter = " << par.getFilterName() << "\n"; |
---|
25 | } |
---|
26 | else if(par.getFlagSmooth()){ |
---|
27 | this->itsFile<<this->comment() << " The data was smoothed prior to searching, with the following parameters:\n"; |
---|
28 | this->itsFile<<this->comment() << " Smoothing type = " << par.getSmoothType() << "\n"; |
---|
29 | if(par.getSmoothType()=="spectral"){ |
---|
30 | this->itsFile << this->comment() << " Hanning width = " << par.getHanningWidth() << "\n"; |
---|
31 | } |
---|
32 | else{ |
---|
33 | this->itsFile << this->comment() << " Kernel Major axis = " << par.getKernMaj() << "\n"; |
---|
34 | if(par.getKernMin()>0) |
---|
35 | this->itsFile << this->comment() << " Kernel Minor axis = " << par.getKernMin() << "\n"; |
---|
36 | else |
---|
37 | this->itsFile << this->comment() << " Kernel Minor axis = " << par.getKernMaj() << "\n"; |
---|
38 | this->itsFile << this->comment() << " Kernel Major axis = " << par.getKernPA() << "\n"; |
---|
39 | } |
---|
40 | } |
---|
41 | } |
---|