pro changet_specline_array, lna, t ;+ ; NAME: ; changet_specline_array ; PURPOSE: (one line) ; Change an array of lines to reflect a new temperature ; DESCRIPTION: ; Given a spectral line structure and a temperature, update the strength, ; air-broadened half-width, and doppler width. ; CATEGORY: ; Spectra ; CALLING SEQUENCE: ; changet_specline_array, lna, t ; INPUTS: ; lna - an array of spectral line structures to be changed ; t - the new temperature for the line ; OPTIONAL INPUT PARAMETERS: ; none ; KEYWORD INPUT PARAMETERS: ; none ; KEYWORD OUTPUT PARAMETERS: ; none ; OUTPUTS: ; None ; COMMON BLOCKS: ; None ; SIDE EFFECTS: ; Changes the following fields in the elements of lna: ; s intensity in cm^-1/(molecule cm^-2) ; gamma_air air-broadened halfwidth (HWHM) in cm^-1 at specified pressure ; t temperature for s, gamma_air, and gamma_self ; dopw doppler width (Goody&Yung definition), cm^-1 ; RESTRICTIONS: ; 1. Only works for molecules 1-7 (H2O, CO2, O3, N2O, CO, CH4, O2) ; 2. Assumes the partition function (Q) varies as temperature to some power ; (c.f.. Steve Lord's ATRAN program), rather than using the full polynomial ; expressions of select96. ; ------ NOW IT DOES. LAY 29 May 2001 ; 3. Does not change gamma, the self-braodened halfwidth. ; See changet_specline ; PROCEDURE: ; MODIFICATION HISTORY: ; Written 2000 October, by Leslie Young, SwRI ;- n=(size(lna))(1) for i=0, n-1 do begin ln = lna(i) changet_specline, ln, t lna(i)=ln end end