Produced by IDL 7.1.1
User Documentation

./toolbox
data_new.pro

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

DATA_NEW

function DATA_NEW([arr], [spectrum=spectrum], [continuum=continuum], [nocheck=nocheck])

Create a new data_struct of the requested data type (spectrum or continuum) and containing the given array, if supplied. For continuum data, when the data array is supplied, the additional pointers (date, utc, mjd, etc) are set to double precision vectors of 0s having the same number of elements as arr.

Returns
requested data structure of given size or -1 on failure.
Version
$Id$

Parameters
arr
in, optional
integer (def. u1ndefined)
The data pointer that this data_struct will hold. If arr is not provided, then the data pointer will point to an undefined variable.

Keywords
spectrum
in, optional
(def. set)
When this is set, a spectrum structure will be returned. That is the default behavior.
continuum
in, optional
(def. unset)
When this is set, a continuum structure will be returned. spectrum and continuum are mutually exclusive.
nocheck
in, optional
(def. unset)
When this is set, the input parameter checking is turned off. Usefull for speed.


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