Commit 840693964cebef2fe1addabea498cd41ebff298e

Authored by Jürgen Knödlseder
1 parent 7e4a0395

For explicit chatter level, read back temporary file and dump it to log file.

Showing 1 changed file with 9 additions and 0 deletions
src/ctselect/ctselect.cpp
@@ -296,6 +296,15 @@ void ctselect::run(void) @@ -296,6 +296,15 @@ void ctselect::run(void)
296 // Save observation in temporary file 296 // Save observation in temporary file
297 obs->save(filename, true); 297 obs->save(filename, true);
298 298
  299 + // Log saved FITS file
  300 + if (logExplicit()) {
  301 + GFits tmpfile(filename);
  302 + log << std::endl;
  303 + log.header1("FITS file content of temporary file");
  304 + log << tmpfile << std::endl;
  305 + tmpfile.close();
  306 + }
  307 +
299 // Check temporary file 308 // Check temporary file
300 std::string message = check_infile(filename); 309 std::string message = check_infile(filename);
301 if (message.length() > 0) { 310 if (message.length() > 0) {