SatAndLight  2.2.2-hubble
Simulation toolkit for space telescopes
snl-fits-camera.cc File Reference

This program generates a camera data sequence from FITS data files. More...

#include <TFITS.h>
#include <TMatrixD.h>
#include "Options.h"
#include "Camera.h"
Include dependency graph for snl-fits-camera.cc:

Functions

int main (int argc, char *argv[])
 This program generates a camera data sequence from FITS data files. More...
 

Detailed Description

This program generates a camera data sequence from FITS data files.

Authors
Florent Robinet, flore.nosp@m.nt.r.nosp@m.obine.nosp@m.t@ij.nosp@m.clab..nosp@m.in2p.nosp@m.3.fr

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

This program generates a camera data sequence from FITS data files.

The input FITS files are converted in a sequence of camera pictures saved in ROOT files. A list of FITS files must be provided. The following assumptions are made about the format of these files:

  • The list of HDUs is scanned: the first image HDU is considered (XTENSION = IMAGE).
  • The number of axes must be exactly 3 (NAXIS = 3)
  • The first axis is considered as the Y axis of the camera.
  • The second axis is considered as the Z axis of the camera.
  • The third axis is considered as the time coordinate separating pictures.
  • The "BITPIX" is considered to be the image bit resolution. It should not exceed 16 bits.
  • Each image is separated by the camera time resolution (given in argument)
  • The time of the first image is set to T0 (given in argument).

The files are read sequentially. For each of them a ROOT file is produced in the current direvctory. Camera pictures are saved using the Camera class.

Note
Use snl-picture-play.cc to replay the pictures in the resulting ROOT files.
Parameters
[in]argcNumber of arguments.
[in]argvList of arguments.