Produced by IDL 7.1.1
Developer Documentation

./guide
getstatsrange.pro

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

getstatsrange

function getstatsrange(name, nels[, brange][, erange], [/full], [/chan])

Used by stats and moments to convert a region that might be in the x-axis units into a region in channels. Both procedures work on the same rules and so this function encapsulates them in one place. This is not intended to be used by GUIDE users directly.

Returns
2-element array with [bchan,echan] giving region in channels. Returns -1 on error (bchan and echan both out of range).
Version
$Id$

Parameters
name
in, required
string
String inserted into prompt
nels
in, required
integer
Total number of data elements
brange
in, optional
float
Starting value in x-axis units
erange
in, optional
float
Ending value in x-axis units

Keywords
full
in, optional
boolean
Compute stats for full spectrum?
chan
in, optional
boolean
Ranges are in channels?


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