MOONS Pipeline Reference Manual 0.13.1
moo_fits.h
1/*
2 * This file is part of the MOONS Pipeline
3 * Copyright (C) 2002-2016 European Southern Observatory
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20#ifndef MOO_FITS_H
21#define MOO_FITS_H
22
23
24/*-----------------------------------------------------------------------------
25 Includes
26 -----------------------------------------------------------------------------*/
27
28#include <cpl.h>
29/*-----------------------------------------------------------------------------
30 Types
31 -----------------------------------------------------------------------------*/
32
33
34/*-----------------------------------------------------------------------------
35 Functions prototypes
36 -----------------------------------------------------------------------------*/
37cpl_error_code moo_fits_create(const char *filename);
38cpl_error_code moo_fits_write_extension_mask(cpl_mask *mask,
39 const char *filename,
40 const char *name,
41 const char *detectorname,
42 cpl_propertylist *header);
43cpl_error_code moo_fits_write_extension_image(cpl_image *image,
44 const char *filename,
45 const char *name,
46 const char *detectorname,
47 cpl_type type,
48 cpl_propertylist *header);
49cpl_error_code moo_fits_write_extension_table(cpl_table *table,
50 const char *filename,
51 const char *name,
52 const char *detectorname,
53 cpl_propertylist *header);
54cpl_error_code moo_fits_write_extension_cube(cpl_imagelist *cube,
55 const char *filename,
56 const char *name,
57 const char *detectorname,
58 cpl_type type,
59 cpl_propertylist *header);
60cpl_image *moo_fits_load_extension_image(const char *filename,
61 const char *name,
62 const char *detectorname,
63 cpl_type type);
64cpl_table *moo_fits_load_extension_table(const char *filename,
65 const char *name,
66 const char *detectorname);
67cpl_mask *moo_fits_load_extension_mask(const char *filename,
68 const char *name,
69 const char *detectorname);
70cpl_imagelist *moo_fits_load_extension_cube(const char *filename,
71 const char *name,
72 const char *detectorname,
73 cpl_type type);
74cpl_propertylist *moo_fits_load_extension_header(const char *filename,
75 const char *name,
76 const char *detectorname);
77#endif
cpl_error_code moo_fits_write_extension_mask(cpl_mask *mask, const char *filename, const char *name, const char *detectorname, cpl_propertylist *header)
Write a mask as extension in FITS file.
Definition: moo_fits.c:61
cpl_error_code moo_fits_write_extension_image(cpl_image *image, const char *filename, const char *name, const char *detectorname, cpl_type type, cpl_propertylist *header)
Write an image as extension in FITS file.
Definition: moo_fits.c:123
cpl_error_code moo_fits_create(const char *filename)
Create a new fits file with empty propertylist.
Definition: moo_fits.c:533
cpl_mask * moo_fits_load_extension_mask(const char *filename, const char *name, const char *detectorname)
Load a mask from FITS file.
Definition: moo_fits.c:406
cpl_table * moo_fits_load_extension_table(const char *filename, const char *name, const char *detectorname)
Load a table from FITS file.
Definition: moo_fits.c:359
cpl_image * moo_fits_load_extension_image(const char *filename, const char *name, const char *detectorname, cpl_type type)
Load an image from FITS file.
Definition: moo_fits.c:311
cpl_imagelist * moo_fits_load_extension_cube(const char *filename, const char *name, const char *detectorname, cpl_type type)
Load a cube from FITS file.
Definition: moo_fits.c:455
cpl_error_code moo_fits_write_extension_table(cpl_table *table, const char *filename, const char *name, const char *detectorname, cpl_propertylist *header)
Write an image as extension in FITS file.
Definition: moo_fits.c:187
cpl_error_code moo_fits_write_extension_cube(cpl_imagelist *cube, const char *filename, const char *name, const char *detectorname, cpl_type type, cpl_propertylist *header)
Write a cube as extension in FITS file.
Definition: moo_fits.c:250