;+ ; NAME : SUMER_LL_POS ; ; PURPOSE : ; Gives the position of the lower left corner ; of each spectrum images ; in the detector plane ; CALLING SEQUENCE: ; Pos = SUMER_LL_POS(refpixels, Sumpixels) ; INPUTS: ; REFPIXELS the position of the reference point (usually ; the center of spectrogram) measured from the ; lower left corner of each line spectrogram ; ; ; REFPIXELS(0,*) : the spectral direction ; ; REFPIXELS(1,*) : the spatial direction ; ; SUMPIXELS the position of the reference point (usually ; the center of spectrogram ) measured from the ; lower left corner of the detector ; ; OUTPUT: ; POS ; POS(0,*) the spectral pixel(s) of the lower left corner of ; each set of spectrum images for a line or more than ; one lines ; POS(1,*) the spatial pixel(s) of the lower left corner of ; each set of spectrum images for a line or more than ; one lines ; HISTORY ; April 1997 Jongchul Chae ; - ; function sumer_ll_pos, refpixels, sumpixels nline = n_elements(sumpixels(0,*)) value = intarr(2, nline) value(0,*) = sumpixels(0,*)-refpixels(0,*) value(1,*) = sumpixels(1,*)-refpixels(1,*) return, value end