C Standard Library Extensions  6.2.0
qfits_rw.h
1 /* $Id: qfits_rw.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
2  *
3  * This file is part of the ESO QFITS Library
4  * Copyright (C) 2001-2004 European Southern Observatory
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20 
21 /*
22  * $Author: agabasch $
23  * $Date: 2008-11-03 13:40:49 $
24  * $Revision: 1.1.1.1 $
25  * $Name: not supported by cvs2svn $
26  */
27 
28 #ifndef QFITS_RW_H
29 #define QFITS_RW_H
30 
31 /*-----------------------------------------------------------------------------
32  Includes
33  -----------------------------------------------------------------------------*/
34 
35 #include "qfits_header.h"
36 
37 /*-----------------------------------------------------------------------------
38  Function ANSI prototypes
39  -----------------------------------------------------------------------------*/
40 
41 qfits_header * qfits_header_read(const char *) ;
42 qfits_header * qfits_header_read_hdr(const char *) ;
43 qfits_header * qfits_header_read_hdr_string(const unsigned char *, int) ;
44 qfits_header * qfits_header_readext(const char *, int) ;
45 void qfits_zeropad(const char *) ;
46 int qfits_is_fits(const char *) ;
47 int qfits_get_hdrinfo(const char *, int, int *, int *) ;
48 int qfits_get_datinfo(const char *, int, int *, int *) ;
49 
50 #endif
int qfits_get_hdrinfo(const char *, int, int *, int *)
Retrieve offset to start and size of a header in a FITS file.
Definition: qfits_rw.c:449
qfits_header * qfits_header_readext(const char *, int)
Read an extension header from a FITS file.
Definition: qfits_rw.c:280
void qfits_zeropad(const char *)
Pad an existing file with zeros to a multiple of 2880.
Definition: qfits_rw.c:366
FITS header object.
Definition: qfits_header.h:54
qfits_header * qfits_header_read_hdr_string(const unsigned char *, int)
Read a FITS header from a 'hdr' string.
Definition: qfits_rw.c:196
qfits_header * qfits_header_read(const char *)
Read a FITS header from a file to an internal structure.
Definition: qfits_rw.c:95
int qfits_get_datinfo(const char *, int, int *, int *)
Retrieve offset to start and size of a data section in a file.
Definition: qfits_rw.c:490
int qfits_is_fits(const char *)
Identify if a file is a FITS file.
Definition: qfits_rw.c:406
qfits_header * qfits_header_read_hdr(const char *)
Read a FITS header from a 'hdr' file.
Definition: qfits_rw.c:113