Detector Lab IDL subroutines