function readsmd, file ;+ ; NAME: ReadSMD ; PURPOSE: Read out the SMD camera data file ; CALLING SEQUENCE: ; Image = ReadSMD(file) ;- smd=lonarr(512, 512) openr, u, /get_lun, file readu, u, smd close, u free_lun, u ; smd = swap_endian(smd) return, smd end