Class CCD

Class Documentation

class CCD

class representing a CCD detector

Public Functions

CCD(int Nx, int Ny, double pixelsize)

Constructor

Parameters
  • Nx – number of pixels in X direction

  • Ny – number of pixels in Y direction

  • pixelsize – size of the pixels [micron]

Returns

CCD

~CCD()
void save_to_hdf(std::string filename, bool bleed = true, bool overwrite = false)

Saves simulated data to HDF file

Parameters
  • filename – file path

  • bleed – bleed overexposed pixel TODO: not implemented yet

  • overwrite – set true to overwrite existing file

void save_to_fits(std::string filename, bool overwrite)

Saves simulated data to FITS file

Parameters
  • filename – file path

  • overwrite – set true to overwrite existing file

double *get_pixelsize()

Returns pixel of the CCD detector size in microns.

Returns

Pixel size [microns]

Public Members

std::vector<int> data
bool use_gpu = false
int Nx
int Ny
double pixel_size