当前位置: 首页>>代码示例>>Python>>正文


Python FileClass.get_executable_fullpath方法代码示例

本文整理汇总了Python中pygeoc.utils.FileClass.get_executable_fullpath方法的典型用法代码示例。如果您正苦于以下问题:Python FileClass.get_executable_fullpath方法的具体用法?Python FileClass.get_executable_fullpath怎么用?Python FileClass.get_executable_fullpath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pygeoc.utils.FileClass的用法示例。


在下文中一共展示了FileClass.get_executable_fullpath方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: gridnet

# 需要导入模块: from pygeoc.utils import FileClass [as 别名]
# 或者: from pygeoc.utils.FileClass import get_executable_fullpath [as 别名]
 def gridnet(np, pfile, plenfile, tlenfile, gordfile, outlet=None, workingdir=None,
             mpiexedir=None, exedir=None, log_file=None, runtime_file=None, hostfile=None):
     """Run gridnet"""
     fname = TauDEM.func_name('gridnet')
     return TauDEM.run(FileClass.get_executable_fullpath(fname, exedir),
                       {'-p': pfile, '-o': outlet}, workingdir,
                       None,
                       {'-plen': plenfile, '-tlen': tlenfile, '-gord': gordfile},
                       {'mpipath': mpiexedir, 'hostfile': hostfile, 'n': np},
                       {'logfile': log_file, 'runtimefile': runtime_file})
开发者ID:crazyzlj,项目名称:PyGeoC,代码行数:12,代码来源:TauDEM.py

示例2: peukerdouglas

# 需要导入模块: from pygeoc.utils import FileClass [as 别名]
# 或者: from pygeoc.utils.FileClass import get_executable_fullpath [as 别名]
 def peukerdouglas(np, fel, streamSkeleton, workingdir=None, mpiexedir=None, exedir=None,
                   log_file=None, runtime_file=None, hostfile=None):
     """Run peuker-douglas function"""
     fname = TauDEM.func_name('peukerdouglas')
     return TauDEM.run(FileClass.get_executable_fullpath(fname, exedir),
                       {'-fel': fel}, workingdir,
                       None,
                       {'-ss': streamSkeleton},
                       {'mpipath': mpiexedir, 'hostfile': hostfile, 'n': np},
                       {'logfile': log_file, 'runtimefile': runtime_file})
开发者ID:crazyzlj,项目名称:PyGeoC,代码行数:12,代码来源:TauDEM.py

示例3: threshold

# 需要导入模块: from pygeoc.utils import FileClass [as 别名]
# 或者: from pygeoc.utils.FileClass import get_executable_fullpath [as 别名]
 def threshold(np, acc, stream_raster, threshold=100., workingdir=None,
               mpiexedir=None, exedir=None, log_file=None, runtime_file=None, hostfile=None):
     """Run threshold for stream raster"""
     fname = TauDEM.func_name('threshold')
     return TauDEM.run(FileClass.get_executable_fullpath(fname, exedir),
                       {'-ssa': acc}, workingdir,
                       {'-thresh': threshold},
                       {'-src': stream_raster},
                       {'mpipath': mpiexedir, 'hostfile': hostfile, 'n': np},
                       {'logfile': log_file, 'runtimefile': runtime_file})
开发者ID:crazyzlj,项目名称:PyGeoC,代码行数:12,代码来源:TauDEM.py

示例4: dinfflowdir

# 需要导入模块: from pygeoc.utils import FileClass [as 别名]
# 或者: from pygeoc.utils.FileClass import get_executable_fullpath [as 别名]
 def dinfflowdir(np, filleddem, flowangle, slope, workingdir=None, mpiexedir=None, exedir=None,
                 log_file=None, runtime_file=None, hostfile=None):
     """Run Dinf flow direction"""
     fname = TauDEM.func_name('dinfflowdir')
     return TauDEM.run(FileClass.get_executable_fullpath(fname, exedir),
                       {'-fel': filleddem}, workingdir,
                       None,
                       {'-ang': flowangle, '-slp': slope},
                       {'mpipath': mpiexedir, 'hostfile': hostfile, 'n': np},
                       {'logfile': log_file, 'runtimefile': runtime_file})
