Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

weif.hxx File Reference

#include "scind.hxx"
#include "nrutil.h"

Go to the source code of this file.

Namespaces

namespace  wf

Compounds

class  wf_t


Detailed Description

MASS project: TURBINA module file header file for weif.c

This module contains the collection of utilities suited to compute the altitude weighting functions for a given set of apertures for measurement of both normal and differential scintillation indices observed with a certain bandpass*energy distribution of incident light.

This module is based on the trial program wfm2.c written by A.Tokovinin and V. Kornilov (version Feb 26, 2001). The only bug found in that program was incorrect memory freeing by the (modified) free_vector() function taken form Numerical Recipes (NR) package.

The module contains the definition of the weighting function class wf_t and member functions for the weight calculation and input/output. The structure bears all the data and parameters which determine the weights and the respective altitude grid on which the weight matrix is computed. The parameters determine the z-grid, the number of altitude steps, the number of annular apertures with their sizes and effective wavelength.

Usage

Prior to any operation, the constructed weight structure should be filled by wf_t::setaper(), wf_t::setzgrid() and wf_t::calcleff(). Being thus defined, then weight functions may be either:

If one gets known the new spectral energy distribution, the need to recompute the weight for this SED may be verified by wf_t::calcleff() with parameter fix==0.

The parameters - the number of apertures, resulting weights (for apertures and their combinations) and number of altitude steps - can be accessed with wf_t::getnaper(), wf_t::getnw() and wf_t::getnz(), respectively. The name of the weight is obtained by the wf_t::name() function according to the column number in the weight matrix.

Resulting weights may be shifted by altitude and/or recomputed for another altitude grid with wf_t::interpolate(). Weight matrix can be written in the disk file by wf_t::write() and released with wf_t::clear(). Full release of memory in weight structure is done with wf_t::setaper() with one zero parameter. The individual values of weight or altitude can be obtained with wf_t::getval() and wf_t::getalt(); to copy some part of a certain weight function from the weight matrix in structure into a vector, use wf_t::copy().

Author:
N. Shatsky, Sternberg Institute (kolja@sai.msu.ru)
Version:
1.5: Polychromatic precise weight, in C++

Generated on Wed Jan 16 00:40:06 2002 for MASS Software by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001