#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <time.h>
#include <stdarg.h>
#include "fitsoutput.h"
#include "logfile.h"
#include "fitsio.h"
#include "iniconfig.h"
#include "background.h"
#include "acquisition.h"
#include "telescope.h"
#include "ccu.h"
#include "gui.h"
#include "sid.h"
#include <gsl/gsl_statistics.h>
#include <gsl/gsl_sort.h>
Functions | |
void | fitsoutput_error (char *msg) |
is called whenever something went wrong in fitsoutput.c | |
void | fitsfile_compile_ccd () |
Calculates the astrometric coefficients to be writen into the fits file. | |
int | init_fitsfile () |
Open a fitsfile and set header keywords. | |
int | fitsfile_shutter_opening () |
called when the shutter is just opening | |
int | fitsfile_shutter_closing () |
called when the shutter is just closing | |
int | fitsfile_create_image (int xsize, int ysize) |
creates an image to be written into the fits file. And write the header keywords. | |
int | init_fitsfile_noheader (int xsize, int ysize) |
Open a fitsfile and without setting header keywords. | |
void | fitsoutput_postproc (char *filename) |
postprocesses the fits file | |
void | fitsoutput_stat () |
calculates the averiage value and the standard deviation of the overscan region of the image. | |
int | close_fitsfile (void) |
Closes a fitsfile. | |
void | write_fitsfile (unsigned char *data, int size) |
writes data into a fitsfile | |
fitsoutput_status_struct | fitsoutput_get_status (void) |
returns a structure describing the current status of fitsoutput. | |
void | fitsoutput_set_dap (struct dap_struct dap) |
sets the Data Associated Parameters. | |
dap_struct | fitsoutput_get_dap (void) |
returns a structure describing the current Data Associated Parameters. | |
char * | fitsoutput_get_filename (void) |
returns the current filename. | |
void | fitsoutput_set_ccd (struct ccd_struct ccd) |
sets the CCD parameters. | |
Variables | |
fitsfile * | fitsoutput_file |
int | ii |
int | jj |
volatile int | fitsoutput_is_open = 0 |
long | fitsoutput_fpixel = 1 |
long | fitsoutput_naxis = 2 |
long | fitsoutput_nelements |
long | fitsoutput_naxes [2] |
unsigned short * | fitsoutput_data |
int | status |
fitsoutput_status_struct | fitsoutput_status |
ccd_compiled_struct | fitsoutput_ccd_compiled |
int | fitsoutput_filenum |
char | fitsoutput_filename [1000] |
fitsoutput_devices_struct | fitsoutput_shutter_opened |
fitsoutput_devices_struct | fitsoutput_shutter_closed |
int | fitsoutput_simlation_mode = 0 |
volatile int | fitsoutput_write_file = 1 |
Copyright (C) 2001-2003 Dirk Huenniger (dhun@astro.uni-bonn.de)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
|
Closes a fitsfile.
|
|
Calculates the astrometric coefficients to be writen into the fits file.
|
|
creates an image to be written into the fits file. And write the header keywords.
|
|
called when the shutter is just closing
|
|
called when the shutter is just opening
|
|
is called whenever something went wrong in fitsoutput.c
|
|
returns a structure describing the current Data Associated Parameters.
|
|
returns the current filename.
|
|
returns a structure describing the current status of fitsoutput.
|
|
postprocesses the fits file
|
|
sets the CCD parameters.
|
|
sets the Data Associated Parameters.
|
|
calculates the averiage value and the standard deviation of the overscan region of the image.
|
|
Open a fitsfile and set header keywords.
|
|
Open a fitsfile and without setting header keywords.
the current filename |
|
writes data into a fitsfile
|
|
a stuct keeping the paramters of the ccd corrected for the current binning mode and ready for storage the fits header |
|
a pointer to a structure containing the data to be writen into the fitsfile |
|
a pointer to a structure definded in fitsio.h it is used to store the fitsfile |
|
the current filename |
|
the serial number of the current file |
|
dunno (not documented in cfitio documentation while writing this docu) |
|
1 if a fitsfile is open for writing, 0 otherwise |
|
number of pixels in x and y direction in the fitsfile |
|
number of axis in fitsfile |
|
number of pixels in the fitsfile |
|
a stuct representing the status of the attacted devices when the sutter just closed |
|
a stuct representing the status of the attacted devices when the sutter just opened |
|
if set to one no fitsfile will be writen, no stasicis willbe calcualted, just funny numbers will be created for debugging puposes only |
|
a stuct representing the current status of fitsoutput |
|
1 if the current fitsfile shall actually be writen to disk. Set to 0 if you just want to perform operation in memmory |
|
the x writing position in the current image |
|
the y writing position in the current image |
|
the status of cfitsio (fitsio.h) |