Produced by IDL 7.1.1
User Documentation

./guide
setdata.pro

Last modification date:
Wed Sep 28 13:27:09 2016

setdata

procedure setdata, value[, elements], [buffer=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
data_valid setdcdata

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 (def. all)
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
buffer
in, optional
integer (def. 0)
The data container buffer number from which the data values are retrieved.


Produced by IDLdoc 1.6 on Wed Sep 28 13:27:36 2016