;--------------------------------------------------------------------------- ; Document name: make_spectrogram.pro ; Time-stamp: ;--------------------------------------------------------------------------- ; ;+ ; PROJECT: ; HESSI/PHOENIX ; ; NAME: ; MAKE_SPECTROGRAM() ; ; PURPOSE: ; Constructor for the spectrogram object. This is identical to ; the function spectrogram() ; ; CATEGORY: ; Generic utilities ; ; CALLING SEQUENCE: ; o = make_spectrogram( spectrogram [, time_axis, energy_axis] ) or ; o = make_spectrogram( spectrogram_struct ) ; ; INPUTS: ; spectrogram: a 2d array containing the time/energy values ; time_axis: the time axis associated with the spectrogram. ; a 1 d vector with same # of elements as the x-axis ; of the spectrogram. the time is referenced to 1-jan-79 ; (anytim format) ; spectrum_axis: the spectrum axis associated with the spectrogram. ; a 1 d vector with same # of elements as the y-axis ; of the spectrogram ; spectrogram_struct: a spectrogram structure with tags: ; {spectrogram, time_axis, spectrum_axis} ; ; OUTPUTS: ; o: a spectrogram object ; ; EXAMPLES: ; ; ; SEE ALSO: ; more information in spectrogram__define ; http://hessi.ssl.berkeley.edu/~csillag/idl/spectrogram_howto.html ; ; HISTORY: ; 20-jul-2004: documentation update ; Version 1, August 21, 2003, ; A Csillaghy, csillag@ssl.berkeley.edu ; ;- ; FUNCTION make_spectrogram, data, time_axis, spectrum_axis, _extra = _extra return, obj_new( 'spectrogram', data, time_axis, spectrum_axis, _extra = _extra ) end ;--------------------------------------------------------------------------- ; End of 'spectrogram.pro'. ;---------------------------------------------------------------------------