SASHE_VAP  1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups
Io Filter Utilities

Functions

void compute_Io_mask (size_t ntimes, size_t nwavelens, float *wavelens, float **Ios, size_t mask_nwaves, float *mask_waves, float *mask_buffer, byte_t *Io_mask)
 Compute the Io mask used by the Io Filter.
void compute_Io_values (size_t ntimes, size_t nwavelens, time_t *times, float **Ios, byte_t *Io_mask, time_t Io_time, double gauss_factor, double *weight_sums, double *out_buffer, float *out_Ios)
 Compute the Io values for a specified time.
void compute_Io_values_weighted (size_t ntimes, size_t nwavelens, time_t *times, float **Ios, float **Ios_std, byte_t *Io_mask, time_t Io_time, double gauss_factor, double *weight_sums, double *out_buffer, float *out_Ios)
 Compute the Io values for a specified time.
size_t find_nearest_wavelength (size_t nwavelens, float *wavelens, float wavelen)
 Find the index of a wavelength in an array of wavelengths.

Detailed Description


Function Documentation

void compute_Io_mask ( size_t  ntimes,
size_t  nwavelens,
float *  wavelens,
float **  Ios,
size_t  mask_nwaves,
float *  mask_waves,
float *  mask_buffer,
byte_t Io_mask 
)

Compute the Io mask used by the Io Filter.

This function assumes that the Io_mask has already been initialized.

Definition at line 88 of file Io_filter.c.

size_t find_nearest_wavelength ( size_t  nwavelens,
float *  wavelens,
float  wavelen 
)

Find the index of a wavelength in an array of wavelengths.

Parameters:
nwavelens- number of wavelengths in the wavelengths array
wavelens- array of monotonically increasing wavelengths
wavelen- the wavelength to look for
Return values:
indexof the wavelength that is closest to the specified value.

Definition at line 552 of file Io_filter.c.