本文整理汇总了Python中CANON.CANONLoader.nps29_files方法的典型用法代码示例。如果您正苦于以下问题:Python CANONLoader.nps29_files方法的具体用法?Python CANONLoader.nps29_files怎么用?Python CANONLoader.nps29_files使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CANON.CANONLoader
的用法示例。
在下文中一共展示了CANONLoader.nps29_files方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: from CANON import CANONLoader [as 别名]
# 或者: from CANON.CANONLoader import nps29_files [as 别名]
cl.l_662_base = 'http://www.cencoos.org/thredds/dodsC/gliders/Line66/'
cl.l_662_files = ['OS_Glider_L_662_20130711_TS.nc']
cl.l_662_parms = ['TEMP', 'PSAL', 'FLU2']
cl.l_662_startDatetime = datetime.datetime(*startdate[:])
cl.l_662_endDatetime = datetime.datetime(*enddate[:])
# NPS34
cl.nps34_base = 'http://www.cencoos.org/thredds/dodsC/gliders/Line66/'
cl.nps34_files = [ 'OS_Glider_NPS_G34_20130829_TS.nc']
cl.nps34_parms = ['TEMP', 'PSAL']
cl.nps34_startDatetime = datetime.datetime(*startdate[:])
cl.nps34_endDatetime = datetime.datetime(*enddate[:])
# NPS29
cl.nps29_base = 'http://www.cencoos.org/thredds/dodsC/gliders/Line66/'
cl.nps29_files = [ 'OS_Glider_NPS_G29_20130829_TS.nc']
cl.nps29_parms = ['TEMP', 'PSAL', 'FLU2']
cl.nps29_startDatetime = datetime.datetime(*startdate[:])
cl.nps29_endDatetime = datetime.datetime(*enddate[:])
###################################################################################################################
# Execute the load
cl.process_command_line()
if cl.args.test:
cl.load_NPS29(stride=1)
cl.load_NPS34(stride=1)
cl.loadL_662(stride=1) # done
elif cl.args.optimal_stride:
示例2: range
# 需要导入模块: from CANON import CANONLoader [as 别名]
# 或者: from CANON.CANONLoader import nps29_files [as 别名]
######################################################################
# Glider data files from CeNCOOS thredds server
# L_662
cl.l_662_base = 'http://legacy.cencoos.org/thredds/dodsC/gliders/Line66/'
# cl.l_662_files = [ 'OS_Glider_L_662_20151124_TS.nc' ] ## this file was current Jan 1 2016 to about March 3 2016.
# cl.l_662_files = [ 'OS_Glider_L_662_20160310_TS.nc' ] ## changed to this file about March 3, 2016
cl.l_662_files = [ 'OS_Glider_L_662_20160628_TS.nc', ## changed to this file about June 28, 2016. End Aug 10 2016.
'OS_Glider_L_662_20160817_TS.nc', ## deployed after servicing Aug 17 2016
'OS_Glider_L_662_20160913_TS.nc' ] ## deployed new glider Sept 13 2016
cl.l_662_parms = ['TEMP', 'PSAL', 'FLU2']
cl.l_662_startDatetime = startdate
cl.l_662_endDatetime = enddate
# NPS_29 ## not in this campaign
cl.nps29_base = 'http://legacy.cencoos.org/thredds/dodsC/gliders/Line66/'
cl.nps29_files = [ 'OS_Glider_NPS_Glider_29_20120524_TS.nc' ]
cl.nps29_parms = ['TEMP', 'PSAL']
cl.nps29_startDatetime = startdate
cl.nps29_endDatetime = enddate
# SG_621 ## KISS glider from Caltech/JPL
cl.sg621_base = cl.dodsBase + 'CANON/2016_Sep/Platforms/Gliders/Seaglider/'
cl.sg621_files = ['p621{:04d}.nc'.format(i) for i in range(48,421)] ## index needs to be 1 higher than terminal file name
cl.sg621_parms = ['temperature', 'salinity']
cl.sg621_startDatetime = startdate
cl.sg621_endDatetime = enddate
# NPS_34 ## The following loads decimated subset of data telemetered during deployment
'''
cl.nps34_base = 'http://legacy.cencoos.org/thredds/dodsC/gliders/Line66/'
示例3:
# 需要导入模块: from CANON import CANONLoader [as 别名]
# 或者: from CANON.CANONLoader import nps29_files [as 别名]
######################################################################
# GLIDERS
######################################################################
# Glider data files from CeNCOOS thredds server
# L_662
cl.l_662_base = 'http://legacy.cencoos.org/thredds/dodsC/gliders/Line66/'
cl.l_662_files = [ 'OS_Glider_L_662_20140923_TS.nc' ]
cl.l_662_parms = ['TEMP', 'PSAL', 'FLU2']
cl.l_662_startDatetime = startdate
cl.l_662_endDatetime = enddate
# NPS_29
cl.nps29_base = 'http://legacy.cencoos.org/thredds/dodsC/gliders/Line66/'
cl.nps29_files = [ 'OS_Glider_NPS_G29_20140930_TS.nc' ]
cl.nps29_parms = ['TEMP', 'PSAL', 'RHOD']
cl.nps29_startDatetime = startdate
cl.nps29_endDatetime = enddate
######################################################################
# Wavegliders
######################################################################
# WG Tex - All instruments combined into one file - one time coordinate
##cl.wg_tex_base = cl.dodsBase + 'CANON_september2013/Platforms/Gliders/WG_Tex/final/'
##cl.wg_tex_files = [ 'WG_Tex_all_final.nc' ]
##cl.wg_tex_parms = [ 'wind_dir', 'wind_spd', 'atm_press', 'air_temp', 'water_temp', 'sal', 'density', 'bb_470', 'bb_650', 'chl' ]
##cl.wg_tex_startDatetime = startdate
##cl.wg_tex_endDatetime = enddate