./
log_bins.pro
toplog_bins
stats
result = log_bins(min, max, nbins [, DOUBLE=DOUBLE])
create log spaced bins, useful for plotting spectra with histo_bins
Requires scale_vector from David Fanning dfanning.com
Return value
bins: the log spaced bins between min and max
Parameters
- min in required
minimum value of bins
- max in required
maximum value of bins
- nbins in required
number of bins to create
Keywords
- DOUBLE in optional
return a double instead of a float
Examples
IDL> print, log_bins(0.1, 10, 10)
0.100000 0.166810 0.278256 0.464159 0.774264
1.29155 2.15443 3.59381 5.99484 10.0000
Author information
- History:
Tue Sep 29 10:17:28 2009, Brian Larsen forget the /double to scale_vector (fixed) Wed Aug 12 14:06:28 2009, Brian Larsen written and tested
Statistics
| Lines: | 10 |
| McCabe complexity: |
File attributes
| Modifcation date: | Tue Sep 29 10:17:50 2009 |
| Lines: | 57 |
![[attach.png]](idldoc-resources/attach.png)