OPERA  1.0
Open source echelle spectrograph reduction pipeline
operaFitSN.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <ctype.h>
#include <string.h>
#include <fitsio.h>
#include <getopt.h>
#include <errno.h>
#include <string>
#include <iostream>
#include "operaError.h"
#include "core/operaFitSN.h"
#include "libraries/operaParameterAccess.h"
#include "libraries/operaConfigurationAccess.h"
Include dependency graph for operaFitSN.cpp:

Functions

int main (int argc, char *argv[])
 Calculate intensity spectrum star only mode.
static void printUsageSyntax (char *modulename)

Function Documentation

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

Calculate intensity spectrum star only mode.

Perform various tests on the operaTiledImage class.

Test the imageStats library functions.

Various image manipulation functions.

Create a PNG thumbnail of a FITS Image.

wavelength calibration.

telluric correction.

Signal to Noise calculation.

Creates reduction sets from a list of input FITS file names.

Calculate radial velocity.

Calculate polarimetry.

Creates a master Flat FITS image from a list of input Flat FITS file names.

Creates a master Align FITS image from a list of input Align FITS file names.

Creates a master Comparison FITS image from a list of input Comparison FITS file names.

Creates a master bias FITS image from a list of input bias FITS file names.

Calculate intensity spectrum star plus sky mode.

operaIntensityStarOnly

Author:
Doug Teeple
  • argc
  • argv
Note:
--input=...
--output=...
--masterbias=...
--masterflat=...
--masterfabperot=...
--geom=...
--wcal=...
--fresp=...
--badpixelmask=...
--gain=...
--noise=...
--normalize=...
Exceptions:
operaExceptioncfitsio error code
operaExceptionoperaErrorNoInput
operaExceptionoperaErrorNoOuput
Returns:
EXIT_STATUS

operaIntensityStarPlusSky

Author:
Doug Teeple
  • argc
  • argv
Note:
--input=...
--output=...
--masterbias=...
--masterflat=...
--masterfabperot=...
--geom=...
--wcal=...
--fresp=...
--sky=...
--badpixelmask=...
--gain=...
--noise=...
--normalize=...
Exceptions:
operaExceptioncfitsio error code
operaExceptionoperaErrorNoInput
operaExceptionoperaErrorNoOuput
Returns:
EXIT_STATUS

operaMasterBias

Author:
Doug Teeple
  • argc
  • argv
Note:
operaMasterBias [--images=...]* --output=...[ --pick=<posint>0> ]
Pick one or median stack images.
Exceptions:
operaExceptioncfitsio error code
operaExceptionoperaErrorNoInput
operaExceptionoperaErrorNoOuput
Returns:
EXIT_STATUS

operaMasterComparison

Author:
Doug Teeple
  • argc
  • argv
Note:
[--images=...]* --output=... [ --pick=<posint>0> ]
Pick one or median stack images.
Exceptions:
operaExceptioncfitsio error code
operaExceptionoperaErrorNoInput
operaExceptionoperaErrorNoOuput
Returns:
EXIT_STATUS

operaMasterFabPerot

Author:
Doug Teeple
  • argc
  • argv
Note:
[--images=...]* --output=... [ --pick=<posint>0> ]
Pick one or median stack images.
Exceptions:
operaExceptioncfitsio error code
operaExceptionoperaErrorNoInput
operaExceptionoperaErrorNoOuput
Returns:
EXIT_STATUS

operaMasterFlat

Author:
Doug Teeple
  • argc
  • argv
Note:
[--images=...]* --output=...[ --pick=<posint>0> ]
Pick one or median stack images.
Exceptions:
operaExceptioncfitsio error code
operaExceptionoperaErrorNoInput
operaExceptionoperaErrorNoOuput
Returns:
EXIT_STATUS

operaPolar

Author:
Doug Teeple
  • argc
  • argv
Note:
--input=...
--output=...
--masterbias=...
--masterflat=...
--masterfabperot=...
--geom=...
--wcal=...
--fresp=...
--sky=...
--badpixelmask=...
--gain=...
--noise=...
--normalize=...
Exceptions:
operaExceptioncfitsio error code
operaExceptionoperaErrorNoInput
operaExceptionoperaErrorNoOuput
Returns:
EXIT_STATUS

operaRadialVelocity

Author:
Doug Teeple
  • argc
  • argv
Note:
--input=...
--output=...
--masterbias=...
--masterflat=...
--masterfabperot=...
--geom=...
--wcal=...
--fresp=...
--sky=...
--badpixelmask=...
--gain=...
--noise=...
--normalize=...
Exceptions:
operaExceptioncfitsio error code
operaExceptionoperaErrorNoInput
operaExceptionoperaErrorNoOuput
Returns:
EXIT_STATUS

operaReductionSet

Author:
Eder Martioli
  • argc
  • argv
Note:
--directory=
--qualifiers="$(DETECTOR) $(MODE) $(SPEED)"
--etype=FLAT
Exceptions:
operaExceptioncfitsio error code
operaExceptionoperaErrorNoInput
operaExceptionoperaErrorNoOuput
Returns:
EXIT_STATUS

operaSNR

Author:
Doug Teeple
  • argc
  • argv
Note:
--output=...
--input=...
Exceptions:
operaExceptioncfitsio error code
operaExceptionoperaErrorNoInput
operaExceptionoperaErrorNoOuput
Returns:
EXIT_STATUS

operaTelluricCorrection

Author:
Doug Teeple
  • argc
  • argv
Note:
--output=...
--input=...
--maxSNR=...
--radialvelocity=...
--heliocentricvelocity=...
--weight=...
--upperVelocity=...
--lowerVelocity=...
--velocityStep=...
--FourierFilterWidth=...
Exceptions:
operaExceptioncfitsio error code
operaExceptionoperaErrorNoInput
operaExceptionoperaErrorNoOuput
Returns:
EXIT_STATUS

operaWavelengthCalibration

Author:
Doug Teeple
  • argc
  • argv
Note:
--output=...
--tharc=...
--thws=...
--thref=...
--thcal=...
--masterfabperot=...
--geom=...
--limit=...
--maxSNR=...
--radialvelocity=...
--heliocentricvelocity=...
--weight=...
--upperVelocity=...
--lowerVelocity=...
--velocityStep=...
--FourierFilterWidth=...
--calibratedcomparison=...
Exceptions:
operaExceptioncfitsio error code
operaExceptionoperaErrorNoInput
operaExceptionoperaErrorNoOuput
Returns:
EXIT_STATUS
Author:
Doug Teeple

operaFITStoPNG - FITS to PNG Based on f2n: version 0.9.1, December 2008 by malte.tewes@epfl.ch

 * Usage :   operaFITStoPNG --negate ztrans= in.fits --output=out.png [lower= [upper=]]
 * --negate: negative (inverse video) output
 * --ztrans =
 *    l: lin ztrans  (lc : same but with coloured cutoffs)
 *    e: log centered on 0.0
 *    f: log ztrans as in IRAF's display (fc : coloured cutoffs)
 *    p: lin from z1 to -z1, then log up to z2 (my fav for dec.fits)
 *    c: log with color countours around 1.0 (my fav for sm residuals)
 *    r: pseudocolour log hsv
 *    s: somewhere over the rainbow (exprimental)
 *    h: histogram equalization
 * --lower= --upper=
 *    the lower and upper cutoffs to use. Give either none or both.
 *    (not given) : min and max cutoffs (same as m m, see below)
 *    -1.2e-5 : hard cutoff (for example)
 *    m : extremal (min or max) cutoff
 *    a : auto cutoff
 *    You can also mix them.
 *    Examples : \"--lower=-10.0 --upper=a\"
 *    Examples : \"--lower=a --upper=m\"
 *    Examples : \"--lower=a --upper=a\"
 *    Examples : \"--lower=0 --upper=1\"
 * 
Note:
You can use file.fits[a:b,c:d] to select a region of the input file.
(In case of trouble use quotes : "file.fits[a:b,c:d]")
Returns:
EXIT_STATUS
Author:
Eder Martioli

operaImage

  • argc
  • argv
    Returns:
    EXIT_STATUS
    operaStatsLibTest
    Author:
    Doug Teeple
  • argc
  • argv
    Returns:
    EXIT_STATUS
    operaTiledImageTest
    Author:
    Doug Teeple
  • argc
  • argv
    Note:
    --keyword=...
    Returns:
    EXIT_STATUS

Here is the call graph for this function:

static void printUsageSyntax ( char *  modulename) [static]