OPERA  1.0
Open source echelle spectrograph reduction pipeline
operaFITSImage.h File Reference
#include <fitsio.h>
#include <string>
#include "libraries/operaImage.h"
#include "libraries/operaParameterAccess.h"
#include "libraries/operaConfigurationAccess.h"
Include dependency graph for operaFITSImage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  operaFITSImage
 Basic operaFITSImage constructor. More...

Typedefs

typedef unsigned * ImageIndexVector
typedef float ** Matrix

Enumerations

enum  ebitpix { short_img = SHORT_IMG, ushort_img = USHORT_IMG, float_img = FLOAT_IMG, double_img = DOUBLE_IMG }
enum  edatatype {
  tshort = TSHORT, tushort = TUSHORT, tstring = TSTRING, tfloat = TFLOAT,
  tdouble = TDOUBLE
}

Functions

unsigned veclen (ImageIndexVector v)
 since ImageIndexVectors are null-terminated, we emulate strlen.
string trimFITSKeyword (const char *in)
 Trim the single quotes and trailing spaces from a FITS keyword value.
ImageIndexVector where (operaFITSImage *b, unsigned *count)
 where function - return a vector of the same size .
ImageIndexVector where (operaFITSImage &b, unsigned *count)
ImageIndexVector where (operaFITSImage *b)
ImageIndexVector where (operaFITSImage &b)

Typedef Documentation

typedef unsigned* ImageIndexVector

an ImageIndexVector is a vector of indices into a operaFITSImage, the index values start from 1 and the vector is null terminated.

typedef float** Matrix

a Matrix is a 2D image array, the first dimension is y, and the second is x. C libraries may make use of this data structure for simple indexing in to an image. where C libraries could not access the operFITSImage class in the same way.


Enumeration Type Documentation

enum ebitpix
Enumerator:
short_img 
ushort_img 
float_img 
double_img 
enum edatatype
Enumerator:
tshort 
tushort 
tstring 
tfloat 
tdouble 

Function Documentation

unsigned veclen ( ImageIndexVector  v)

since ImageIndexVectors are null-terminated, we emulate strlen.

veclen

Parameters:
v- ImageIndexVector*
Returns:
unsigned
ImageIndexVector where ( operaFITSImage b,
unsigned *  count 
)

where function - return a vector of the same size .

where

Parameters:
b- operaFITSImage*
count- count of 1's
Note:
usage: operaFITSImage a = a.where(b>0.0, &count); returns vector of 1s and 0's and count of 1's
Returns:
unsigned *

where function - return a vector of the same size .

where

Parameters:
b- operaFITSImage*
count- count of 1's
Returns:
operaFITSImage&

Here is the call graph for this function:

ImageIndexVector where ( operaFITSImage b,
unsigned *  count 
)

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function: