def d8distuptoridge(np, p, fel, src, dist, distm, workingdir=None, mpiexedir=None, exedir=None, log_file=None, runtime_file=None, hostfile=None): """Run D8 distance to stream""" fname = TauDEM.func_name('d8distuptoridge') return TauDEM.run(FileClass.get_executable_fullpath(fname, exedir), in_files={ '-fel': fel, '-p': p, '-src': src }, wp=workingdir, in_params={'-m': TauDEM.convertdistmethod(distm)}, out_files={'-du': dist}, mpi_params={ 'mpipath': mpiexedir, 'hostfile': hostfile, 'n': np }, log_params={ 'logfile': log_file, 'runtimefile': runtime_file })
def dinfdistuptoridge(np, ang, fel, slp, propthresh, dist, statsm, distm, edgecontamination, rdg=None, workingdir=None, mpiexedir=None, exedir=None, log_file=None, runtime_file=None, hostfile=None): """Run Dinf distance to ridge.""" fname = TauDEM.func_name('dinfdistuptoridge') in_params = { '-thresh': str(propthresh), '-m': '%s %s' % (TauDEM.convertstatsmethod(statsm), TauDEM.convertdistmethod(distm)) } if StringClass.string_match(edgecontamination, 'false') or edgecontamination is False: in_params['-nc'] = None return TauDEM.run(FileClass.get_executable_fullpath(fname, exedir), in_files={ '-ang': ang, '-fel': fel, '-slp': slp, '-rdg': rdg }, wp=workingdir, in_params=in_params, out_files={'-du': dist}, mpi_params={ 'mpipath': mpiexedir, 'hostfile': hostfile, 'n': np }, log_params={ 'logfile': log_file, 'runtimefile': runtime_file })