本文整理汇总了Python中DAPloaders.runGliderLoader方法的典型用法代码示例。如果您正苦于以下问题:Python DAPloaders.runGliderLoader方法的具体用法?Python DAPloaders.runGliderLoader怎么用?Python DAPloaders.runGliderLoader使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DAPloaders
的用法示例。
在下文中一共展示了DAPloaders.runGliderLoader方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: loadCarmen
# 需要导入模块: import DAPloaders [as 别名]
# 或者: from DAPloaders import runGliderLoader [as 别名]
def loadCarmen(self, stride=None):
'''
Glider specific load functions
'''
stride = stride or self.stride
for (aName, file) in zip([ a + getStrideText(stride) for a in self.carmen_files], self.carmen_files):
url = self.carmen_base + file
DAPloaders.runGliderLoader(url, self.campaignName, self.campaignDescription, aName, 'carmen', self.colors['carmen'], 'glider', 'Glider Mission',
self.carmen_parms, self.dbAlias, stride, grdTerrain=self.grdTerrain)
示例2: load_slocum_260
# 需要导入模块: import DAPloaders [as 别名]
# 或者: from DAPloaders import runGliderLoader [as 别名]
def load_slocum_260(self, stride=None):
'''
Glider specific load functions
'''
stride = stride or self.stride
for (aName, file) in zip([ a + getStrideText(stride) for a in self.slocum_260_files], self.slocum_260_files):
url = self.slocum_260_base + file
DAPloaders.runGliderLoader(url, self.campaignName, self.campaignDescription, aName, 'Slocum_260', self.colors['slocum_260'], 'glider', 'Glider Mission',
self.slocum_260_parms, self.dbAlias, stride, self.slocum_260_startDatetime, self.slocum_260_endDatetime, grdTerrain=self.grdTerrain)
示例3: load_wg_tex_met
# 需要导入模块: import DAPloaders [as 别名]
# 或者: from DAPloaders import runGliderLoader [as 别名]
def load_wg_tex_met(self, stride=None):
'''
Glider specific load functions
'''
stride = stride or self.stride
for (aName, file) in zip([ a + getStrideText(stride) for a in self.wg_tex_met_files], self.wg_tex_met_files):
url = self.wg_tex_met_base + file
DAPloaders.runGliderLoader(url, self.campaignName, self.campaignDescription, aName, 'wg_Tex_Glider', self.colors['wg_tex'], 'waveglider', 'Glider Mission',
self.wg_tex_met_parms, self.dbAlias, stride, self.wg_tex_met_startDatetime, self.wg_tex_met_endDatetime,
grdTerrain=self.grdTerrain)
示例4: loadRusalka
# 需要导入模块: import DAPloaders [as 别名]
# 或者: from DAPloaders import runGliderLoader [as 别名]
def loadRusalka(self, stride=None):
'''
Glider specific load functions
'''
stride = stride or self.stride
for (aName, file) in zip([ a + getStrideText(stride) for a in self.rusalka_files], self.rusalka_files):
url = self.rusalka_base + file
print "url = %s" % url
DAPloaders.runGliderLoader(url, self.campaignName, self.campaignDescription, aName, 'rusalka', self.colors['rusalka'], 'glider', 'Glider Mission',
self.rusalka_parms, self.dbAlias, stride, grdTerrain=self.grdTerrain)
示例5: load_NPS34
# 需要导入模块: import DAPloaders [as 别名]
# 或者: from DAPloaders import runGliderLoader [as 别名]
def load_NPS34(self, stride=None):
'''
Glider specific load functions
'''
stride = stride or self.stride
for (aName, file) in zip([ a + getStrideText(stride) for a in self.nps34_files], self.nps34_files):
url = self.nps34_base + file
print "url = %s" % url
DAPloaders.runGliderLoader(url, self.campaignName, self.campaignDescription, aName, 'NPS_Glider_34', self.colors['nps34'], 'glider', 'Glider Mission',
self.nps34_parms, self.dbAlias, stride, self.nps34_startDatetime, self.nps34_endDatetime, grdTerrain=self.grdTerrain)
示例6: load_glider_met
# 需要导入模块: import DAPloaders [as 别名]
# 或者: from DAPloaders import runGliderLoader [as 别名]
def load_glider_met(self, stride=None):
'''
Glider load functions. Requires apriori knowledge of glider file names so we can extract platform and color name
To be used with gliders that follow the same naming convention, i.e. nemesis_met.nc, ucsc260_met.nc
and that load the exact same parameters, i.e. meanu,meanv or windspeed, winddirection etc.
'''
stride = stride or self.stride
for (aName, file) in zip([ a + getStrideText(stride) for a in self.glider_met_files], self.glider_met_files):
url = self.glider_met_base + file
gplatform=aName.split('_')[0].upper() + '_Glider'
gname=aName.split('_')[0].lower()
DAPloaders.runGliderLoader(url, self.campaignName, self.campaignDescription, aName, gplatform, self.colors[gname], 'glider', 'Glider Mission',
self.glider_met_parms, self.dbAlias, stride, self.glider_met_startDatetime, self.glider_met_endDatetime, grdTerrain=self.grdTerrain)
示例7: load_glider_ctd
# 需要导入模块: import DAPloaders [as 别名]
# 或者: from DAPloaders import runGliderLoader [as 别名]
def load_glider_ctd(self, stride=None):
'''
Glider load functions. Requires apriori knowledge of glider file names so we can extract platform and color name
To be used with gliders that follow the same naming convention, i.e. nemesis_ctd.nc, ucsc260_ctd.nc
and that load the exact same parameters, i.e. TEMP, PSAL or TEMP, PSAL, FLU2 or TEMP, FLU2, OPBS etc
'''
stride = stride or self.stride
for (aName, file) in zip([ a + getStrideText(stride) for a in self.glider_ctd_files], self.glider_ctd_files):
url = self.glider_ctd_base + file
gplatform=aName.split('_')[0].upper() + '_Glider'
gname=aName.split('_')[0].lower()
print "url = %s" % url
print "platform = %s" % gplatform
DAPloaders.runGliderLoader(url, self.campaignName, self.campaignDescription, aName, gplatform, self.colors[gname], 'glider', 'Glider Mission',
self.glider_ctd_parms, self.dbAlias, stride, self.glider_ctd_startDatetime, self.glider_ctd_endDatetime, grdTerrain=self.grdTerrain)
示例8: load_NPS29
# 需要导入模块: import DAPloaders [as 别名]
# 或者: from DAPloaders import runGliderLoader [as 别名]
def load_NPS29(self, stride=None):
'''
Glider specific load functions
'''
stride = stride or self.stride
for (aName, file) in zip([ a + getStrideText(stride) for a in self.nps29_files], self.nps29_files):
url = self.nps29_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']
DAPloaders.runGliderLoader(url, self.campaignName, self.campaignDescription, aName, 'NPS_Glider_29', self.colors['nps29'], 'glider', 'Glider Mission',
self.nps29_parms, self.dbAlias, stride, self.nps29_startDatetime, self.nps29_endDatetime, grdTerrain=self.grdTerrain,
dataStartDatetime=dataStartDatetime)
示例9: load_glider_ctd
# 需要导入模块: import DAPloaders [as 别名]
# 或者: from DAPloaders import runGliderLoader [as 别名]
def load_glider_ctd(self, stride=None):
'''
Glider load functions. Requires apriori knowledge of glider file names so we can extract platform and color name
To be used with gliders that follow the same naming convention, i.e. nemesis_ctd.nc, ucsc260_ctd.nc
and that load the exact same parameters, i.e. TEMP, PSAL or TEMP, PSAL, FLU2 or TEMP, FLU2, OPBS etc
'''
stride = stride or self.stride
for (aName, file) in zip([ a + getStrideText(stride) for a in self.glider_ctd_files], self.glider_ctd_files):
url = self.glider_ctd_base + file
pName = aName.split('/')[-1].split('.')[0]
p = re.compile('-\d+T\d+_Time')
pName = p.sub('', pName)
if pName.find('-') != -1:
logger.warn("Replacing '-' characters in platform name %s with '_'s", pName)
pName = pName.replace('-', '_')
logger.info("Executing runGliderLoader with url = %s", url)
DAPloaders.runGliderLoader(url, self.campaignName, aName, pName, 'FFBA26', 'glider', 'Glider Mission',
self.glider_ctd_parms, self.dbAlias, stride, self.glider_ctd_startDatetime, self.glider_ctd_endDatetime)