IDL routines for data analysis


Data analysis
clip_range.pro Find the lower and upper per cent bounds on input data
lin_rebin.pro Rebin one dimensional data into equal width bins
log_rebin.pro Rebin one dimensional data into equal logarithmic bins
lognormal.pro Compute density of lognormal function
parabound.pro Calculate confidence bounds on quadratic model
Illustrative programs
birthday_clash.pro Calculate probability of no shared birthdays by Monte Carlo.
Mathematics
bsort.pro Function to sort data into ascending order, like a simple bubble sort (F. Varosi)
convolve.pro Convolution of an image with a Point Spread Function (PSF) (F. Varosi)
int_lorentz.pro Calculate the definite integral of a Lorentzian function
int_powerlaw.pro Find definite integral of power law function
qsimp.pro Integrate using Simpson's rule to specified accuracy (W. Landsman)
seq.pro Generate sequence of evenly spaced real numbers
tnmin.pro Performs function minimization (Truncated-Newton Method) (C. Markwardt)
Probability and Statistics
confidence_band.pro Compute and optionally plot the confidence bands on a regression plot
lincorr.pro Linear correlation coefficient with p-value
normal.pro Draw array of random deviates from multidimensional Gaussian
poidev.pro Generate a Poisson random deviate (W. Landsman)
randomp.pro Generate array of random deviates with power law distribution
summary.pro Standard five number summary of an array.
Utilities
arrow_plot.pro Plot scatter diagram using arrows of given gradients
number_formatter.pro Format a number into a string
plot_err.pro Plot error bars on x,y plot (in y and x).
plotimage.pro Displays an image via a "PLOT"-like interface. (C. Markwardt)
plotsym.pro Define useful plotting symbols not in the standard !PSYM definitions (W. Landsman)
ps_close.pro Close PS device and return to previous settings
ps_open.pro Open and configure a PS device for graphical output
read_table.pro Read an ASCII table into a data array.
splot.pro Produce an NxN matrix of scatter plots
statusline.pro Maintain a one-line status line on a VT100-compatible terminal. (Craig Markwardt)
write_table.pro Write a data array to an ASCII table file.
xspec_out.pro Write data to file ready for XSPEC
Time Series Analysis
bi_spectrum.pro Calculate the bi-coherence of a univariate time series.
cross_spectrum.pro Calculate coherence and phase lags of two time series
dynamic_psd.pro Calculate the dynamic (time-resolved) power spectrum.
periodogram.pro Calculate periodogram (mod-square Fourier transform) of a univariate time series
ts_gen.pro Generate a random time series from a power spectrum model
ts_multispec.pro Calculate average periodogram from list of FITS files
ts_readfits.pro Read two columns data (e.g. time, flux) from a FITS file
ts_rmscurve.pro Calculate time series for mean flux and rms
ts_rmscurve_dist.pro Plot the flux/rms distribution from TS_RMSCURVE
ts_rmscurve_plot.pro Plot combined output from TS_RMSCURVE
ts_rmsflux.pro Calculate mean and rms at even intervals in a series
ts_segment.pro Define contiguous segments of an input series
ts_spec_plot.pro Plot a binned periodogram, from e.g. TS_MULTISPEC
wavelet.pro Continuous wavelet transform (CWT) of 1D time series (Torrence & Compo)
wave_signif.pro Compute the significance levels for a wavelet transform (Torrence & Compo)
XMM-Newton tasks
rgs_plot.pro Plot RGS data in velocity space, for multiple lines and/or datasets
make_epic_lc.pro Extract time series from XMM/EPIC event data
load_events.pro Read XMM EPIC data from filtered events file (FITS)
gti_fix.pro Correct for gaps (GTI) in EPIC time series by interpolation
energy_bands.pro Calculate logarithmically spaced PI bands
epic_load_lc.pro Load into an array multiple XMM/EPIC time series
LWFT
psf.pro Generate a simple Point Spread Function (PSF) image
triangle.pro Triangular function used by PSF.
FITS I/O (IDL Astronomy Library)
readfits.pro Read a FITS file into IDL data and header variables
sxpar.pro Obtain the value of a parameter in a FITS header
gettok.pro Retrieve the first part of a (vector) string up to a specified character
valid_num.pro Check if a string is a valid number representation.
tbinfo.pro Return an informational IDL structure from a FITS binary table header.
tbget.pro Return value(s) from specified column in a FITS binary table
TeXtoIDL (TeXtoIDL page)
matchdelim.pro Match open/close delimiters in a string.
nexttok.pro Find the next occurance of any of a set of characters in a string and return the character which occurs next.
showtex.pro Display TeX sequence translation table on current graphics device.
str_token.pro Retrieve portion of string up to token.
strcnt.pro Count number of occurrences of a substring in a string.
strtrans.pro Translate all occurences of one substring to another.
sub_sup_idl.pro Return the proper IDL font positioning command for TeX sub/superscripts.
textable.pro Returns a translation table from TeX to IDL.
textoidl.pro Convert a valid TeX string to a valid IDL string for plot labels.
translate_sub_super.pro Return the proper IDL font positioning command for TeX sub/superscripts.

Resources
GSFC IDL Astronomy Library
Coyote's Tips on IDL Programming
Liam Gumley's IDL Library
Craig Markwardt's IDL Library
AIT (Astronomical Institute of Tübingen) IDL software
Group K IDL User's Library
Henry Freudenreich's robust data analysis
Marc Buie's IDL library
Other Libraries

Maintained by Simon Vaughan (sav2 at star. le. ac. uk)
Last updated: 09/08/2010
Back to homepage