The VisAO Camera
visaoimutils.cpp File Reference

Definitions for various image utility functions. More...

#include "visaoimutils.h"

Go to the source code of this file.

Macros

#define ERROR_REPORT(er, f, l)   if(global_error_report) (*global_error_report)(er,f,l);
 

Functions

void init_visao_imheader (visao_imheader *imhead)
 
int get_visao_filename (char *buffer, struct timeval *tv)
 Writes the standard visao unique filename for a timeval to the buffer. More...
 
int get_visao_filename (char *buffer, struct timespec *ts)
 Writes the standard visao unique filename for a timespec to the buffer. More...
 
int write_visao_fits_aosys_header (fitsfile *outfptr, visao_imheader *head)
 
int write_visao_fits_visao_header (fitsfile *outfptr, visao_imheader *head)
 
template<>
int visao_fits_create_img< short > (fitsfile *fptr, int naxis, long *naxes, int *status)
 
template<>
int visao_fits_create_img< unsigned char > (fitsfile *fptr, int naxis, long *naxes, int *status)
 
template<>
int visao_fits_write_subset< short > (fitsfile *fptr, long *fpixel, long *lpixel, short *array, int *status)
 
template<>
int visao_fits_write_subset< unsigned char > (fitsfile *fptr, long *fpixel, long *lpixel, unsigned char *array, int *status)
 
int write_visao_raw (const char *name_base, sharedimS *sim, visao_imheader *head __attribute__((unused)))
 
int get_fits_im (unsigned char *im, long hduno, long *fpix, long *lpix, fitsfile **fptr, const char *fname)
 
int get_fits_im (float *im, long hduno, long *fpix, long *lpix, fitsfile **fptr, const char *fname)
 
int get_fits_im (double *im, long hduno, long *fpix, long *lpix, fitsfile **fptr, const char *fname)
 

Detailed Description

Author
Jared R. Males

Definition in file visaoimutils.cpp.

Function Documentation

int get_visao_filename ( char *  buffer,
struct timeval tv 
)

YYYYMODDHHMMSSUUUUUU where YYYY = the 4 digit year MO = the 2 digit month DD = the 2 digit day HH = the 2 digit hour MM = the 2 digit minut SS = the 2 digit second UUUUUU = the 6 digit microsecond

Parameters
bufferpointer to be written to, must be allocated to at least 21
tvis the time to use to construct the filename.
Return values
0on success.
-1on failure in gmtime_r.

Definition at line 39 of file visaoimutils.cpp.

Referenced by VisAO::ShutterControlDioclient::getDataFileName(), and write_visao_fits().

int get_visao_filename ( char *  buffer,
struct timespec *  ts 
)

YYYYMODDHHMMSSUUUUUU where YYYY = the 4 digit year MO = the 2 digit month DD = the 2 digit day HH = the 2 digit hour MM = the 2 digit minut SS = the 2 digit second UUUUUU = the 6 digit microsecond

Parameters
bufferpointer to be written to, must be allocated to at least 21
tsis the time to use to construct the filename.
Return values
0on success.
-1on failure in gmtime_r.

Definition at line 57 of file visaoimutils.cpp.