Declaration: SetSpectrum(ix, iy, TimeSlot, Group: integer; Spectrum: TDoubleArray): integer;
Stores the spectrum defined by the variable Spectrum at the pixel position [ix,iy] of the time slot TimeSlot. The size of the array Spectrum must match the size of the spectral group specified by the parameter Group (valid range of values is 1..4). The function returns the following error codes:
 0 ... everything is OK
-1 ... no such group
-2 ... ix, iy, or timeslot are out of range
-3 ... length of spectrum does not match the selected group