/* fitsio.h Library of FITS file read/write and header encode/decode routines */ #include void flinl0 (char headline[81], char *keywd, int xval, char *comstr); void flins0 (char headline[81], char *keywd, char *xval, char *comstr); void flini0 (char headline[81], char *keywd, int xval, char *comstr); void flinr0 (char headline[81], char *keywd, float xval, char *comstr); int fits_head_encode (char (*header)[81], int ltype, int bitpix, int nax, int naxes[], float bzero, float bscale, char *bunit); char *obsstr (char obstyp); int fits_head_bbso (char (*header)[81], int iline, char *object, char *objcom, char obs, char *obscom, int seeing, int telpos[2], struct tm *btim, char *timecom, char *tel, char *waveln, char *wavecom, char *obsrvr); char *delspace(char *buffer); int fhedr_parse (char header[][81], int maxln, char *keywd, char **value, char **comment); int freadl(char header[][81], int maxln, char *keywd, int *xval, char *comstr); int freadi(char header[][81], int maxln, char *keywd, int *xval, char *comstr); int freadr(char header[][81], int maxln, char *keywd,float *xval,char *comstr); int freads(char header[][81], int maxln, char *keywd, char *xval,char *comstr); int fits_head_decode (char (*header)[81], int maxln, int *bitpix,int naxes[2]); void swap_bytes (unsigned char *buffer, int size); int fits_read (char *filename, char (**header)[81], int *maxln, void **picture, int naxes[2], int *bitpix); int fits_write (char *filename, char (*header)[81], int maxln, void *picture, int naxes[2], int bitpix);