geirs2Panic  Richard J. Mathar
Fits header keyword batch editor
 All Classes Files Functions Variables Macros Pages
Public Member Functions | Public Attributes | List of all members
FitsImg2Asc Class Reference

#include <FitsImg2Asc.h>

Collaboration diagram for FitsImg2Asc:
Collaboration graph

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...
 

Detailed Description

Since
2012-11-25
Author
Richard J. Mathar

Constructor & Destructor Documentation

FitsImg2Asc::FitsImg2Asc ( char *  fitsIname)

Constructor.

Parameters
[in]fitsnameThe name of the FITS file to be read.
Since
2012-11-25
Author
Richard J. Mathar
FitsImg2Asc::FitsImg2Asc ( int  argc,
char *  fitsIname[] 
)

Constructor.

Parameters
[in]fitsnameThe names of the FITS file to be read.
Since
2013-01-29
Author
Richard J. Mathar
FitsImg2Asc::~FitsImg2Asc ( )

Destructor.

Member Function Documentation

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.

Parameters
[in]rangeFour 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.

Parameters
[in]rangeFour 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).

Parameters
[in]NbinThe 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]rangeThe lower [0] and upper [1] limit of the points on the horizontal axis (ADU) to be used.
[in]detsizeA string of the form [xmin:xmax,ymin:ymax] selecting a XY ranges of pixels. If empy, the entire frame is examined.
[in]doLogHistPrint a logarithmic, not a linear vertical scale.
[in]epsoutIf not an empty string, use this file for plotting, not the X11 screen.
[in]txtoutIf not an empty string, use this text file to store the histogram, not the X11 screen.
Since
2013-01-29
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.

Parameters
[in]rangeThe lower [0] and upper [1] limit of the points on the horizontal axis (ADU) to be used.
[in]detsizeA string of the form [xmin:xmax,ymin:ymax] selecting a XY ranges of pixels. If empy, the entire frame is examined.
[in]fitsoutName of the FITS output file.
[in]flipxyIf the LSB bit (bit 0) is set, flip along x coordinate. If the bit 1 is set, flip along y coordinate.
[in]txtoutName of the file with the GEIRS specific list of bad pixels. Not used if null or an empty file name.
Since
2013-12-04

Member Data Documentation

vector<string> FitsImg2Asc::iname

Name of the input file.