39 #ifndef HAVE_MC_ATMPROF 41 # define HAVE_MC_ATMPROF 1 78 void atmegs_default(
void);
88 double rhofc (
double *height);
89 double thickc (
double *height);
90 double refidc (
double *height);
91 double refim1c (
double *height);
92 double heighc (
double *
thick);
double hlay[6]
Layer bounderies a.s.l.
Definition: mc_atmprof.h:60
double * rho
Density [g/cm^3] at each level.
Definition: mc_atmprof.h:56
Atmospheric profile as stored in atmprof*.dat files - the actually used columns only.
Definition: mc_atmprof.h:49
double * refidx_m1
Index of refraction minus one (n-1) at given level.
Definition: mc_atmprof.h:58
double datm[5]
Inverse of catm values (if non-zero)
Definition: mc_atmprof.h:64
double thickl[6]
Atmospheric thickness at given hlay heights.
Definition: mc_atmprof.h:65
unsigned n_alt
Number of altitude levels.
Definition: mc_atmprof.h:54
double catm[5]
See ATMC CORSIKA inputs card.
Definition: mc_atmprof.h:63
void set_common_atmprof(AtmProf *atmprof)
Set the common profile from a separate copy.
Definition: mc_atmprof.c:58
double * thick
Vertical column density from space to given level [g/cm^2].
Definition: mc_atmprof.h:57
double obslev
Observation level [cm], a.s.l., as used in CORSIKA.
Definition: mc_atmprof.h:53
double batm[5]
See ATMB CORSIKA inputs card.
Definition: mc_atmprof.h:62
double * alt_km
Altitude a.s.l.
Definition: mc_atmprof.h:55
double rhofc(double *height)
C-called functions equivalent to the CORSIKA-built-in functions to evaluate the 5-layer parametrizati...
Definition: mc_atmprof.c:239
void atmegs_(int *nlay, double *hlay, double *aatm, double *batm, double *catm, double *datm, double *htoa)
Fill the 5-layer parameters into the common atmospheric profile structure for keeping track of that t...
Definition: mc_atmprof.c:178
int atmprof_id
Profile ID number ('atmprof<i>.dat') or 99.
Definition: mc_atmprof.h:51
int have_lay5_param
Is 1 if the 5-layer CORSIKA built-in parametrization is known, 0 if not.
Definition: mc_atmprof.h:59
double htoa
Height (a.s.l.) at top of atmosphere [cm].
Definition: mc_atmprof.h:66
void show_atmprof(AtmProf *atmprof)
Show a readable version of the tabulated atmospheric profile (basically like in the original tables,...
Definition: mc_atmprof.c:133
AtmProf * get_common_atmprof(void)
Make this copy of the atmospheric profile available elsewhere.
Definition: mc_atmprof.c:48
char * atmprof_fname
Original name of atmospheric profile loaded.
Definition: mc_atmprof.h:52
double aatm[5]
See ATMA CORSIKA inputs card.
Definition: mc_atmprof.h:61