; szss96_zm_init.pro -- translated by f2idl ; using argument information from zm_init.f and zm_init_f.c ; and documentation information from zm_init.f ;+ ; NAME: ; szss96_zm_init ; ; PURPOSE: ; Return initial altitudes ; CALLING SEQUENCE: ; szss96_zm_init,ZM ; ; OUTPUTS: ; zm - altitude [m, km array] ; MODIFICATION HISTORY: ; Written 2007 Feb 7, LAY ; : ; ;- PRO szss96_zm_init,ZM ; -------------------- This function name fcn = 'szss96_zm_init' ; -------------------- assign parameters (including dimensions) KM = 106 LM = 5 ;------------------------- ; setup the output variables that will be passed to the fortran ; routine ZM = make_array(KM,type= 5) ;------------------------- ; check all variables if n_params() ne 1 then begin print,'szss96_zm_init: wrong number of arguments' return endif if size(ZM,/type) ne 5 then begin print,'szss96_zm_init: ZM of wrong data type' return endif if size(ZM,/n_dim) ne 1 then begin print,'szss96_zm_init: ZM of wrong n_dim' return endif if not array_equal(size(ZM,/dim), [KM] ) then begin print,'szss96_zm_init: ZM 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_zm_init__' RESULT = CALL_EXTERNAL( lib_name, ENTRY_NAME, $ ZM, $ /verbose ) end