Main Page   Modules   Data Structures   File List   Data Fields   Globals  

Working on sub-domain of SPECTRA


Functions

int set_subspec (SPECTRUM *spectrum, double binf, double bsup)
int spec_minmax (SPECTRUM *spectrum)
int inter_spec (SPECTRUM *spec1, SPECTRUM *spec2)

Function Documentation

int set_subspec SPECTRUM spectrum,
double  binf,
double  bsup
 

sets spectrum working bounds

Parameters:
spectrum [SPECTRUM *] spectrum structure
binf [double ] lower bound
bsup [double ] upper bound

Definition at line 374 of file io_utils.c.

References SPECTRUM::end, ERR_IMA_BOUND, Handle_Error(), SPECTRUM::iwend, SPECTRUM::iwstart, SPECTRUM::name, SPECTRUM::start, SPECTRUM::step, SPECTRUM::wend, and SPECTRUM::wstart.

Referenced by close_spec(), and save_E3D_spec().

int spec_minmax SPECTRUM spectrum  ) 
 

finds spectrum min and max values in the current (sub-)domain

Parameters:
spectrum [SPECTRUM *] spectrum structure

Definition at line 418 of file io_utils.c.

References SPECTRUM::data, SPECTRUM::data_type, DOUBLE, FLOAT, SPECTRUM::iwend, SPECTRUM::iwstart, LONG, MAXFLOAT, SHORT, SPECTRUM::wmax, and SPECTRUM::wmin.

Referenced by close_spec(), open_spec(), and save_E3D_spec().

int inter_spec SPECTRUM spec1,
SPECTRUM spec2
 

sets common domain between two spectra

Parameters:
spec1 [SPECTRUM *] spectrum structure
spec2 [SPECTRUM *] spectrum structure

Definition at line 476 of file io_utils.c.

References SPECTRUM::end, SPECTRUM::iwend, SPECTRUM::iwstart, MAX, MIN, SPECTRUM::start, SPECTRUM::step, SPECTRUM::wend, and SPECTRUM::wstart.


Generated on Tue Jul 1 17:35:48 2003 for IFU_C_iolibs by doxygen1.3