IDL library of Mark Bates