FUNCTION amie_getMaster, sFilename ;+ ; NAME: ; amie_getMaster ; ; PURPOSE: ; ; ; CATEGORY: ; AMIE Calibration ; ; CALLING SEQUENCE: ; amie_getMaster, sFilename ; ; INPUTS: ; sFilename - Master data file name ; ; OPTIONAL INPUT PARAMETERS: ; None. ; ; OUTPUTS: ; a float variable array containing the master frame data read from the file ; ; COMMON BLOCKS: ; None. ; ; SIDE EFFECTS: ; Hopefully none. ; ; RESTRICTIONS: ; No restrictions ; ; MODIFICATION HISTORY: ; 2008 Jan 08, sm: First version ; ; (c) 2008, Santa Martinez, ESA/SCI-OS ;- ; Open file and jump over the first 4 bytes OPENR, iUnit, sFilename, /GET_LUN POINT_LUN, iUnit, 4 ; Define a variable into which the image will be read fMasterData=FLTARR(1024, 1024) ; Read the data READU, iUnit, fMasterData FREE_LUN, iUnit RETURN, fMasterData END