|
CORSIKA add-on package IACT/ATMO:
Version 1.70 (August 2025)
|
A data structure shared between io_simtel.c and atmo.c - which is used by both sim_telarray and the CORSIKA IACT/atmo package. More...

Go to the source code of this file.
Data Structures | |
| struct | atmospheric_profile |
| Atmospheric profile as stored in atmprof*.dat files - the actually used columns only. More... | |
Typedefs | |
| typedef struct atmospheric_profile | AtmProf |
Functions | |
| 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 together with the tabular input. | |
| void | atmegs_default (void) |
| AtmProf * | get_common_atmprof (void) |
| Make this copy of the atmospheric profile available elsewhere. | |
| double | heighc (double *thick) |
| double | refidc (double *height) |
| double | refim1c (double *height) |
| double | rhofc (double *height) |
| C-called functions equivalent to the CORSIKA-built-in functions to evaluate the 5-layer parametrization. More... | |
| void | set_common_atmprof (AtmProf *atmprof) |
| Set the common profile from a separate copy. | |
| void | show_atmprof (AtmProf *atmprof) |
| Show a readable version of the tabulated atmospheric profile (basically like in the original tables, except for comments and extra unused columns), plus the 5-layer parametrization, if available. | |
| double | thickc (double *height) |
Filling the structure from text format tables is handled by atmo.c while EventIO input and output is handled by io_simtel.c. The purpose of the structure is for keeping track of the profile actually used. Evaluating/interpolating it is handled elsewhere. In addition to the tabulated profiles, it can also keep track of the 5-layer parametrization as hard-wired into the CORSIKA EGS part.
| double rhofc | ( | double * | height | ) |
Assumes that these parameters have been set before. Where the numerical table is available it should be used once to initialize the atmospheric profile and then use the corresponding rhofx_(), ... functions for the evaulation instead.
References atmospheric_profile::batm, common_atmprof, atmospheric_profile::datm, and atmospheric_profile::hlay.