James R. A. Davenport
IDL Routines
James R. A. Davenport
IDL Routines
READY FOR PRIME-TIME PROGRAMS
astro_const.pro Loads many common variables and conversions (in cgs) into system variables
(e.g. !h is Planck’s constant)
brute_match.pro A robust “brute-force” matching for two X,Y lists using a search radius. Fairly quick
contour_plus.pro Plot contours over high-density points. A total re-write of the awesome original
posgen.pro POSition vector GENerator, a very easy way to create complex multi-plots.
real.pro Convert (+/-) NaN or Inf values to -99, or a user-selected number.
strfunc.pro My implementation of the Structure Function for light curves. Uses HISTOGRAM with
Reverse_Indices for speed.
cubehelix.pro Create & load a “Cube Helix” color table, as
described in D.A. Green (2011). The advantage
of this color table is that it looks good
printed in color OR black & white. Hover your
mouse over the plot to see an example.
ALMOST READY FOR PRIME-TIME PROGRAMS
pixel_contour.pro makes contour plots with solid pixels, rather than sloped contours [needs more
default features added]
cshplot.pro 2D contour_sum_histogram plot [needs more generalization]
plotnum.pro plots numbers (or words) at each point, simply a wrapper for xyouts
plotstuff.pro helpful system variables/settings for nice looking plots. A simple script
psym.pro type psym at any time and get the list of which plot symbol for which number
(e.g. psym=4 is a diamond) A simple script.
luckycharms.pro luckycharms symbol set! (Stars, Hearts, Moons... etc)
For the by-eye flare finding suite (FBeye), see THIS page
If you made use of any of these programs/functions, or have feedback, please email me!
I would appreciate a simple acknowledgement for published works using my code:
“This publication has made use of code written by James R. A. Davenport.”