necessary IDL routines from the Spitzer Science Center