开发者ID:crazyzlj,项目名称:PyGeoC,代码行数:12,代码来源:TauDEM.py

示例5: pitremove

# 需要导入模块: from pygeoc.utils import FileClass [as 别名]
# 或者: from pygeoc.utils.FileClass import get_executable_fullpath [as 别名]
 def pitremove(np, dem, filleddem, workingdir=None, mpiexedir=None, exedir=None, log_file=None,
               runtime_file=None, hostfile=None):
     """Run pit remove using the flooding approach """
     fname = TauDEM.func_name('pitremove')
     return TauDEM.run(FileClass.get_executable_fullpath(fname, exedir),
                       {'-z': dem}, workingdir,
                       None,
                       {'-fel': filleddem},
                       {'mpipath': mpiexedir, 'hostfile': hostfile, 'n': np},
                       {'logfile': log_file, 'runtimefile': runtime_file})
开发者ID:crazyzlj,项目名称:PyGeoC,代码行数:12,代码来源:TauDEM.py

示例6: d8hdisttostrm

# 需要导入模块: from pygeoc.utils import FileClass [as 别名]
# 或者: from pygeoc.utils.FileClass import get_executable_fullpath [as 别名]
 def d8hdisttostrm(np, p, src, dist, thresh, workingdir=None,
                   mpiexedir=None, exedir=None, log_file=None, runtime_file=None, hostfile=None):
     """Run D8 horizontal distance down to stream.
     """
     fname = TauDEM.func_name('d8hdisttostrm')
     return TauDEM.run(FileClass.get_executable_fullpath(fname, exedir),
                       {'-p': p, '-src': src},
                       workingdir,
                       {'-thresh': thresh},
                       {'-dist': dist},
                       {'mpipath': mpiexedir, 'hostfile': hostfile, 'n': np},
                       {'logfile': log_file, 'runtimefile': runtime_file})
开发者ID:crazyzlj,项目名称:PyGeoC,代码行数:14,代码来源:TauDEM.py

示例7: moveoutletstostrm

# 需要导入模块: from pygeoc.utils import FileClass [as 别名]
# 或者: from pygeoc.utils.FileClass import get_executable_fullpath [as 别名]
 def moveoutletstostrm(np, flowdir, streamRaster, outlet, modifiedOutlet,
                       workingdir=None, mpiexedir=None,
                       exedir=None, log_file=None, runtime_file=None, hostfile=None):
     """Run move the given outlets to stream"""
     fname = TauDEM.func_name('moveoutletstostrm')
     return TauDEM.run(FileClass.get_executable_fullpath(fname, exedir),
                       {'-p': flowdir, '-src': streamRaster, '-o': outlet},
                       workingdir,
                       None,
                       {'-om': modifiedOutlet},
                       {'mpipath': mpiexedir, 'hostfile': hostfile, 'n': np},
                       {'logfile': log_file, 'runtimefile': runtime_file})
开发者ID:crazyzlj,项目名称:PyGeoC,代码行数:14,代码来源:TauDEM.py

示例8: convert2geojson

# 需要导入模块: from pygeoc.utils import FileClass [as 别名]
# 或者: from pygeoc.utils.FileClass import get_executable_fullpath [as 别名]
 def convert2geojson(jsonfile, src_srs, dst_srs, src_file):
     """convert shapefile to geojson file"""
     if os.path.exists(jsonfile):
         os.remove(jsonfile)
     if sysstr == 'Windows':
         exepath = '"%s/Lib/site-packages/osgeo/ogr2ogr"' % sys.exec_prefix
     else:
         exepath = FileClass.get_executable_fullpath('ogr2ogr')
     # os.system(s)
     s = '%s -f GeoJSON -s_srs "%s" -t_srs %s %s %s' % (
         exepath, src_srs, dst_srs, jsonfile, src_file)
     UtilClass.run_command(s)
