本文整理汇总了Python中CANON.CANONLoader.wg_tex_ctd_parms方法的典型用法代码示例。如果您正苦于以下问题:Python CANONLoader.wg_tex_ctd_parms方法的具体用法?Python CANONLoader.wg_tex_ctd_parms怎么用?Python CANONLoader.wg_tex_ctd_parms使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CANON.CANONLoader
的用法示例。
在下文中一共展示了CANONLoader.wg_tex_ctd_parms方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: from CANON import CANONLoader [as 别名]
# 或者: from CANON.CANONLoader import wg_tex_ctd_parms [as 别名]
######################################################################
# Set start and end dates for all glider loads
# startdate is 24hours from now
ts=time.time()-(12.2*60*60)
st=datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d %H:%M')
t=time.strptime(st,"%Y-%m-%d %H:%M")
t =time.strptime("2013-09-03 0:01", "%Y-%m-%d %H:%M")
startdate=t[:6]
t =time.strptime("2013-10-15 0:01", "%Y-%m-%d %H:%M")
enddate=t[:6]
# WG Tex Eco Puck
cl.wg_tex_ctd_base = cl.dodsBase + 'CANON_september2013/Platforms/Gliders/WG_Tex/NetCDF/'
cl.wg_tex_ctd_files = [ 'WG_Tex_eco.nc']
cl.wg_tex_ctd_parms = ['chlorophyll','backscatter650','backscatter470']
cl.wg_tex_ctd_startDatetime = datetime.datetime(*startdate[:])
cl.wg_tex_ctd_endDatetime = datetime.datetime(*enddate[:])
###################################################################################################################
# Execute the load
cl.process_command_line()
if cl.args.test:
cl.load_wg_tex_ctd(stride=1)
elif cl.args.optimal_stride:
cl.load_wg_tex_ctd(stride=1)
# cl.loadStella204(stride=1)
示例2:
# 需要导入模块: from CANON import CANONLoader [as 别名]
# 或者: from CANON.CANONLoader import wg_tex_ctd_parms [as 别名]
'ucsc294_met.nc']
cl.glider_met_parms = ['meanu','meanv' ]
cl.glider_met_startDatetime = datetime.datetime(*startdate[:])
cl.glider_met_endDatetime = datetime.datetime(*enddate[:])
# WG OA
cl.wg_oa_ctd_base = cl.dodsBase + 'CANON_september2013/Platforms/Gliders/WG_OA/NetCDF/'
cl.wg_oa_ctd_files = [ 'WG_OA_ctd.nc']
cl.wg_oa_ctd_parms = ['TEMP', 'PSAL','DENSITY','OXYGEN' ]
cl.wg_oa_ctd_startDatetime = datetime.datetime(*startdate[:])
cl.wg_oa_ctd_endDatetime = datetime.datetime(*enddate[:])
# WG Tex
cl.wg_tex_ctd_base = cl.dodsBase + 'CANON_september2013/Platforms/Gliders/WG_Tex/NetCDF/'
cl.wg_tex_ctd_files = [ 'WG_Tex_ctd.nc']
cl.wg_tex_ctd_parms = ['TEMP', 'PSAL','DENSITY' ]
cl.wg_tex_ctd_startDatetime = datetime.datetime(*startdate[:])
cl.wg_tex_ctd_endDatetime = datetime.datetime(*enddate[:])
# WG OA
cl.wg_oa_met_base = cl.dodsBase + 'CANON_september2013/Platforms/Gliders/WG_OA/NetCDF/'
cl.wg_oa_met_files = [ 'WG_OA_met.nc']
cl.wg_oa_met_parms = ['WINDSPEED','WINDDIRECTION','AIRTEMPERATURE','AIRPRESSURE']
cl.wg_oa_met_startDatetime = datetime.datetime(*startdate[:])
cl.wg_oa_met_endDatetime = datetime.datetime(*enddate[:])
# WG Tex
cl.wg_tex_met_base = cl.dodsBase + 'CANON_september2013/Platforms/Gliders/WG_Tex/NetCDF/'
cl.wg_tex_met_parms = ['WINDSPEED','WINDDIRECTION','AIRTEMPERATURE','AIRPRESSURE']
cl.wg_tex_met_files = [ 'WG_Tex_met.nc']
cl.wg_tex_met_startDatetime = datetime.datetime(*startdate[:])