; szss96_set_ch4v4.pro -- translated by f2idl ; using argument information from set_ch4v4.f and set_ch4v4_f.c ; and documentation information from set_ch4v4.f ;+ ; NAME: ; szss96_set_ch4v4 ; ; PURPOSE: ; set values from ch4v4 common block ; CALLING SEQUENCE: ; szss96_set_ch4v4,SIG4AIN,SIG4BIN ; ; INPUTS: ; ; SIG4AOUT - k-coefficients for band A (m^2/kg) [JM,LM] ; SIG4BOUT - k-coefficients for band A (m^2/kg) [JM,LM] ; MODIFICATION HISTORY: ; Written 2007 Aug 31, LAY ; : ; ;- PRO szss96_set_ch4v4,SIG4AIN,SIG4BIN ; -------------------- This function name fcn = 'szss96_set_ch4v4' ; -------------------- assign parameters (including dimensions) JM = 30 LM = 4 ;------------------------- ; setup the output variables that will be passed to the fortran ; routine ;------------------------- ; check all variables if n_params() ne 2 then begin print,'szss96_set_ch4v4: wrong number of arguments' return endif if size(SIG4AIN,/type) ne 5 then begin print,'szss96_set_ch4v4: SIG4AIN of wrong data type' return endif if size(SIG4AIN,/n_dim) ne 2 then begin print,'szss96_set_ch4v4: SIG4AIN of wrong n_dim' return endif if not array_equal(size(SIG4AIN,/dim), [JM,LM] ) then begin print,'szss96_set_ch4v4: SIG4AIN of wrong dim' return endif if size(SIG4BIN,/type) ne 5 then begin print,'szss96_set_ch4v4: SIG4BIN of wrong data type' return endif if size(SIG4BIN,/n_dim) ne 2 then begin print,'szss96_set_ch4v4: SIG4BIN of wrong n_dim' return endif if not array_equal(size(SIG4BIN,/dim), [JM,LM] ) then begin print,'szss96_set_ch4v4: SIG4BIN of wrong dim' return endif ;------------------------- ; Find root directory for library tname findpro, fcn, dirlist=dirlist, /noprint if dirlist[0] eq '' then root = '.' else root = dirlist[0] ;------------------------- ; CALL lib_name = root + '/szss96.so' entry_name = 'idl_ce_call_set_ch4v4__' RESULT = CALL_EXTERNAL( lib_name, ENTRY_NAME, $ SIG4AIN, SIG4BIN, $ /verbose ) end