5#include "matpack_concepts.h"
39 const Index &stokes_dim,
40 const Numeric &radius,
41 const Numeric &distance,
42 const Numeric &temperature,
43 const Numeric &latitude,
44 const Numeric &longitude,
49 "The distance to the center of the sun (",distance,
" m) \n"
50 " is smaller than the radius of the sun (", radius,
" m )")
52 Sun& new_sun = suns.emplace_back();
55 new_sun.
spectrum=Matrix(f_grid.nelem(), stokes_dim,0. );
76 const Index &stokes_dim,
78 const Numeric &radius,
79 const Numeric &distance,
80 const Numeric &temperature,
81 const Numeric &latitude,
82 const Numeric &longitude,
88 "The distance to the center of the sun (",distance,
" m) \n"
89 " is smaller than the radius of the sun (", radius,
" m )")
92 Sun& new_sun = suns.emplace_back();
110 const Vector &f_grid,
111 const Index &stokes_dim,
112 const Vector &refellipsoid,
114 const Numeric &radius,
115 const Numeric &distance,
116 const Numeric &temperature,
117 const Numeric &zenith,
118 const Numeric &azimuth,
119 const String &description,
120 const Numeric &location_latitude,
121 const Numeric &location_longitude,
122 const Numeric &location_altitude,
127 "The distance to the center of the sun (",distance,
" m) \n"
128 "is smaller than the radius of the sun (", radius,
" m )")
130 "The altitude of the solar spectrum should be positiv,\n"
131 "but is ",location_altitude,
" m) ")
134 Numeric toa_altitude = location_altitude +
refell2r(refellipsoid, location_latitude);
136 Numeric sun_altitude, sun_latitude, sun_longitude;
138 sun_altitude = distance + toa_altitude;
139 sun_latitude = location_latitude;
140 sun_longitude = location_longitude;
141 }
else if (zenith > 180 -
ANGTOL) {
142 sun_altitude = distance - toa_altitude;
143 sun_latitude = -location_latitude;
144 sun_longitude = location_longitude + 180 - 360.0 * Numeric(round((location_longitude - 0.0) / 360.0));
146 Numeric x, y, z, dx, dy, dz;
173 Numeric scale_factor = (radius*radius + distance*distance)/
177 Sun& new_sun = suns.emplace_back();
The global header file for ARTS.
This can be used to make arrays out of anything.
#define ARTS_USER_ERROR_IF(condition,...)
void cart2sph(Numeric &r, Numeric &lat, Numeric &lon, const Numeric &x, const Numeric &y, const Numeric &z, const Numeric &lat0, const Numeric &lon0, const Numeric &za0, const Numeric &aa0)
cart2sph
Numeric refell2r(ConstVectorView refellipsoid, const Numeric &lat)
refell2r
void poslos2cart(Numeric &x, Numeric &z, Numeric &dx, Numeric &dz, const Numeric &r, const Numeric &lat, const Numeric &za)
poslos2cart
void sunsAddSingleBlackbody(ArrayOfSun &suns, Index &suns_do, const Vector &f_grid, const Index &stokes_dim, const Numeric &radius, const Numeric &distance, const Numeric &temperature, const Numeric &latitude, const Numeric &longitude, const Verbosity &)
WORKSPACE METHOD: sunsAddSingleBlackbody.
void sunsAddSingleFromGridAtLocation(ArrayOfSun &suns, Index &suns_do, const Vector &f_grid, const Index &stokes_dim, const Vector &refellipsoid, const GriddedField2 &sun_spectrum_raw, const Numeric &radius, const Numeric &distance, const Numeric &temperature, const Numeric &zenith, const Numeric &azimuth, const String &description, const Numeric &location_latitude, const Numeric &location_longitude, const Numeric &location_altitude, const Verbosity &verbosity)
WORKSPACE METHOD: sunsAddSingleFromGridAtLocation.
void sunsAddSingleFromGrid(ArrayOfSun &suns, Index &suns_do, const Vector &f_grid, const Index &stokes_dim, const GriddedField2 &sun_spectrum_raw, const Numeric &radius, const Numeric &distance, const Numeric &temperature, const Numeric &latitude, const Numeric &longitude, const String &description, const Verbosity &verbosity)
WORKSPACE METHOD: sunsAddSingleFromGrid.
void sunsOff(Index &suns_do, ArrayOfSun &suns, const Verbosity &)
WORKSPACE METHOD: sunsOff.
Declarations having to do with the four output streams.
constexpr Numeric pi
The following mathematical constants are generated in python Decimal package by the code:
Numeric planck(const Numeric &f, const Numeric &t)
planck
This file contains declerations of functions of physical character.
constexpr Numeric ANGTOL
Width of zenith and nadir directions.
The structure to describe a propagation path and releated quantities.
String description
Sun description.
Matrix spectrum
Sun spectrum, monochrmatic radiance spectrum at the surface of the sun.
Numeric latitude
latitude of the sun in the sky of the planet
Numeric longitude
longitude of the sun in the sky of the planet
Numeric distance
distance from center of planet to center of sun
Numeric radius
Sun radius.
Matrix regrid_sun_spectrum(const GriddedField2 &sun_spectrum_raw, const Vector &f_grid, const Index &stokes_dim, const Numeric &temperature, const Verbosity &verbosity)
regrid_sun_spectrum
Declaration of functions in star.cc.