; szss96_set_panda.pro -- translated by f2idl ; using argument information from set_panda.f and set_panda_f.c ; and documentation information from set_panda.f ;+ ; NAME: ; szss96_set_panda ; ; PURPOSE: ; set values from panda common block ; CALLING SEQUENCE: ; szss96_set_panda,ZKVTIN,XA2IN,XA3IN,XA4IN,XP2IN,XP3IN,XP4IN ; ; INPUTS: ; ; ZKVTIN - collision rate in [m**3 s**(-1)] ; XA2IN - Einstein coefficient in 1/s for 2.3 micron band ; XA3IN - Einstein coefficient in 1/s for 3.3 micron band ; XA4IN - Einstein coefficient in 1/s for 7.6 micron band ; XP2IN - Collision probability? ; XP3IN - Collision probability? ; XP4IN - Collision probability? ; MODIFICATION HISTORY: ; Written 2007 Feb 27, LAY ; : ; ;- PRO szss96_set_panda,ZKVTIN,XA2IN,XA3IN,XA4IN,XP2IN,XP3IN,XP4IN ; -------------------- This function name fcn = 'szss96_set_panda' ; -------------------- assign parameters (including dimensions) ;------------------------- ; setup the output variables that will be passed to the fortran ; routine ;------------------------- ; check all variables if n_params() ne 7 then begin print,'szss96_set_panda: wrong number of arguments' return endif if size(ZKVTIN,/type) ne 5 then begin print,'szss96_set_panda: ZKVTIN of wrong data type' return endif if size(ZKVTIN,/n_dim) ne 0 then begin print,'szss96_set_panda: ZKVTIN of wrong n_dim' return endif if size(XA2IN,/type) ne 5 then begin print,'szss96_set_panda: XA2IN of wrong data type' return endif if size(XA2IN,/n_dim) ne 0 then begin print,'szss96_set_panda: XA2IN of wrong n_dim' return endif if size(XA3IN,/type) ne 5 then begin print,'szss96_set_panda: XA3IN of wrong data type' return endif if size(XA3IN,/n_dim) ne 0 then begin print,'szss96_set_panda: XA3IN of wrong n_dim' return endif if size(XA4IN,/type) ne 5 then begin print,'szss96_set_panda: XA4IN of wrong data type' return endif if size(XA4IN,/n_dim) ne 0 then begin print,'szss96_set_panda: XA4IN of wrong n_dim' return endif if size(XP2IN,/type) ne 5 then begin print,'szss96_set_panda: XP2IN of wrong data type' return endif if size(XP2IN,/n_dim) ne 0 then begin print,'szss96_set_panda: XP2IN of wrong n_dim' return endif if size(XP3IN,/type) ne 5 then begin print,'szss96_set_panda: XP3IN of wrong data type' return endif if size(XP3IN,/n_dim) ne 0 then begin print,'szss96_set_panda: XP3IN of wrong n_dim' return endif if size(XP4IN,/type) ne 5 then begin print,'szss96_set_panda: XP4IN of wrong data type' return endif if size(XP4IN,/n_dim) ne 0 then begin print,'szss96_set_panda: XP4IN of wrong n_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_panda__' RESULT = CALL_EXTERNAL( lib_name, ENTRY_NAME, $ ZKVTIN,XA2IN,XA3IN,XA4IN,XP2IN,XP3IN,XP4IN, $ /verbose ) end