|
1 | 1 | # IDL
|
2 | 2 | IDL codes (mostly legacy)
|
| 3 | + |
| 4 | +These routines are made available for you to use as you wish. |
| 5 | +They have all been tried and tested on IDL 8.1, to a greater or lesser extent, but undoubtedly some bugs will remain. |
| 6 | +All routines include some (standard format) header documentation. |
| 7 | + |
| 8 | +## Data analysis, statistics |
| 9 | + |
| 10 | +lin_rebin.pro Rebin one dimensional data into equal width bins |
| 11 | + |
| 12 | +log_rebin.pro Rebin one dimensional data into equal logarithmic bins |
| 13 | + |
| 14 | +regroup.pro Rebin (regroup) binned/spaced one dimensional data |
| 15 | + |
| 16 | +chi2_pdf.pro Compute density for chi-sq distribution |
| 17 | + |
| 18 | +clip_range.pro Find the lower and upper per cent bounds on input data |
| 19 | + |
| 20 | +excess_variance.pro Compute the 'excess' variance of a sample |
| 21 | + |
| 22 | +lincorr.pro Linear correlation coefficient with p-value |
| 23 | + |
| 24 | +lognormal.pro Compute density of lognormal function |
| 25 | + |
| 26 | +normal.pro Draw array of random deviates from multidimensional Gaussian |
| 27 | + |
| 28 | +normal_pdf.pro Compute density for normal distribution |
| 29 | + |
| 30 | +parabound.pro Calculate confidence bounds on quadratic model |
| 31 | + |
| 32 | +randomp.pro Generate array of random deviates with power law distribution |
| 33 | + |
| 34 | +summary.pro Standard five number summary of an array. |
| 35 | + |
| 36 | +## Utilities |
| 37 | + |
| 38 | +int_lorentz.pro Calculate the definite integral of a Lorentzian function |
| 39 | + |
| 40 | +int_powerlaw.pro Find definite integral of power law function |
| 41 | + |
| 42 | +seq.pro Generate sequence of evenly spaced real numbers |
| 43 | + |
| 44 | +arrow_plot.pro Plot scatter diagram using arrows of given gradients |
| 45 | + |
| 46 | +plot_err.pro Plot error bars on x-y plot (in y and x). |
| 47 | + |
| 48 | +plot_hist.pro Make a nice histogram plot |
| 49 | + |
| 50 | +ps_close.pro Close PS device and return to previous settings |
| 51 | + |
| 52 | +ps_open.pro Open and configure a PS device for graphical output |
| 53 | + |
| 54 | +read_table.pro Read an ASCII table into a data array. |
| 55 | + |
| 56 | +splot.pro Produce an NxN matrix of scatter plots |
| 57 | + |
| 58 | +write_table.pro Write a data array to an ASCII table file. |
| 59 | + |
| 60 | +xspec_out.pro Write data to file ready for XSPEC |
| 61 | + |
| 62 | +## Time series analysis |
| 63 | + |
| 64 | +bi_spectrum.pro Calculate the bi-coherence of a univariate time series. |
| 65 | + |
| 66 | +cross_spectrum.pro Calculate coherence and phase lags of two time series |
| 67 | + |
| 68 | +dynamic_psd.pro Calculate the dynamic (time-resolved) power spectrum. |
| 69 | + |
| 70 | +endmatch.pro Perform 'end matching' of a data series |
| 71 | + |
| 72 | +extract_xte_dps.pro Extract and export dynamical power spectra from RXTE |
| 73 | + |
| 74 | +periodogram.pro Calculate periodogram (mod-square Fourier transform) of a univariate time series |
| 75 | + |
| 76 | +rms_mean_fit.pro Calculate, plot and fit the rms-mean relation given input time series |
| 77 | + |
| 78 | +ts_gen.pro Generate a random time series from a power spectrum model |
| 79 | + |
| 80 | +ts_multispec.pro Calculate average periodogram from list of FITS files |
| 81 | + |
| 82 | +ts_readfits.pro Read two columns data (e.g. time, flux) from a FITS file |
| 83 | + |
| 84 | +ts_rmscurve.pro Calculate time series for mean flux and rms |
| 85 | + |
| 86 | +ts_rmscurve_dist.pro Plot the flux/rms distribution from TS_RMSCURVE |
| 87 | + |
| 88 | +ts_rmscurve_plot.pro Plot combined output from TS_RMSCURVE |
| 89 | + |
| 90 | +ts_rmsflux.pro Calculate mean and rms at even intervals in a series |
| 91 | + |
| 92 | +ts_segment.pro Define contiguous segments of an input series |
| 93 | + |
| 94 | +ts_spec_plot.pro Plot a binned periodogram, from e.g. TS_MULTISPEC |
| 95 | + |
| 96 | +## XMM-Newton tasks [XMM_Extract.pdf](XMM_Extract.pdf) |
| 97 | + |
| 98 | +rgs_plot.pro Plot RGS data in velocity space, for multiple lines and/or datasets |
| 99 | + |
| 100 | +make_epic_lc.pro Extract time series from XMM/EPIC event data |
| 101 | + |
| 102 | +load_events.pro Read XMM EPIC data from filtered events file (FITS) |
| 103 | + |
| 104 | +gti_check.pro Check for patches of 'bad' data in multi-observation time series |
| 105 | + |
| 106 | +gti_fix.pro Correct for gaps (GTI) in EPIC time series by interpolation |
| 107 | + |
| 108 | +energy_bands.pro Calculate logarithmically spaced PI bands |
| 109 | + |
| 110 | +epic_load_lc.pro Load into an array multiple XMM/EPIC time series |
| 111 | + |
| 112 | +epic_segment.pro Take output from EPIC_LOAD_LC and divide into equal length segments |
0 commit comments