AddSpecOfCircArea

Declaration: TSpecCollection.AddSpecOfCircArea (ix, iy, it, cl, RadMeanSize: integer; capt, catstring: string; Spec, SDev: TDoubleArray): integer;
The function AddSpecOfCircArea adds the spectrum defined by the parameter Spec, assuming that the spectrum is the mean spectrum of a circular area. The parameter SDev is the standard deviation of the mean spectrum. The parameters ix and iy specify the center of the circular area, the parameter it specifies the time slot. The parameters cl and RadMeanSize specify the class number and the radius of the circular area.

The parameter capt contains the caption of the spectrum. The catstring parameter contains the user-defined categories (see the spectral collection data format for details on the format.

The function returns the following error codes:

≥0 ... everthing is OK, the returned number is the index of the newly added spectrum
-1 ... the lengths of Spec and SDev do not match

Hint: In order to access the spectral collection currently loaded in the Spectral Collection Editor you can use the pre-declared global variable SCData.