C Standard Library Extensions
6.2.0
Main Page
Modules
Classes
Files
File List
src
qfits_tools.h
1
/* $Id: qfits_tools.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_TOOLS_H
29
#define QFITS_TOOLS_H
30
31
/*-----------------------------------------------------------------------------
32
Includes
33
-----------------------------------------------------------------------------*/
34
35
#include <stdio.h>
36
#include <stdlib.h>
37
#include <string.h>
38
39
/*-----------------------------------------------------------------------------
40
Defines
41
-----------------------------------------------------------------------------*/
42
43
/* Unknown type for FITS value */
44
#define QFITS_UNKNOWN 0
45
/* Boolean type for FITS value */
46
#define QFITS_BOOLEAN 1
47
/* Int type for FITS value */
48
#define QFITS_INT 2
49
/* Float type for FITS value */
50
#define QFITS_FLOAT 3
51
/* Complex type for FITS value */
52
#define QFITS_COMPLEX 4
53
/* String type for FITS value */
54
#define QFITS_STRING 5
55
56
/*-----------------------------------------------------------------------------
57
Function codes
58
-----------------------------------------------------------------------------*/
59
60
char
*
qfits_query_hdr
(
const
char
*,
const
char
*) ;
61
char
*
qfits_query_ext
(
const
char
*,
const
char
*,
int
) ;
62
int
qfits_query_n_ext
(
const
char
*) ;
63
int
qfits_query_nplanes
(
const
char
*,
int
) ;
64
char
*
qfits_pretty_string
(
const
char
*) ;
65
int
qfits_is_boolean
(
const
char
*) ;
66
int
qfits_is_int
(
const
char
*) ;
67
int
qfits_is_float
(
const
char
*) ;
68
int
qfits_is_complex
(
const
char
*) ;
69
int
qfits_is_string
(
const
char
*) ;
70
int
qfits_get_type
(
const
char
*) ;
71
char
*
qfits_query_card
(
const
char
*,
const
char
*) ;
72
int
qfits_replace_card
(
const
char
*,
const
char
*,
const
char
*) ;
73
const
char
*
qfits_version
(
void
) ;
74
75
#endif
qfits_is_boolean
int qfits_is_boolean(const char *)
Identify if a FITS value is boolean.
Definition:
qfits_tools.c:357
qfits_get_type
int qfits_get_type(const char *)
Identify the type of a FITS value given as a string.
Definition:
qfits_tools.c:473
qfits_query_card
char * qfits_query_card(const char *, const char *)
Query a card in a FITS (main) header by a given key.
Definition:
qfits_tools.c:491
qfits_replace_card
int qfits_replace_card(const char *, const char *, const char *)
Replace a card in a FITS (main) header by a given card.
Definition:
qfits_tools.c:578
qfits_query_hdr
char * qfits_query_hdr(const char *, const char *)
Retrieve the value of a key in a FITS header.
Definition:
qfits_tools.c:113
qfits_query_n_ext
int qfits_query_n_ext(const char *)
Counts the number of extensions in a FITS file.
Definition:
qfits_tools.c:226
qfits_is_string
int qfits_is_string(const char *)
Identify if a FITS value is string.
Definition:
qfits_tools.c:450
qfits_version
const char * qfits_version(void)
Return the current QFITS version.
Definition:
qfits_tools.c:656
qfits_is_int
int qfits_is_int(const char *)
Identify if a FITS value is an int.
Definition:
qfits_tools.c:375
qfits_is_float
int qfits_is_float(const char *)
Identify if a FITS value is float.
Definition:
qfits_tools.c:400
qfits_is_complex
int qfits_is_complex(const char *)
Identify if a FITS value is complex.
Definition:
qfits_tools.c:425
qfits_query_nplanes
int qfits_query_nplanes(const char *, int)
Counts the number of planes in a FITS extension.
Definition:
qfits_tools.c:241
qfits_query_ext
char * qfits_query_ext(const char *, const char *, int)
Retrieve the value of a keyin a FITS extension header.
Definition:
qfits_tools.c:131
qfits_pretty_string
char * qfits_pretty_string(const char *)
Clean out a FITS string value.
Definition:
qfits_tools.c:301
Generated by
1.8.6