MUSE Pipeline Reference Manual  2.1.1
muse_phys.h
1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set sw=2 sts=2 et cin: */
3 /*
4  * This file is part of the MUSE Instrument Pipeline
5  * Copyright (C) 2015 European Southern Observatory
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  */
21 
22 #ifndef MUSE_PHYS_H
23 #define MUSE_PHYS_H
24 
25 /*----------------------------------------------------------------------------*
26  * Includes *
27  *----------------------------------------------------------------------------*/
28 #include <cpl.h>
29 
30 #include "muse_pixtable.h"
31 
32 /*----------------------------------------------------------------------------*
33  * Defines *
34  *----------------------------------------------------------------------------*/
35 #define MUSE_PHYS_hPa_TO_mmHg 0.75006158 /* conversion from hPa (or mbar) *
36  * to mmHg, needed for Filippenko */
37 
38 /*----------------------------------------------------------------------------*
39  * Special variable types *
40  *----------------------------------------------------------------------------*/
41 
45 /*----------------------------------------------------------------------------*/
52 /*----------------------------------------------------------------------------*/
54  /* either standard or measured air parameters, force the 1 in *
55  * the first bit, so that one /has/ to make a choice for this */
59  /* the method to convert it, bits 3 and 4 */
64 };
65 
68 /*----------------------------------------------------------------------------*
69  * Function prototypes *
70  *----------------------------------------------------------------------------*/
72 void muse_phys_nrindex_owens_coeffs(double, double, double, double *, double *);
73 double muse_phys_nrindex_owens(double, double, double);
74 double muse_phys_nrindex_edlen(double, double, double, double);
75 double muse_phys_nrindex_ciddor(double, double, double, double, double);
76 double muse_phys_nrindex_filippenko(double, double, double, double);
77 
78 cpl_error_code muse_phys_air_to_vacuum(muse_pixtable *, unsigned int);
79 
80 #endif /* MUSE_PHYS_H */
double muse_phys_nrindex_edlen(double, double, double, double)
Compute the refractive index for the given wavelength following Edlén.
Definition: muse_phys.c:115
double muse_phys_nrindex_filippenko(double, double, double, double)
Compute the refractive index for the given wavelength following Filippenko.
Definition: muse_phys.c:193
void muse_phys_nrindex_owens_coeffs(double, double, double, double *, double *)
Compute the two coefficients for the Owens method.
Definition: muse_phys.c:70
double muse_phys_nrindex_ciddor(double, double, double, double, double)
Compute the refractive index for the given wavelength following Ciddor.
Definition: muse_phys.c:148
double muse_phys_nrindex_owens(double, double, double)
Compute the refractive index for the given wavelength following Owens.
Definition: muse_phys.c:95
muse_phys_flags
Flags with special bit setup to pass to muse_phys_air_to_vacuum().
Definition: muse_phys.h:53
Structure definition of MUSE pixel table.
cpl_error_code muse_phys_air_to_vacuum(muse_pixtable *, unsigned int)
Convert a pixel table from air to vacuum wavelengths.
Definition: muse_phys.c:261
double muse_phys_nrindex_owens_saturation_pressure(double temp)
Compute the saturation pressure using the Owens calibration.
Definition: muse_phys.c:54