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


Python CANONLoader.nps29_parms方法代码示例

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


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

示例1: range

# 需要导入模块: from CANON import CANONLoader [as 别名]
# 或者: from CANON.CANONLoader import nps29_parms [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/'
cl.nps34_files = [ 'OS_Glider_NPS_G34_20160720_TS.nc' ] ## deployed July 19 2016
开发者ID:carueda,项目名称:stoqs,代码行数:33,代码来源:loadCANON_september2016.py

示例2:

# 需要导入模块: from CANON import CANONLoader [as 别名]
# 或者: from CANON.CANONLoader import nps29_parms [as 别名]
#  GLIDERS
######################################################################
# Glider data files from CeNCOOS thredds server
# L_662
# cl.l_662_base = 'http://www.cencoos.org/thredds/dodsC/gliders/Line66/'
cl.l_662_base = "http://legacy.cencoos.org/thredds/dodsC/gliders/Line66/"
cl.l_662_files = ["OS_Glider_L_662_20150813_TS.nc"]
# OS_Glider_L_662_20150813_TS.nc most recent deployment
cl.l_662_parms = ["TEMP", "PSAL", "FLU2"]
cl.l_662_startDatetime = startdate
cl.l_662_endDatetime = enddate

# NPS_29
# cl.nps29_base = 'http://www.cencoos.org/thredds/dodsC/gliders/Line66/'
# cl.nps29_files = [ 'OS_Glider_NPS_G29_20140930_TS.nc' ]
cl.nps29_parms = ["TEMP", "PSAL"]
cl.nps29_startDatetime = startdate
cl.nps29_endDatetime = enddate

# UCSC_294
# cl.ucsc294_base = 'http://data.ioos.us/gliders/thredds/dodsC/deployments/mbari/UCSC294-20150430T2218/'
# cl.ucsc294_files = [ 'UCSC294-20150430T2218.nc3.nc' ]
# cl.ucsc294_parms = ['TEMP', 'PSAL']
# cl.ucsc294_startDatetime = startdate
# cl.ucsc294_endDatetime = enddate

# UCSC_260
# cl.ucsc260_base = 'http://data.ioos.us/gliders//thredds/dodsC/deployments/mbari/UCSC260-20150520T0000/'
# cl.ucsc260_files = [ 'UCSC260-20150520T0000.nc3.nc'  ]
# cl.ucsc260_parms = ['TEMP', 'PSAL']
# cl.ucsc260_startDatetime = startdate
开发者ID:josephmfaulkner,项目名称:stoqs,代码行数:33,代码来源:loadCANON_os2015.py

示例3:

# 需要导入模块: from CANON import CANONLoader [as 别名]
# 或者: from CANON.CANONLoader import nps29_parms [as 别名]
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:
    cl.loadL_662(stride=2) # done
开发者ID:Brett-Rankin,项目名称:stoqs,代码行数:33,代码来源:gliders_loadsep2013.py

示例4:

# 需要导入模块: from CANON import CANONLoader [as 别名]
# 或者: from CANON.CANONLoader import nps29_parms [as 别名]
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', 'OPBS']
cl.nps29_startDatetime = datetime.datetime(*startdate[:])
cl.nps29_endDatetime = datetime.datetime(*enddate[:])

# Liquid Robotics Waveglider
cl.waveglider_base = cl.dodsBase + 'CANON_september2013/waveglider/'
cl.waveglider_files = [ 'waveglider_gpctd_WG.nc' ]
cl.waveglider_parms = [ 'TEMP', 'PSAL', 'oxygen' ]
cl.waveglider_startDatetime = datetime.datetime(*startdate[:])
cl.waveglider_endDatetime = datetime.datetime(*enddate[:])

######################################################################
#  WESTERN FLYER: September 20-27
######################################################################
# UCTD
cl.wfuctd_base = cl.dodsBase + 'CANON_september2013/Platforms/Ships/Western_Flyer/netcdf/uctd/'
开发者ID:Brett-Rankin,项目名称:stoqs,代码行数:33,代码来源:loadsep2013.py

示例5:

# 需要导入模块: from CANON import CANONLoader [as 别名]
# 或者: from CANON.CANONLoader import nps29_parms [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

# WG OA - All instruments combined into one file - one time coordinate
开发者ID:danellecline,项目名称:stoqs,代码行数:32,代码来源:loadCANON_september2014.py

示例6:

# 需要导入模块: from CANON import CANONLoader [as 别名]
# 或者: from CANON.CANONLoader import nps29_parms [as 别名]
            "centerOfRotation": "-2711557.9403829873 -4331414.329506527 3801353.4691465236",
            "VerticalExaggeration": "10",
            "speed": "1",
        }
    },
    grdTerrain=os.path.join(parentDir, "Monterey25.grd"),
)

# Set beginning start and end dates for this campaign - if this script is to be run regularly from cron to add new
# data to STOQS then use the --append option to append new data.  Do not change these values.
startdate = datetime.datetime(2014, 9, 1)
enddate = datetime.datetime(2014, 10, 12)

# NPS_29
cl.nps29_base = "http://www.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

cl.process_command_line()

if cl.args.test:
    cl.load_NPS29(stride=10)

elif cl.args.optimal_stride:
    cl.load_NPS29(stride=2)

else:
    cl.load_NPS29()
开发者ID:devonrusconi,项目名称:stoqs,代码行数:32,代码来源:nps29_loadsep2014.py


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