CORSIKA add-on package IACT/ATMO:
Version 1.63 (November 2020)
|
Interface to the atmospheric profile structure. More...
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "mc_atmprof.h"
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 *aprof) |
Set the common profile from a separate copy. | |
void | show_atmprof (AtmProf *aprof) |
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) |
Variables | |
static AtmProf | common_atmprof |
Keep track of atmospheric profiles loaded from text tables. | |
static double | etadsn0 = 0.000283 * 994186.38 / 1222.656 |
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.