; szss96_init_zm.pro -- translated by f2idl ; using argument information from init_zm.f and init_zm_f.c ; and documentation information from init_zm.f ;+ ; NAME: ; szss96_init_zm ; ; PURPOSE: ; Return initial altitudes ; CALLING SEQUENCE: ; szss96_init_zm,ZM ; ; OUTPUTS: ; zm - altitude [m, km array] ; MODIFICATION HISTORY: ; Written 2007 Feb 7, LAY ; : ; ;- PRO szss96_init_zm,ZM ; -------------------- This function name fcn = 'szss96_init_zm' ; -------------------- 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_init_zm: wrong number of arguments' return endif if size(ZM,/type) ne 5 then begin print,'szss96_init_zm: ZM of wrong data type' return endif if size(ZM,/n_dim) ne 1 then begin print,'szss96_init_zm: ZM of wrong n_dim' return endif if not array_equal(size(ZM,/dim), [KM] ) then begin print,'szss96_init_zm: 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_init_zm__' RESULT = CALL_EXTERNAL( lib_name, ENTRY_NAME, $ ZM, $ /verbose ) end