Produced by IDL 6.1
User Documentation

./guide
setdata.pro

Last modification date:
Thu Jun 2 23:56:08 2005

setdata

procedure setdata, value[, elements], [index=integer]

Convenience function for setting data array of a data container.

Examples
Put the first spectra into !g.s[0], retrieve all its data, and then just the first element
    filein,'file.fits'
    getrec,1
    help, *!g.s[0].data_ptr
     FLOAT     = Array[2048]
    x = fltarr(1026)
    setdata, x
    help, *!g.s[0].data_ptr
     FLOAT     = Array[1026]
    setdata, 2.5, 0
    help, (*!g.s[0].data_ptr)[0]
     FLOAT     = 2.5
 
Uses
getdcdata

Parameters
value
in, required
float
data values to be inserted into the data container. Either a single float value or an array of floats are valid.
elements
in, optional
long
The data array indices to be changed. Use one integer to set a single element in the data array. Use a two element array to specify a range to be set.

Keywords
index
in, optional
integer
The data container index. Default = 0.


Produced by IDLdoc 1.6 on Thu Jun 2 23:56:51 2005