; szss96_blacm.pro -- translated by f2idl ; using argument information from plutot.f and plutot_f.c ; and documentation information from plutot_d.f ;+ ; NAME: ; szss96_blacm ; ; PURPOSE: ; C Planck function [W/(m*m) * (m^-1)^-1 * Sr^-1] at T[K] & wavenumber VM [m^-1] ; CALLING SEQUENCE: ; res = szss96_blacm(VM,T) ; ; INPUTS: ; ; vm - wavenumber [m^-1] ; t - temperature [K] ; OUTPUTS: ; ; MODIFICATION HISTORY: ; Fortran Zhu 2007 Nov 14. IDL wrapper LAY 2007 Aug 28 ; : ; ;- FUNCTION szss96_blacm,VM,T ; -------------------- This function name fcn = 'szss96_blacm' ; -------------------- assign parameters (including dimensions) ;------------------------- ; setup the output variables that will be passed to the fortran ; routine ;------------------------- ; check all variables if n_params() ne 2 then begin print,'szss96_blacm: wrong number of arguments' return, 0 endif if size(VM,/type) ne 5 then begin print,'szss96_blacm: VM of wrong data type' return, 0 endif if size(VM,/n_dim) ne 0 then begin print,'szss96_blacm: VM of wrong n_dim' return, 0 endif if size(T,/type) ne 5 then begin print,'szss96_blacm: T of wrong data type' return, 0 endif if size(T,/n_dim) ne 0 then begin print,'szss96_blacm: T of wrong n_dim' return, 0 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_blacm_' RESULT = CALL_EXTERNAL( lib_name, ENTRY_NAME, $ VM,T, $ return_type = 5, $ /verbose ) return, RESULT end