ARTS  2.2.66
sensor.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2012 Mattias Ekström <ekstrom@rss.chalmers.se>
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 
18 
19 
20 /*===========================================================================
21  === File description
22  ===========================================================================*/
23 
36 #ifndef sensor_h
37 #define sensor_h
38 
39 #include "arts.h"
40 #include "gridded_fields.h"
41 #include "interpolation.h"
42 #include "math_funcs.h"
43 #include "matpackI.h"
44 #include "matpackII.h"
45 
46 
47 /*===========================================================================
48  === Functions from sensor.cc
49  ===========================================================================*/
50 
51 void antenna1d_matrix(
52  Sparse& H,
53  const Index& antenna_dim,
54  ConstMatrixView antenna_los,
55  const GriddedField4& antenna_response,
56  ConstVectorView za_grid,
57  ConstVectorView f_grid,
58  const Index n_pol,
59  const Index do_norm );
60 
62  Sparse& H,
63  const Index& antenna_dim,
64  ConstMatrixView antenna_los,
65  const GriddedField4& antenna_response,
66  ConstVectorView za_grid,
67  ConstVectorView aa_grid,
68  ConstVectorView f_grid,
69  const Index n_pol,
70  const Index do_norm );
71 
73  Vector& x,
74  Vector& y,
75  const Numeric& x0,
76  const Numeric& fwhm,
77  const Numeric& xwidth_si,
78  const Numeric& dx_si );
79 
81  Vector& y,
82  const Vector& x,
83  const Numeric& x0,
84  const Numeric& fwhm );
85 
86 void mixer_matrix(
87  Sparse& H,
88  Vector& f_mixer,
89  const Numeric& lo,
90  const GriddedField1& filter,
91  ConstVectorView f_grid,
92  const Index& n_pol,
93  const Index& n_sp,
94  const Index& do_norm );
95 
97  Vector& sensor_response_f,
98  ArrayOfIndex& sensor_response_pol,
99  Vector& sensor_response_za,
100  Vector& sensor_response_aa,
101  ConstVectorView sensor_response_f_grid,
102  const ArrayOfIndex& sensor_response_pol_grid,
103  ConstVectorView sensor_response_za_grid,
104  ConstVectorView sensor_response_aa_grid,
105  const Index za_aa_independent );
106 
108  VectorView h,
109  ConstVectorView f,
110  ConstVectorView x_f_in,
111  ConstVectorView x_g_in );
113  VectorView h,
114  ConstVectorView f,
115  ConstVectorView x_f_in,
116  ConstVectorView x_g_in );
117 
119  VectorView h,
120  ConstVectorView f,
121  ConstVectorView x_f,
122  ConstVectorView x_g,
123  const Numeric x1,
124  const Numeric x2 );
125 
126 void spectrometer_matrix(
127  Sparse& H,
128  ConstVectorView ch_f,
129  const ArrayOfGriddedField1& ch_response,
130  ConstVectorView sensor_f,
131  const Index& n_pol,
132  const Index& n_sp,
133  const Index& do_norm );
134 
135 void stokes2pol(
136  ArrayOfVector& s2p,
137  const Numeric& w );
138 
139 void find_effective_channel_boundaries(// Output:
140  Vector& fmin,
141  Vector& fmax,
142  // Input:
143  const Vector& f_backend,
144  const ArrayOfGriddedField1& backend_channel_response,
145  const Numeric& delta,
146  const Verbosity& verbosity);
147 
148 #endif // sensor_h
INDEX Index
The type to use for all integer numbers and indices.
Definition: matpack.h:35
void stokes2pol(ArrayOfVector &s2p, const Numeric &w)
stokes2pol
Definition: sensor.cc:1196
The VectorView class.
Definition: matpackI.h:372
The Vector class.
Definition: matpackI.h:556
The Sparse class.
Definition: matpackII.h:55
void sensor_summation_vector(VectorView h, ConstVectorView f, ConstVectorView x_f, ConstVectorView x_g, const Numeric x1, const Numeric x2)
sensor_summation_vector
Definition: sensor.cc:1030
cmplx FADDEEVA() w(cmplx z, double relerr)
Definition: Faddeeva.cc:679
Header file for interpolation.cc.
void gaussian_response_autogrid(Vector &x, Vector &y, const Numeric &x0, const Numeric &fwhm, const Numeric &xwidth_si, const Numeric &dx_si)
gaussian_response_autogrid
Definition: sensor.cc:412
void sensor_aux_vectors(Vector &sensor_response_f, ArrayOfIndex &sensor_response_pol, Vector &sensor_response_za, Vector &sensor_response_aa, ConstVectorView sensor_response_f_grid, const ArrayOfIndex &sensor_response_pol_grid, ConstVectorView sensor_response_za_grid, ConstVectorView sensor_response_aa_grid, const Index za_aa_independent)
sensor_aux_vectors
Definition: sensor.cc:627
The global header file for ARTS.
Header file for sparse matrices.
void spectrometer_matrix(Sparse &H, ConstVectorView ch_f, const ArrayOfGriddedField1 &ch_response, ConstVectorView sensor_f, const Index &n_pol, const Index &n_sp, const Index &do_norm)
spectrometer_matrix
Definition: sensor.cc:1096
NUMERIC Numeric
The type to use for all floating point numbers.
Definition: matpack.h:29
void sensor_integration_vector2(VectorView h, ConstVectorView f, ConstVectorView x_f_in, ConstVectorView x_g_in)
sensor_integration_vector
Definition: sensor.cc:886
This can be used to make arrays out of anything.
Definition: array.h:40
void mixer_matrix(Sparse &H, Vector &f_mixer, const Numeric &lo, const GriddedField1 &filter, ConstVectorView f_grid, const Index &n_pol, const Index &n_sp, const Index &do_norm)
mixer_matrix
Definition: sensor.cc:496
void gaussian_response(Vector &y, const Vector &x, const Numeric &x0, const Numeric &fwhm)
gaussian_response
Definition: sensor.cc:452
A constant view of a Vector.
Definition: matpackI.h:292
A constant view of a Matrix.
Definition: matpackI.h:596
void find_effective_channel_boundaries(Vector &fmin, Vector &fmax, const Vector &f_backend, const ArrayOfGriddedField1 &backend_channel_response, const Numeric &delta, const Verbosity &verbosity)
Calculate channel boundaries from instrument response functions.
Definition: sensor.cc:1325
Implementation of gridded fields.
void sensor_integration_vector(VectorView h, ConstVectorView f, ConstVectorView x_f_in, ConstVectorView x_g_in)
sensor_integration_vector
Definition: sensor.cc:723
void antenna2d_simplified(Sparse &H, const Index &antenna_dim, ConstMatrixView antenna_los, const GriddedField4 &antenna_response, ConstVectorView za_grid, ConstVectorView aa_grid, ConstVectorView f_grid, const Index n_pol, const Index do_norm)
antenna2d_simplified
Definition: sensor.cc:247
void antenna1d_matrix(Sparse &H, const Index &antenna_dim, ConstMatrixView antenna_los, const GriddedField4 &antenna_response, ConstVectorView za_grid, ConstVectorView f_grid, const Index n_pol, const Index do_norm)
antenna1d_matrix
Definition: sensor.cc:79