geirs2Panic
Richard J. Mathar
Fits header keyword batch editor
|
#include <FitsImg2Asc.h>
Public Member Functions | |
FitsImg2Asc (char *fitsInname) | |
Constructor. More... | |
FitsImg2Asc (int argc, char *fitsInname[]) | |
Constructor. More... | |
~FitsImg2Asc () | |
Destructor. More... | |
void | dump () |
Dump the entire image in ASCII style to cout. More... | |
void | dump (int range[4], FITS *ifits) |
Dump the image in ASCII style to cout. More... | |
void | dump (string range) |
Dump the image in ASCII style to cout. More... | |
void | histo (int Nbin, double range[2], string detsize, const bool doLogHist, const string epsout, const string txtout) |
Generate a gnuplot X11 window with the histogram(s). More... | |
void | badMask (double range[2], string detsize, const string fitsout, int flipxy, string txtout, bool iraf) |
Generate a FITS file with a bad mask of pixels. More... | |
Public Attributes | |
vector< string > | iname |
Name of the input file. More... | |
FitsImg2Asc::FitsImg2Asc | ( | char * | fitsIname | ) |
Constructor.
[in] | fitsname | The name of the FITS file to be read. |
FitsImg2Asc::FitsImg2Asc | ( | int | argc, |
char * | fitsIname[] | ||
) |
Constructor.
[in] | fitsname | The names of the FITS file to be read. |
FitsImg2Asc::~FitsImg2Asc | ( | ) |
Destructor.
void FitsImg2Asc::dump | ( | ) |
Dump the entire image in ASCII style to cout.
void FitsImg2Asc::dump | ( | int | range[4], |
FITS * | ifits | ||
) |
Dump the image in ASCII style to cout.
[in] | range | Four values denoting the pixel range. The lower value of x, the upper value of x (exclusive), the lower value of y and the upper value of y (exclusive) of the pixel region to be plotted. |
void FitsImg2Asc::dump | ( | string | range | ) |
Dump the image in ASCII style to cout.
[in] | range | Four values denoting the lower value of x, the upper value of x (exclusive), the lower value of y and the upper value of y (exclusive) of the pixel region to be plottet. |
void FitsImg2Asc::histo | ( | int | Nbin, |
double | range[2], | ||
string | detsize, | ||
const bool | doLogHist, | ||
const string | epsout, | ||
const string | txtout | ||
) |
Generate a gnuplot X11 window with the histogram(s).
[in] | Nbin | The number of bins in the histogram. A value less than zero will trigger default setting of Nbin by the program. The actual number will then be the square root of the maximum number of data values in any of the arrays. |
[in] | range | The lower [0] and upper [1] limit of the points on the horizontal axis (ADU) to be used. |
[in] | detsize | A string of the form [xmin:xmax,ymin:ymax] selecting a XY ranges of pixels. If empy, the entire frame is examined. |
[in] | doLogHist | Print a logarithmic, not a linear vertical scale. |
[in] | epsout | If not an empty string, use this file for plotting, not the X11 screen. |
[in] | txtout | If not an empty string, use this text file to store the histogram, not the X11 screen. |
void FitsImg2Asc::badMask | ( | double | range[2], |
string | detsize, | ||
const string | fitsout, | ||
int | flipxy, | ||
string | txtout, | ||
bool | iraf | ||
) |
Generate a FITS file with a bad mask of pixels.
[in] | range | The lower [0] and upper [1] limit of the points on the horizontal axis (ADU) to be used. |
[in] | detsize | A string of the form [xmin:xmax,ymin:ymax] selecting a XY ranges of pixels. If empy, the entire frame is examined. |
[in] | fitsout | Name of the FITS output file. |
[in] | flipxy | If the LSB bit (bit 0) is set, flip along x coordinate. If the bit 1 is set, flip along y coordinate. |
[in] | txtout | Name of the file with the GEIRS specific list of bad pixels. Not used if null or an empty file name. |
vector<string> FitsImg2Asc::iname |
Name of the input file.