OPERA
1.0
Open source echelle spectrograph reduction pipeline
|
Basic operaEspadonsImage constructor. More...
#include <operaEspadonsImage.h>
Public Member Functions | |
operaEspadonsImage () | |
operaEspadonsImage (string Filename, int mode=READWRITE) | |
operaEspadonsImage (string Filename, edatatype Datatype, int mode=READWRITE) | |
operaEspadonsImage (string Filename, unsigned Naxis1, unsigned Naxis2, DATASEC_t &datasec, edatatype Datatype=tushort, unsigned Compression=0) | |
operaEspadonsImage (unsigned Naxis1, unsigned Naxis2, DATASEC_t &datasec, edatatype Datatype=tushort, unsigned Compression=0) | |
~operaEspadonsImage () | |
Destructor, frees image memory and closes FITS file. | |
unsigned short * | operaEspadonsImageCloneDatasecUSHORT () |
Clone a pixel datasec. | |
float * | operaEspadonsImageCloneDatasec () |
Clone a pixel datasec. | |
unsigned short | getpixelUSHORT (unsigned x, unsigned y) |
get a pixel value at coordinates x,y. | |
float | getpixel (unsigned x, unsigned y) |
void | setpixel (unsigned short value, unsigned x, unsigned y) |
get a pixel value at coordinates x,y. | |
void | setpixel (float value, unsigned x, unsigned y) |
void | operaEspadonsImageCopyHeader (operaEspadonsImage *from) |
Copies all of the header information from image. | |
operaEspadonsImage * | operaEspadonsImageClone (operaEspadonsImage &imageIn) |
Clone an espadons Image object. | |
operaFITSSubImage * | getDatasecSubImage () |
get the datasec subImage. | |
void | operaFITSImageSetData (operaFITSSubImage &datasecSubImage) |
copy a subimage back in to an operaEspadonsImage datasec. | |
unsigned | getnx () |
get the DATASEC array length of dimension 1. | |
unsigned | getny () |
get the DATASEC array length of dimension 2. | |
unsigned | getndpixels () |
get the image array number of pixels. | |
unsigned long | getsize () |
Returns the image type (OBJECT, FLAT, ...). | |
imtype_t | getimtype () |
Returns the image type (OBJECT, FLAT, ...). | |
string | getimtypestring () |
Returns the image type (OBJECT, FLAT, ...) as a string. | |
detector_t | getdetector () |
Returns te detector type (EEV1, OLAPA, ...). | |
string | getdetectorstring () |
Returns te detector type (EEV1, OLAPA, ...) as a string. | |
amplifier_t | getamplifier () |
Returns te amplifier type (a, ab ...). | |
string | getamplifierstring () |
Returns te amplifier type (a, ab ...) as a string. | |
instrumentmode_t | getmode () |
Returns the mode (sp1, sp2, pol ...). | |
string | getmodestring () |
Returns the mode (sp1, sp2, pol ...) as a string. | |
speed_t | getspeed () |
Returns the speed (Fast, Slow, Normal ...). | |
string | getspeedstring () |
Returns the speed (Fast, Slow, Normal ...) as a string. | |
stokes_t | getstokes () |
Returns the stokes parameter (U, I, Vl ...). | |
string | getstokesstring () |
Returns the stokes parameter (U, I, Vl ...) as a string. | |
polarquad_t | getpolarquad () |
Returns the polar quad sequence number (1,2,3,4). | |
string | getpolarquadstring () |
Returns the polar quad sequence number (1,2,3,4) as a string. |
Basic operaEspadonsImage constructor.
operaEspadonsImage(unsigned Naxis1, unsigned Naxis2, edatatype Datatype=tushort, unsigned Compression=0)
operaEspadonsImage(string Filename, int mode=READWRITE)
Constructor for readng a FITS file and creating the corresponding object.
(string Filename, int mode)
Filename | |
mode | - READWRITE or READONLY, defaults to READWRITE |
operaException | operaErrorHeaderProblem |
a espadons Image object from a FITS file Constructor to create a espadons Image from a FITS file.
Filename | |
Datatype | - convert image to this datatype |
mode |
Constructor to create a new FITS file.
Filename | to create (file is deleted if it exists) |
Naxis1 | - x dimension |
Naxis2 | - y dimension |
datasec | - the datasec where the valid data pixels are |
Datatype | defaults to tshort |
Compression,defaults | to none |
operaException | cfitsio error code |
an in-memory espadons Image object Create an in-memory image of given dimensions.
Naxis1 | - x ccd dimension |
Naxis2 | - y ccd dimension |
datasec | DATASEC_t - espadons image datasec |
Datatype | optional datatype defaults to tshort |
Compression | optional compression, defaults to none |
Filename |
operaException | operaErrorHeaderProblem |
an in-memory espadons Image object Create an in-memory image of given dimensions.
Naxis1 | - x ccd dimension |
Naxis2 | - y ccd dimension |
Datatype | optional datatype defaults to tshort |
Compression | optional compression, defaults to none |
operaEspadonsImage::operaEspadonsImage | ( | ) |
operaEspadonsImage::operaEspadonsImage | ( | string | Filename, |
int | mode = READWRITE |
||
) |
operaEspadonsImage::operaEspadonsImage | ( | string | Filename, |
edatatype | Datatype, | ||
int | mode = READWRITE |
||
) |
operaEspadonsImage::operaEspadonsImage | ( | string | Filename, |
unsigned | Naxis1, | ||
unsigned | Naxis2, | ||
DATASEC_t & | datasec, | ||
edatatype | Datatype = tushort , |
||
unsigned | Compression = 0 |
||
) |
operaEspadonsImage::operaEspadonsImage | ( | unsigned | Naxis1, |
unsigned | Naxis2, | ||
DATASEC_t & | datasec, | ||
edatatype | Datatype = tushort , |
||
unsigned | Compression = 0 |
||
) |
operaEspadonsImage::~operaEspadonsImage | ( | ) |
amplifier_t operaEspadonsImage::getamplifier | ( | ) |
string operaEspadonsImage::getamplifierstring | ( | ) |
Returns te amplifier type (a, ab ...) as a string.
amplifier_t getamplifier()
operaFITSSubImage * operaEspadonsImage::getDatasecSubImage | ( | ) |
detector_t operaEspadonsImage::getdetector | ( | ) |
string operaEspadonsImage::getdetectorstring | ( | ) |
Returns te detector type (EEV1, OLAPA, ...) as a string.
string getdetectorstring()
detector_t getdetector()
imtype_t operaEspadonsImage::getimtype | ( | ) |
string operaEspadonsImage::getimtypestring | ( | ) |
Returns the image type (OBJECT, FLAT, ...) as a string.
string getimtypestring()
imtype_t getimtypestring()
instrumentmode_t operaEspadonsImage::getmode | ( | ) |
string operaEspadonsImage::getmodestring | ( | ) |
unsigned operaEspadonsImage::getndpixels | ( | ) |
unsigned operaEspadonsImage::getnx | ( | ) |
unsigned operaEspadonsImage::getny | ( | ) |
float operaEspadonsImage::getpixel | ( | unsigned | x, |
unsigned | y | ||
) | [inline] |
Reimplemented from operaFITSImage.
unsigned short operaEspadonsImage::getpixelUSHORT | ( | unsigned | x, |
unsigned | y | ||
) | [inline] |
get a pixel value at coordinates x,y.
getpixel(unsigned x, unsigned y)
x | - the x coordinate |
y | - the y coordinate |
Reimplemented from operaFITSImage.
polarquad_t operaEspadonsImage::getpolarquad | ( | ) |
Returns the polar quad sequence number (1,2,3,4).
polarquad_t getpolarquad()
string operaEspadonsImage::getpolarquadstring | ( | ) |
Returns the polar quad sequence number (1,2,3,4) as a string.
string getpolarquadstring()
unsigned long operaEspadonsImage::getsize | ( | ) |
Returns the image type (OBJECT, FLAT, ...).
imtype_t getimtype()
unsigned long getsize() get the datasec size of an image.
Reimplemented from operaFITSImage.
speed_t operaEspadonsImage::getspeed | ( | ) |
string operaEspadonsImage::getspeedstring | ( | ) |
stokes_t operaEspadonsImage::getstokes | ( | ) |
string operaEspadonsImage::getstokesstring | ( | ) |
operaEspadonsImage * operaEspadonsImage::operaEspadonsImageClone | ( | operaEspadonsImage & | imageIn | ) |
Clone an espadons Image object.
~operaEspadonsImage* operaEspadonsImage::operaEspadonsImageClone(operaEspadonsImage &imageIn)
imageIn | - pointer to image to clone |
operaEspadonsImage* operaEspadonsImage::operaEspadonsImageClone(operaEspadonsImage &imageIn)
imageIn | - pointer to image to clone |
float * operaEspadonsImage::operaEspadonsImageCloneDatasec | ( | ) |
unsigned short * operaEspadonsImage::operaEspadonsImageCloneDatasecUSHORT | ( | ) |
Clone a pixel datasec.
unsigned short* operaEspadonsImage::operaEspadonsImageCloneDatasecUSHORT()
void operaEspadonsImage::operaEspadonsImageCopyHeader | ( | operaEspadonsImage * | from | ) |
Copies all of the header information from image.
operaEspadonsImageCopyHeader(~operaEspadonsImage *from)
from |
operaException | cfitsio error code |
operaEspadonsImageCopyHeader(operaEspadonsImage *from)
from |
operaException | cfitsio error code |
void operaEspadonsImage::operaFITSImageSetData | ( | operaFITSSubImage & | datasecSubImage | ) |
copy a subimage back in to an operaEspadonsImage datasec.
void operaEspadonsImage::operaFITSImageSetData(operaFITSSubImage &subImage)
datasecSubImage | the datasec sub image |
void operaEspadonsImage::setpixel | ( | unsigned short | value, |
unsigned | x, | ||
unsigned | y | ||
) | [inline] |
get a pixel value at coordinates x,y.
setpixel(value, unsigned x, unsigned y)
value | - the pixel value |
x | - the x coordinate |
y | - the y coordinate |
Reimplemented from operaFITSImage.
void operaEspadonsImage::setpixel | ( | float | value, |
unsigned | x, | ||
unsigned | y | ||
) | [inline] |
Reimplemented from operaFITSImage.