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


Python DAPloaders.runMooringLoader方法代码示例

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


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

示例1: loadM1

# 需要导入模块: import DAPloaders [as 别名]
# 或者: from DAPloaders import runMooringLoader [as 别名]
    def loadM1(self, stride=None):
        '''
        Mooring M1 specific load functions
        '''
        platformName = 'M1_Mooring'
        stride = stride or self.stride
        for (aName, file) in zip([ a + getStrideText(stride) for a in self.m1_files], self.m1_files):
            url = os.path.join(self.m1_base, file)
            
            dataStartDatetime = None
            if self.args.append:
                # Return datetime of last timevalue - if data are loaded from multiple activities return the earliest last datetime value
                dataStartDatetime = InstantPoint.objects.using(self.dbAlias).filter(activity__name=aName).aggregate(Max('timevalue'))['timevalue__max']
                if dataStartDatetime:
                    # Subract an hour to fill in missing_values at end from previous load
                    dataStartDatetime = dataStartDatetime - timedelta(seconds=3600)

            DAPloaders.runMooringLoader(url, self.campaignName, self.campaignDescription, aName, platformName, self.colors['m1'], 'mooring', 'Mooring Deployment', 
                                        self.m1_parms, self.dbAlias, stride, self.m1_startDatetime, self.m1_endDatetime, dataStartDatetime)
    
        # For timeseriesProfile data we need to pass the nominaldepth of the plaform
        # so that the model is put at the correct depth in the Spatial -> 3D view.
        try:
            self.addPlatformResources('http://stoqs.mbari.org/x3d/m1_assembly/m1_assembly_scene.x3d', 
                                      platformName, nominaldepth=self.m1_nominaldepth)
        except AttributeError:
            self.addPlatformResources('http://stoqs.mbari.org/x3d/m1_assembly/m1_assembly_scene.x3d', 
                                      platformName)
开发者ID:josephmfaulkner,项目名称:stoqs,代码行数:30,代码来源:__init__.py

示例2: loadM1met

# 需要导入模块: import DAPloaders [as 别名]
# 或者: from DAPloaders import runMooringLoader [as 别名]
 def loadM1met(self, stride=None):
     '''
     Mooring M1met specific load functions
     '''
     stride = stride or self.stride
     for (aName, file) in zip([ a + getStrideText(stride) for a in self.m1met_files], self.m1met_files):
         url = self.m1met_base + file
         DAPloaders.runMooringLoader(url, self.campaignName, self.campaignDescription, aName, 'M1_Mooring', self.colors['m1'], 'mooring', 'Mooring Deployment', 
                                     self.m1met_parms, self.dbAlias, stride, self.m1met_startDatetime, self.m1met_endDatetime)
开发者ID:josephmfaulkner,项目名称:stoqs,代码行数:11,代码来源:__init__.py

示例3: loadOA2met

# 需要导入模块: import DAPloaders [as 别名]
# 或者: from DAPloaders import runMooringLoader [as 别名]
 def loadOA2met(self, stride=None):
     '''
     Mooring OA specific load functions
     '''
     stride = stride or self.stride
     for (aName, file) in zip([ a + getStrideText(stride) for a in self.OA2met_files], self.OA2met_files):
         url = os.path.join(self.OA2met_base, file)
         DAPloaders.runMooringLoader(url, self.campaignName, self.campaignDescription, aName, 'OA2_Mooring', self.colors['oa2'], 'mooring', 'Mooring Deployment', 
                                     self.OA2met_parms, self.dbAlias, stride, self.OA2met_startDatetime, self.OA2met_endDatetime)
开发者ID:josephmfaulkner,项目名称:stoqs,代码行数:11,代码来源:__init__.py

示例4: loadMackMoor

# 需要导入模块: import DAPloaders [as 别名]
# 或者: from DAPloaders import runMooringLoader [as 别名]
    def loadMackMoor(self, stride=None):
        '''
        Mooring Mack specific load functions
        '''
        stride = stride or self.stride
        pName = 'ESP_Mack_Mooring'
        for (aName, file) in zip([ a + getStrideText(stride) for a in self.mack_moor_files], self.mack_moor_files):
            url = os.path.join(self.mack_moor_base, file)
            DAPloaders.runMooringLoader(url, self.campaignName, self.campaignDescription, aName, pName, self.colors['espmack'], 'mooring', 'Mooring Deployment',
                                       self.mack_moor_parms, self.dbAlias, stride, self.mack_moor_startDatetime, self.mack_moor_endDatetime)

        # Let browser code use {{STATIC_URL}} to fill in the /stoqs/static path
        self.addPlatformResources('x3d/ESPMooring/esp_base_scene.x3d', pName)
开发者ID:josephmfaulkner,项目名称:stoqs,代码行数:15,代码来源:__init__.py

示例5: loadM1

# 需要导入模块: import DAPloaders [as 别名]
# 或者: from DAPloaders import runMooringLoader [as 别名]
    def loadM1(self, stride=None):
        '''
        Mooring M1 specific load functions
        '''
        stride = stride or self.stride
        for (aName, file) in zip([ a + getStrideText(stride) for a in self.m1_files], self.m1_files):
            url = os.path.join(self.m1_base, file)
            
            dataStartDatetime = None
            if self.args.append:
                # Return datetime of last timevalue - if data are loaded from multiple activities return the earliest last datetime value
                dataStartDatetime = InstantPoint.objects.using(self.dbAlias).filter(activity__name=aName).aggregate(Max('timevalue'))['timevalue__max']
                if dataStartDatetime:
                    # Subract an hour to fill in missing_values at end from previous load
                    dataStartDatetime = dataStartDatetime - timedelta(seconds=3600)

            DAPloaders.runMooringLoader(url, self.campaignName, self.campaignDescription, aName, 'M1_Mooring', self.colors['m1'], 'mooring', 'Mooring Deployment', 
                                        self.m1_parms, self.dbAlias, stride, self.m1_startDatetime, self.m1_endDatetime, dataStartDatetime)
开发者ID:Brett-Rankin,项目名称:stoqs,代码行数:20,代码来源:__init__.py


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