pro thm_file_download
libs,'thm_load_*',routine_names=rtns
resolve_routine,rtns,/no_recompile, /either
for i=0,n_elements(rtns)-1 do begin
proc_info = routine_info(rtns[i],/parameters)
if proc_info.num_kw_args eq 0 then continue
if total(/pres,strmatch(proc_info.kw_args,'DOWNLOADONLY')) gt 0 then begin
if total(/pres,strmatch(proc_info.kw_args,'SITE')) gt 0 then begin
dprint,'Executing: "'+rtns[i]+'"'
call_procedure, rtns[i],SITE='all', /downloadonly
endif else if $
total(/pres,strmatch(proc_info.kw_args, 'PROBE')) gt 0 then begin
dprint,'Executing: "'+rtns[i]+'"'
call_procedure, rtns[i],PROBE='all', /downloadonly
endif
endif
endfor
end