norm spec

From DavinciWiki
Jump to: navigation, search

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)

Images

spec norm.png

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Major Sub-Functions

Related Functions

Recent Library Changes

Created On: 08-06-2010
Modified On: 08-06-2010

Personal tools