NAME
convert_spectra - Converts a spectra to one with different characteristics
SYNOPSIS
#include "s/s_spectra.h"
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-I/home/kobus/include
-L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
int convert_spectra
(
Spectra **target_sp_ptr,
const Spectra *original_sp,
int count,
double offset,
double step
);
DESCRIPTION
This routine converts a spectra to one with different characteristics. The
resulting spectra will have the specified characteristics. If interpolation
is necessary, then cubic spline is used. The resulting spectra is pointed to
by *target_sp_ptr.
If *target_sp_ptr is NULL, then the target spectra is created. If it already
exists, but is the wrong size, then it is resized. Finally, if it is the
correct size, it is over-written.
RETURNS
On success, NO_ERROR is returned. On failure, ERROR is returned, with an
error message being set.
RELATED
Spectra
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTER
Kobus Barnard
SEE ALSO
create_spectra
,
free_spectra
,
get_target_spectra
,
copy_spectra
,
multiply_spectra
,
check_spectra_are_comparable