; szss96_get_ch4v3.pro -- translated by f2idl ; using argument information from get_ch4v3.f and get_ch4v3_f.c ; and documentation information from get_ch4v3.f ;+ ; NAME: ; szss96_get_ch4v3 ; ; PURPOSE: ; get values from ch4v4 common block ; CALLING SEQUENCE: ; szss96_get_ch4v3,SIGXOUT ; ; OUTPUTS: ; ; SIGXOUT - k-coefficients for nu3 band (m^2/kg) [JM,LM] ; MODIFICATION HISTORY: ; Written 2007 Oct 16, LAY ; : ; ;- PRO szss96_get_ch4v3,SIGXOUT ; -------------------- This function name fcn = 'szss96_get_ch4v3' ; -------------------- assign parameters (including dimensions) JM = 30 LM = 4 ;------------------------- ; setup the output variables that will be passed to the fortran ; routine SIGXOUT = make_array(JM,LM,type= 5) ;------------------------- ; check all variables if n_params() ne 1 then begin print,'szss96_get_ch4v3: wrong number of arguments' return endif if size(SIGXOUT,/type) ne 5 then begin print,'szss96_get_ch4v3: SIGXOUT of wrong data type' return endif if size(SIGXOUT,/n_dim) ne 2 then begin print,'szss96_get_ch4v3: SIGXOUT of wrong n_dim' return endif if not array_equal(size(SIGXOUT,/dim), [JM,LM] ) then begin print,'szss96_get_ch4v3: SIGXOUT 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_get_ch4v3__' RESULT = CALL_EXTERNAL( lib_name, ENTRY_NAME, $ SIGXOUT, $ /verbose ) end