开发者ID:crazyzlj,项目名称:PyGeoC,代码行数:14,代码来源:vector.py

示例9: streamnet

# 需要导入模块: from pygeoc.utils import FileClass [as 别名]
# 或者: from pygeoc.utils.FileClass import get_executable_fullpath [as 别名]
 def streamnet(np, filleddem, flowdir, acc, streamRaster, modifiedOutlet,
               streamOrder, chNetwork, chCoord, streamNet, subbasin, workingdir=None,
               mpiexedir=None, exedir=None, log_file=None, runtime_file=None, hostfile=None):
     """Run streamnet"""
     fname = TauDEM.func_name('streamnet')
     return TauDEM.run(FileClass.get_executable_fullpath(fname, exedir),
                       {'-fel': filleddem, '-p': flowdir, '-ad8': acc, '-src': streamRaster,
                        '-o': modifiedOutlet}, workingdir,
                       None,
                       {'-ord': streamOrder, '-tree': chNetwork, '-coord': chCoord,
                        '-net': streamNet, '-w': subbasin},
                       {'mpipath': mpiexedir, 'hostfile': hostfile, 'n': np},
                       {'logfile': log_file, 'runtimefile': runtime_file})
开发者ID:crazyzlj,项目名称:PyGeoC,代码行数:15,代码来源:TauDEM.py

示例10: dinfdistdown

# 需要导入模块: from pygeoc.utils import FileClass [as 别名]
# 或者: from pygeoc.utils.FileClass import get_executable_fullpath [as 别名]
 def dinfdistdown(np, ang, fel, slp, src, statsm, distm, edgecontamination, wg, dist,
                  workingdir=None, mpiexedir=None, exedir=None,
                  log_file=None, runtime_file=None, hostfile=None):
     """Run D-inf distance down to stream"""
     in_params = {'-m': '%s %s' % (TauDEM.convertstatsmethod(statsm),
                                   TauDEM.convertdistmethod(distm))}
     if StringClass.string_match(edgecontamination, 'false') or edgecontamination is False:
         in_params['-nc'] = None
     fname = TauDEM.func_name('dinfdistdown')
     return TauDEM.run(FileClass.get_executable_fullpath(fname, exedir),
                       {'-fel': fel, '-slp': slp, '-ang': ang, '-src': src, '-wg': wg},
                       workingdir,
                       in_params,
                       {'-dd': dist},
                       {'mpipath': mpiexedir, 'hostfile': hostfile, 'n': np},
                       {'logfile': log_file, 'runtimefile': runtime_file})
开发者ID:crazyzlj,项目名称:PyGeoC,代码行数:18,代码来源:TauDEM.py

示例11: areadinf

# 需要导入模块: from pygeoc.utils import FileClass [as 别名]
# 或者: from pygeoc.utils.FileClass import get_executable_fullpath [as 别名]
 def areadinf(np, angfile, sca, outlet=None, wg=None, edgecontaimination=False,
              workingdir=None, mpiexedir=None, exedir=None,
              log_file=None, runtime_file=None, hostfile=None):
     """Run Accumulate area according to Dinf flow direction"""
     # -nc means do not consider edge contaimination
     if edgecontaimination:
         in_params = {'-nc': None}
     else:
         in_params = None
     fname = TauDEM.func_name('areadinf')
     return TauDEM.run(FileClass.get_executable_fullpath(fname, exedir),
                       {'-ang': angfile, '-o': outlet, '-wg': wg}, workingdir,
                       in_params,
                       {'-sca': sca},
                       {'mpipath': mpiexedir, 'hostfile': hostfile, 'n': np},
                       {'logfile': log_file, 'runtimefile': runtime_file})
开发者ID:crazyzlj,项目名称:PyGeoC,代码行数:18,代码来源:TauDEM.py

示例12: dropanalysis

