Commit fee36b4968d715604e503efaca58c17e3cd46134

Authored by Josh Cardenzana
Committed by Jürgen Knödlseder
1 parent 2e770e0e

Readd GFits object for storing outputs (#2713)

src/ctfindvar/ctfindvar.cpp
... ... @@ -609,7 +609,6 @@ void ctfindvar::save(void)
609 609  
610 610 // Filenames
611 611 std::string prefix((*this)["prefix"].string());
612   - GFilename peaksigmap(prefix + "peaksigmap.fits");
613 612  
614 613 // Write counts cube
615 614 if ((*this)["outcube"].is_valid()) {
... ... @@ -629,8 +628,8 @@ void ctfindvar::save(void)
629 628 write_srchist();
630 629  
631 630 // Write the output file
632   - GFilename outfile = prefix + "signifmap.fits";
633   - m_outfile.saveto(outfile, (*this)["clobber"].boolean());
  631 + GFilename outfilename = prefix + "signifmap.fits";
  632 + m_outfile.saveto(outfilename, (*this)["clobber"].boolean());
634 633  
635 634 // Return
636 635 return;
... ...
src/ctfindvar/ctfindvar.hpp
... ... @@ -96,6 +96,7 @@ protected:
96 96 GSkyDir m_max_sig_dir; //!< Sky direction associated with maximum significance
97 97 double m_minoff; //!< Minimum counts for use in significance calculation
98 98 double m_sig_threshold; //!< Minimum significance required to set source as variable
  99 + GFits m_outfile; //!< FITS object to store output
99 100 GSkyMap m_peaksigmap; //!< Skymap holding the maximum significance
100 101 GNdarray m_pixsigsrc; //!< Store distributions of the source significances
101 102 GNdarray m_pixsigmax; //!< Store distribution for pixel with max significance
... ...