本文整理汇总了Python中DAPloaders.runBEDTrajectoryLoader方法的典型用法代码示例。如果您正苦于以下问题:Python DAPloaders.runBEDTrajectoryLoader方法的具体用法?Python DAPloaders.runBEDTrajectoryLoader怎么用?Python DAPloaders.runBEDTrajectoryLoader使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DAPloaders
的用法示例。
在下文中一共展示了DAPloaders.runBEDTrajectoryLoader方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: loadBEDS
# 需要导入模块: import DAPloaders [as 别名]
# 或者: from DAPloaders import runBEDTrajectoryLoader [as 别名]
def loadBEDS(self, stride=None, featureType='trajectory'):
'''
BEDS specific load functions; featureType can be 'trajectory' or 'timeSeries'.
Use 'trajectory' for events that we've fudged into a trajectory netCDF file
using the canyon's thalweg. Use 'timeSeries' for events for which the BED
does not significantly translate.
'''
stride = stride or self.stride
for (aName, pName, file, plotTimeSeriesDepth, fg) in zip(
[ a.split('/')[-1] + ' (stride=%d)' % stride for a in self.bed_files],
self.bed_platforms, self.bed_files, self.bed_depths, self.bed_framegrabs):
url = os.path.join(self.bed_base, file)
try:
if featureType.lower() == 'trajectory':
# To get timeSeries plotting for trajectories (in the Parameter tab of the UI)
# assign a plotTimeSeriesDepth value of the starting depth in meters.
DAPloaders.runBEDTrajectoryLoader(url, self.campaignName, self.campaignDescription,
aName, pName, self.colors[pName.lower()], 'bed',
'deployment', self.bed_parms, self.dbAlias, stride,
plotTimeSeriesDepth=plotTimeSeriesDepth,
grdTerrain=self.grdTerrain, framegrab=fg)
elif featureType.lower() == 'timeseries':
DAPloaders.runTimeSeriesLoader(url, self.campaignName, self.campaignDescription,
aName, pName, self.colors[pName.lower()], 'bed',
'deployment', self.bed_parms, self.dbAlias, stride)
self.addPlatformResources('http://stoqs.mbari.org/x3d/beds/beds_housing_with_axes_src_scene.x3d',
pName, scalefactor=10)
except (DAPloaders.OpendapError, DAPloaders.InvalidSliceRequest):
pass