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