norm spec
Contents: Description, Arguments, Usage, Examples, Images, Sub-Functions, Related Functions, Source Supported Under Version: > 1.07
Description Normalize an XxY array of spectra to each other
Arguments and Return Values Arguments: An array of spectra and an optional xaxis Return Value: A structure with an average, normalized spectra and standard deviation
Usage Syntax: norm_spec(spectra_array [, xaxis = VAL] [, w1 = FLOAT] [, w2 = FLAOT] ) spectra_array is the array of spectra to be normalized xaxis is the xaxis to use, default is TES 73-point spectrum w1 is the start wavelength (200 cm-1) w2 is the end wavelength (1305 cm-1)
Examples dv> data 6x1x143 array of float, bsq format [3,432 bytes] dv> data2=norm_spec(data,xaxis=make_band(tes=1)) struct, 3 elements norm: 6x1x143 array of float, bsq format [3,432 bytes] ave: 1x1x143 array of double, bsq format [1,144 bytes] stddev: 1x1x143 array of double, bsq format [1,144 bytes] Plot the old data versus the normalized data (one element only) dv> pplot({data[1],data2.norm[1]},{1,2},{"Original","Normalized"},xaxis=make_band(tes=1),y1=0.8,y2=1.03,x1=1300,x2=300)
|
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Recent Library Changes Created On: 08-06-2010 |