# 需要导入模块: from pygeoc.utils import FileClass [as 别名]
# 或者: from pygeoc.utils.FileClass import get_executable_fullpath [as 别名]
 def dropanalysis(np, fel, p, ad8, ssa, outlet, minthresh, maxthresh, numthresh,
                  logspace, drp, workingdir=None,
                  mpiexedir=None, exedir=None, log_file=None, runtime_file=None, hostfile=None):
     """Drop analysis for optimal threshold for extracting stream."""
     parstr = '%f %f %f' % (minthresh, maxthresh, numthresh)
     if logspace == 'false':
         parstr += ' 1'
     else:
         parstr += ' 0'
     fname = TauDEM.func_name('dropanalysis')
     return TauDEM.run(FileClass.get_executable_fullpath(fname, exedir),
                       {'-fel': fel, '-p': p, '-ad8': ad8, '-ssa': ssa, '-o': outlet},
                       workingdir,
                       {'-par': parstr},
                       {'-drp': drp},
                       {'mpipath': mpiexedir, 'hostfile': hostfile, 'n': np},
                       {'logfile': log_file, 'runtimefile': runtime_file})
开发者ID:crazyzlj,项目名称:PyGeoC,代码行数:19,代码来源:TauDEM.py

示例13: connectdown

# 需要导入模块: from pygeoc.utils import FileClass [as 别名]
# 或者: from pygeoc.utils.FileClass import get_executable_fullpath [as 别名]
 def connectdown(np, p, acc, outlet, wtsd=None, workingdir=None, mpiexedir=None,
                 exedir=None, log_file=None, runtime_file=None, hostfile=None):
     """Reads an ad8 contributing area file,
     identifies the location of the largest ad8 value as the outlet of the largest watershed"""
     # If watershed is not specified, use acc to generate a mask layer.
     if wtsd is None or not os.path.isfile(wtsd):
         p, workingdir = TauDEM.check_infile_and_wp(p, workingdir)
         wtsd = workingdir + os.sep + 'wtsd_default.tif'
         RasterUtilClass.get_mask_from_raster(p, wtsd, True)
     fname = TauDEM.func_name('connectdown')
     return TauDEM.run(FileClass.get_executable_fullpath(fname, exedir),
                       {'-p': p, '-ad8': acc, '-w': wtsd},
                       workingdir,
                       None,
                       {'-o': outlet},
                       {'mpipath': mpiexedir, 'hostfile': hostfile, 'n': np},
                       {'logfile': log_file, 'runtimefile': runtime_file})
开发者ID:crazyzlj,项目名称:PyGeoC,代码行数:19,代码来源:TauDEM.py

示例14: d8distdowntostream

# 需要导入模块: from pygeoc.utils import FileClass [as 别名]
# 或者: from pygeoc.utils.FileClass import get_executable_fullpath [as 别名]
    def d8distdowntostream(np, p, fel, src, dist, distancemethod, thresh, workingdir=None,
                           mpiexedir=None, exedir=None,
                           log_file=None, runtime_file=None, hostfile=None):
        """Run D8 distance down to stream by different method for distance.
        This function is extended from d8hdisttostrm by Liangjun.

        Please clone `TauDEM by lreis2415`_ and compile for this program.

        .. _TauDEM by lreis2415:
           https://github.com/lreis2415/TauDEM
        """
        fname = TauDEM.func_name('d8distdowntostream')
        return TauDEM.run(FileClass.get_executable_fullpath(fname, exedir),
                          {'-fel': fel, '-p': p, '-src': src},
                          workingdir,
                          {'-thresh': thresh, '-m': TauDEM.convertdistmethod(distancemethod)},
                          {'-dist': dist},
                          {'mpipath': mpiexedir, 'hostfile': hostfile, 'n': np},
                          {'logfile': log_file, 'runtimefile': runtime_file})
开发者ID:crazyzlj,项目名称:PyGeoC,代码行数:21,代码来源:TauDEM.py


注:本文中的pygeoc.utils.FileClass.get_executable_fullpath方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。