CORSIKA add-on package IACT/ATMO:  Version 1.63 (November 2020)
Data Fields
rpol_table Struct Reference

Structure describing an interpolation table, interpolation scheme and selected options. More...

#include <rpolator.h>

Collaboration diagram for rpol_table:
Collaboration graph
[legend]

Data Fields

double aux
 This auxiliary value may be useful to the application but is not used internally. More...
 
int clipping
 0: Extrapolate with edge value, 1: zero outside range. More...
 
CsplineParcsp
 Cubic spline parameters (scheme 3 and 4 only), need one-time initialisation. More...
 
double dx
 
double dxi
 Step size in x and inverse of it, for equidistant only. More...
 
double dy
 
double dyi
 Step size in y and inverse of it, for equidistant only (2-D). More...
 
int equidistant
 Equidistant support points make life much easier (bit 0: x, bit 1: y). More...
 
char * fname
 Name of the file from which the table was loaded (includes all options). More...
 
int logs
 
int ndim
 1 or 2 dimension(s), for the independent variable(s) that is. More...
 
size_t nx
 
size_t ny
 No. More...
 
char * options
 Options used in option parameter or NULL pointer. More...
 
int remapped
 If user code remaps x, y, and/or z values w.r.t. More...
 
int scheme
 Requested interpolation scheme (0: nearest, 1: linear, 2: quadratic, 3: natural cubic spline, 4: clampled cubic spline). More...
 
int use_count
 Indicates how often a table is in use, but not safe enough to make it a smart pointer. More...
 
double * x
 Supporting points in x.
 
int xlog
 
double xmax
 Range covered in x.
 
double xmin
 
double xrise
 +1 if x values are in ascending order; -1 for descending
 
double * y
 Supporting points in y (if ndim=2 and ny>1)
 
int ylog
 
double ymax
 Range covered in y (if ndim=2)
 
double ymin
 
double yrise
 +1 if y values are in ascending order; -1 for descending
 
double * z
 Table values (size nx for 1-dim or nx*ny for 2-dim)
 
int zlog
 Log applied to any x/y axis, to x axis, y axis, z axis?
 
double zmax
 Range covered in result values.
 
double zmin
 
double * zxmax
 Optional max. More...
 
double * zxmin
 Optional min. More...
 
int zxreq
 Flag activated when options indicate that a set of zxmax values should be provided. More...
 

Detailed Description

Field Documentation

◆ aux

double rpol_table::aux

◆ clipping

int rpol_table::clipping

◆ csp

CsplinePar* rpol_table::csp

◆ dxi

double rpol_table::dxi

◆ dyi

double rpol_table::dyi

◆ equidistant

int rpol_table::equidistant

◆ fname

char* rpol_table::fname

◆ ndim

int rpol_table::ndim

◆ ny

size_t rpol_table::ny

of entries in x and (optional) y points.

◆ options

char* rpol_table::options

◆ remapped

int rpol_table::remapped

the table input, it should mark this here to avoid repeating it. (Make sure to call rpol_check_equi_range() after you remap!)

◆ scheme

int rpol_table::scheme

◆ use_count

int rpol_table::use_count

◆ zxmax

double* rpol_table::zxmax

of z values along each y line (at each x value)

◆ zxmin

double* rpol_table::zxmin

of z values along each y line (at each x value)

◆ zxreq

int rpol_table::zxreq

The documentation for this struct was generated from the following file: