CORSIKA add-on package IACT/ATMO:  Version 1.63 (November 2020)
Functions | Variables
mc_atmprof.c File Reference

Interface to the atmospheric profile structure. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "mc_atmprof.h"
Include dependency graph for mc_atmprof.c:
This graph shows which files directly or indirectly include this file:

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)
 
AtmProfget_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
 

Function Documentation

◆ rhofc()

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.