ARTS 2.5.4 (git: 31ce4f0e)
mc_interp.h
Go to the documentation of this file.
1/* Copyright (C) 2005-2012 Cory Davis <cory@met.ed.ac.uk>
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU General Public License as published by the
5 Free Software Foundation; either version 2, or (at your option) any
6 later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License
14 along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 USA. */
17
28/*===========================================================================
29 === External declarations
30 ===========================================================================*/
31
32#ifndef mc_interp_h
33#define mc_interp_h
34#include "array.h"
35#include "arts.h"
36#include "interpolation.h"
37#include "matpackI.h"
38#include "optproperties.h"
39#include "ppath.h"
40
52class SLIData2 {
53 public:
54 //grid of x1 values where y is known
56 //A vector of x2 values for every x1a
58 //y values for every x1a, x2a
60 //performs SLI.
61 Numeric interpolate(Numeric x1, Numeric x2) const;
62 //checks that it is not empty
63 //void check() const;
64
65 friend ostream& operator<<(ostream& os, const SLIData2& sli);
66};
67
86void interp(MatrixView tia,
88 const ArrayOfMatrix& a,
89 const GridPos& tc);
90
109void interp(VectorView tia,
110 ConstVectorView itw,
111 const ArrayOfVector& a,
112 const GridPos& tc);
113
130void interp_scat_angle_temperature( //Output:
131 VectorView pha_mat_int,
132 Numeric& theta_rad,
133 //Input:
134 const SingleScatteringData& scat_data_single,
135 const Numeric& za_sca,
136 const Numeric& aa_sca,
137 const Numeric& za_inc,
138 const Numeric& aa_inc,
139 const Numeric& rtp_temperature);
140
141#endif // mc_interp_h
This file contains the definition of Array.
The global header file for ARTS.
A constant view of a Vector.
Definition: matpackI.h:512
The MatrixView class.
Definition: matpackI.h:1164
A 2D sequential linear interpolation (SLI) lookup table This class holds the gridded for 2D SLI as we...
Definition: mc_interp.h:52
ArrayOfVector x2a
Definition: mc_interp.h:57
Numeric interpolate(Numeric x1, Numeric x2) const
Definition: mc_interp.cc:40
ArrayOfVector ya
Definition: mc_interp.h:59
Vector x1a
Definition: mc_interp.h:55
friend ostream & operator<<(ostream &os, const SLIData2 &sli)
Definition: mc_interp.cc:64
The VectorView class.
Definition: matpackI.h:663
The Vector class.
Definition: matpackI.h:899
Header file for interpolation.cc.
Implementation of Matrix, Vector, and such stuff.
NUMERIC Numeric
The type to use for all floating point numbers.
Definition: matpack.h:33
void interp(MatrixView tia, ConstVectorView itw, const ArrayOfMatrix &a, const GridPos &tc)
interp.
Definition: mc_interp.cc:69
void interp_scat_angle_temperature(VectorView pha_mat_int, Numeric &theta_rad, const SingleScatteringData &scat_data_single, const Numeric &za_sca, const Numeric &aa_sca, const Numeric &za_inc, const Numeric &aa_inc, const Numeric &rtp_temperature)
interp_scat_angle_temperature.
Definition: mc_interp.cc:116
Scattering database structure and functions.
Propagation path structure and functions.
Structure to store a grid position.
Definition: interpolation.h:73
#define a