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


Python CANONLoader.subsample_csv_base方法代码示例

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


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

示例1:

# 需要导入模块: from CANON import CANONLoader [as 别名]
# 或者: from CANON.CANONLoader import subsample_csv_base [as 别名]
'simz2013c36.nc',
                      ]
cl.rcpctd_parms = [ 'TEMP', 'PSAL', 'xmiss', 'wetstar', 'oxygen' ]

# Mooring M1 Combined file produced by DPforSSDS processing - for just the duration of the campaign
cl.m1_base = 'http://dods.mbari.org/opendap/data/ssdsdata/deployments/m1/201309/'
cl.m1_files = ['OS_M1_20130918hourly_CMSTV.nc']
cl.m1_parms = [ 'eastward_sea_water_velocity_HR', 'northward_sea_water_velocity_HR', 
                     'SEA_WATER_SALINITY_HR', 'SEA_WATER_TEMPERATURE_HR', 'SW_FLUX_HR', 'AIR_TEMPERATURE_HR', 
                     'EASTWARD_WIND_HR', 'NORTHWARD_WIND_HR', 'WIND_SPEED_HR'
                   ]
cl.m1_startDatetime = startDatetime
cl.m1_endDatetime = endDatetime

# SubSample data files from /mbari/BOG_Archive/ReportsForSTOQS/GOC12/ copied to local GOC12 dir
cl.subsample_csv_base = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'SIMZOct2013')
cl.subsample_csv_files = [
                            '2013_SIMZ_AUV_STOQS.csv',
                            '2013_SIMZ_Niskins_STOQS.csv',
                            '2013_SIMZ_TowNets_STOQS.csv',
                         ]

# Produce parent samples file with:
# cd loaders/MolecularEcology/SIMZOct2013
# ../../nettow.py --database stoqs_simz_oct2013 --subsampleFile 2013_SIMZ_TowNets_STOQS.csv --csvFile 2013_SIMZ_TowNet_ParentSamples.csv -v
cl.parent_nettow_file = '2013_SIMZ_TowNet_ParentSamples.csv'


# Execute the load
cl.process_command_line()
开发者ID:Brett-Rankin,项目名称:stoqs,代码行数:32,代码来源:loadSIMZ_oct2013.py

示例2:

# 需要导入模块: from CANON import CANONLoader [as 别名]
# 或者: from CANON.CANONLoader import subsample_csv_base [as 别名]
cl.wfuctd_files = [
                  'canon17sm01.nc',
                  ]

# PCTD
cl.wfpctd_base = cl.dodsBase + 'Other/routine/Platforms/Ships/WesternFlyer/pctd/'
cl.wfpctd_parms = [ 'TEMP', 'PSAL', 'xmiss', 'ecofl', 'oxygen' ]
cl.wfpctd_files = [
                  'canon17sc01.nc',
                  ]

###################################################################################################
# SubSample data files from /mbari/BOG_Archive/ReportsForSTOQS/
#   copied to local BOG_Data/CANON_OS2107 dir
###################################################################################################
cl.subsample_csv_base = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'BOG_Data/CANON_OS2017/bctd/')
cl.subsample_csv_files = [
##   'STOQS_00917_OXY_PS.csv',
##   'STOQS_00917_CARBON_GFF.csv',
##   'STOQS_00917_CHL_1U.csv',    'STOQS_00917_FLUOR.csv',
##   'STOQS_00917_CHL_5U.csv', 'STOQS_00917_NH4.csv', 'STOQS_00917_PHAEO_1U.csv',
##   'STOQS_00917_CHLA.csv', 'STOQS_00917_O2.csv', 'STOQS_00917_PHAEO_5U.csv',
##   'STOQS_00917_CHL_GFF.csv',
##   'STOQS_00917_PHAEO_GFF.csv',
                       ]

# Execute the load
cl.process_command_line()

if cl.args.test:
    cl.stride = 100
开发者ID:danellecline,项目名称:stoqs,代码行数:33,代码来源:loadCANON_may2018.py

示例3:

# 需要导入模块: from CANON import CANONLoader [as 别名]
# 或者: from CANON.CANONLoader import subsample_csv_base [as 别名]
#'canon13c01.nc', 'canon13c02.nc', 'canon13c03.nc', 'canon13c04.nc', 'canon13c05.nc', 'canon13c06.nc', 'canon13c07.nc',
#'canon13c08.nc', 'canon13c09.nc', 'canon13c10.nc', 'canon13c11.nc', 'canon13c12.nc', 'canon13c13_A.nc', 'canon13c13_B.nc', 'canon13c14.nc',
#'canon13c16.nc', 'canon13c17.nc', 'canon13c19_A.nc', 'canon13c20.nc', 'canon13c22.nc', 'canon13c23.nc', 'canon13c24.nc', 'canon13c25.nc',
#'canon13c26.nc', 'canon13c27.nc', 'canon13c28.nc', 'canon13c29.nc', 'canon13c30.nc', 'canon13c31.nc', 'canon13c32.nc', 'canon13c33.nc',
#'canon13c34.nc', 'canon13c35.nc', 'canon13c36.nc', 'canon13c37.nc', 'canon13c38.nc', 'canon13c39.nc', 'canon13c40.nc', 'canon13c41.nc',
#'canon13c42.nc', 'canon13c43.nc', 'canon13c44.nc', 'canon13c45.nc', 'canon13c46.nc', 'canon13c48.nc', 'canon13c49.nc', 'canon13c50.nc',
#'canon13c51.nc', 'canon13c52.nc', 'canon13c53.nc', 'canon13c54.nc', 'canon13c55.nc', 'canon13c56.nc', 'canon13c57.nc', 'canon13c58.nc',
#'canon13c59.nc', 'canon13c60.nc', 'canon13c61.nc', 'canon13c62.nc', 'canon13c63.nc', 'canon13c64.nc', 'canon13c65.nc', 'canon13c66.nc',
#'canon13c67.nc', 'canon13c68.nc', 'canon13c69.nc', 'canon13c70.nc', 'canon13c71.nc', 'canon13c72.nc', 'canon13c73.nc', 'canon13c74.nc',
#'canon13c75.nc', 'canon13c76.nc', 'canon13c77.nc', 'canon13c78.nc', 'canon13c79.nc', 'canon13c80.nc', 'canon13c81.nc', 'canon13c82.nc' 
]

# BCTD
# SubSample data files from /mbari/BOG_Archive/ReportsForSTOQS/GOC12/ copied to local BOG_Data dir
cl.bctdDir = 'CANON_september2013/Platforms/Ships/Western_Flyer/netcdf/bctd/'
cl.subsample_csv_base = cl.dodsBase + cl.bctdDir
cl.subsample_csv_base = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'BOG_Data')
cl.subsample_csv_files = [
                            #'STOQS_canon13_CHL_1U.csv', 'STOQS_canon13_CHL_5U.csv', 'STOQS_canon13_NH4.csv', 'STOQS_canon13_NO2.csv',
                    		#'STOQS_canon13_NO3.csv','STOQS_canon13_OXY_ML.csv', 'STOQS_canon13_PHAEO_1U.csv', 'STOQS_canon13_PHAEO_5U.csv',
                            #'STOQS_canon13_PHAEO_GFF.csv', 'STOQS_canon13_PO4.csv', 'STOQS_canon13_SIO4.csv', #'STOQS_canon13_CARBON_GFF.csv
							#'STOQS_canon13_CHL_GFF.csv',
                         ]

######################################################################
#  RACHEL CARSON: September 16-20? (259-262) Sep 30 - Oct 3
######################################################################
# UCTD
cl.rcuctd_base = cl.dodsBase + 'CANON_september2013/Platforms/Ships/Rachel_Carson/uctd/'
cl.rcuctd_parms = [ 'TEMP', 'PSAL', 'xmiss', 'wetstar' ]
cl.rcuctd_files = [ 
开发者ID:Brett-Rankin,项目名称:stoqs,代码行数:33,代码来源:loadsep2013.py

示例4:

# 需要导入模块: from CANON import CANONLoader [as 别名]
# 或者: from CANON.CANONLoader import subsample_csv_base [as 别名]
                    'fl700_uncorr', 'salinity', 'biolume', 'roll', 'pitch', 'yaw',
                    'sepCountList', 'mepCountList']

# - TimeSeries and TimeSeriesProfile
cl.m1_base = 'http://dods.mbari.org/opendap/data/ssdsdata/deployments/m1/'
cl.m1_files = [ '201010/OS_M1_20101027hourly_CMSTV.nc',
                '201010/m1_hs2_20101027.nc',
              ]
cl.m1_parms = [ 'northward_sea_water_velocity_HR', 'SEA_WATER_SALINITY_HR', 
                'AIR_TEMPERATURE_HR', 'bb470', 'fl676'
              ]
cl.m1_startDatetime = datetime.datetime(2010, 10, 27)
cl.m1_endDatetime = datetime.datetime(2010, 10, 29)

# SubSample data files from /mbari/BOG_Archive/ReportsForSTOQS/GOC12/ copied to local GOC12 dir
cl.subsample_csv_base = os.path.join(os.path.dirname(os.path.realpath(__file__)), '../stoqs/tests')
cl.subsample_csv_files = ['Dorado_2010_300_Bogus_Samples.csv']


# Execute the load
cl.process_command_line()

if cl.args.test:
    cl.loadDorado(stride=100)
    cl.loadM1(stride=10)
    cl.loadSubSamples()

elif cl.args.optimal_stride:
    cl.loadDorado(stride=2)
    cl.loadM1(stride=1)
    cl.loadSubSamples()
开发者ID:StevenLudwig,项目名称:stoqs,代码行数:33,代码来源:loadTestData.py

示例5:

# 需要导入模块: from CANON import CANONLoader [as 别名]
# 或者: from CANON.CANONLoader import subsample_csv_base [as 别名]
# Western Flyer Profile CTD
cl.pctdDir = 'GOC_february2012/wf/pctd/'
cl.wfpctd_base = cl.dodsBase + cl.pctdDir
cl.wfpctd_files = [ 
                    'GOC12c01.nc', 'GOC12c02.nc', 'GOC12c03.nc', 'GOC12c04.nc', 'GOC12c05.nc', 'GOC12c06.nc', 
                    'GOC12c07.nc', 'GOC12c08.nc', 'GOC12c09.nc', 'GOC12c10.nc', 'GOC12c11.nc', 'GOC12c12.nc', 
                    'GOC12c13.nc', 'GOC12c14.nc', 'GOC12c15.nc', 'GOC12c16.nc', 'GOC12c17.nc', 'GOC12c18.nc', 
                    'GOC12c19.nc', 'GOC12c20.nc', 'GOC12c21.nc', 'GOC12c22.nc', 'GOC12c23.nc', 'GOC12c24.nc', 
                    'GOC12c25.nc', 'GOC12c26.nc', 'GOC12c27.nc', 'GOC12c28.nc', 'GOC12c29.nc', 'GOC12c30.nc', 
                    'GOC12c31.nc', 'GOC12c32.nc', 'GOC12c33.nc', 'GOC12c34.nc', 'GOC12c35.nc', 'GOC12c36.nc', 
                    'GOC12c37.nc', 'GOC12c38.nc', 'GOC12c39.nc', 'GOC12c40.nc', 'GOC12c41.nc'
                  ]
cl.wfpctd_parms = [ 'TEMP', 'PSAL', 'xmiss', 'ecofl' ]

# SubSample data files from /mbari/BOG_Archive/ReportsForSTOQS/GOC12/ copied to local GOC12 dir
cl.subsample_csv_base = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'BOG_Data')
cl.subsample_csv_files = [
                            'STOQS_GOC12_CHL_1U.csv',
                            'STOQS_GOC12_CHL_5U.csv',
                            'STOQS_GOC12_NH4.csv',
                            'STOQS_GOC12_NO2.csv',
                            'STOQS_GOC12_NO3.csv',
                            'STOQS_GOC12_O2.csv',
                            'STOQS_GOC12_PHAEO_1U.csv',
                            'STOQS_GOC12_PHAEO_5U.csv',
                            'STOQS_GOC12_PHAEO_GFF.csv',
                            'STOQS_GOC12_PO4.csv',
                            'STOQS_GOC12_SIO4.csv',
                         ]

开发者ID:Brett-Rankin,项目名称:stoqs,代码行数:31,代码来源:loadGOC_february2012.py

示例6:

# 需要导入模块: from CANON import CANONLoader [as 别名]
# 或者: from CANON.CANONLoader import subsample_csv_base [as 别名]
cl.m1_parms = [
    "eastward_sea_water_velocity_HR",
    "northward_sea_water_velocity_HR",
    "SEA_WATER_SALINITY_HR",
    "SEA_WATER_TEMPERATURE_HR",
    "SW_FLUX_HR",
    "AIR_TEMPERATURE_HR",
    "EASTWARD_WIND_HR",
    "NORTHWARD_WIND_HR",
    "WIND_SPEED_HR",
]
cl.m1_startDatetime = datetime.datetime(2012, 9, 15)  # Good data starts on the 15th
cl.m1_endDatetime = datetime.datetime(2012, 9, 21)

# SubSample data files from /mbari/BOG_Archive/ReportsForSTOQS/C0912/ copied to local BOG_Data dir
cl.subsample_csv_base = os.path.join(os.path.dirname(os.path.realpath(__file__)), "BOG_Data/C0912/")
cl.subsample_csv_files = [
    "STOQS_C0912_ALTIMETER.csv",
    "STOQS_C0912_CARBON_GFF.csv",
    "STOQS_C0912_CHL_1U.csv",
    "STOQS_C0912_CHL_5U.csv",
    "STOQS_C0912_CHLA.csv",
    "STOQS_C0912_CHL_GFF.csv",
    "STOQS_C0912_COND2.csv",
    "STOQS_C0912_CONDUCT.csv",
    "STOQS_C0912_FLUOR.csv",
    "STOQS_C0912_NH4.csv",
    "STOQS_C0912_NO2.csv",
    "STOQS_C0912_NO3.csv",
    "STOQS_C0912_OXY_ML.csv",
    "STOQS_C0912_OXY_PS.csv",
开发者ID:livyliv83,项目名称:stoqs,代码行数:33,代码来源:loadCANON_september2012.py

示例7:

# 需要导入模块: from CANON import CANONLoader [as 别名]
# 或者: from CANON.CANONLoader import subsample_csv_base [as 别名]
##cl.bruce_moor_startDatetime = startdate
##cl.bruce_moor_endDatetime = enddate

##cl.mack_moor_base = cl.dodsBase + 'CANON_september2013/Platforms/Moorings/ESP_Mack/NetCDF/'
##cl.mack_moor_files = ['Mack_ctd.nc']
##cl.mack_moor_parms = [ 'TEMP','PSAL','chl','xmiss','oxygen','beamc',
##                   ]
##cl.mack_moor_startDatetime = startdate
##cl.mack_moor_endDatetime = enddate

###################################################################################################
# SubSample data files from /mbari/BOG_Archive/ReportsForSTOQS/ 
#                                   13115 13215 14115 14815 15515 15615
#   copied to local BOG_Data/CANON_May2105 dir
###################################################################################################
cl.subsample_csv_base = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'BOG_Data/CANON_May2015/')
cl.subsample_csv_files = [
## these are loaded OK:

   'STOQS_13115_CARBON_GFF.csv', 'STOQS_13115_CHL_1U.csv', 'STOQS_13115_CHL_5U.csv', 'STOQS_13115_CHL_GFF.csv', 
   'STOQS_13115_CHLA.csv', 'STOQS_13115_NO2.csv', 'STOQS_13115_NO3.csv', 'STOQS_13115_PHAEO_1U.csv',
   'STOQS_13115_PHAEO_5U.csv', 'STOQS_13115_PHAEO_GFF.csv', 'STOQS_13115_PO4.csv', 'STOQS_13115_SIO4.csv',

   'STOQS_13215_CARBON_GFF.csv',

## error  no data
## 'STOQS_13215_CHL_1U.csv', ## error  no data
## 'STOQS_13215_CHL_5U.csv', ## error  no data

   'STOQS_13215_CHL_GFF.csv','STOQS_13215_CHLA.csv', 'STOQS_13215_NO2.csv', 'STOQS_13215_NO3.csv',
开发者ID:StevenLudwig,项目名称:stoqs,代码行数:32,代码来源:loadCANON_may2015.py

示例8:

# 需要导入模块: from CANON import CANONLoader [as 别名]
# 或者: from CANON.CANONLoader import subsample_csv_base [as 别名]
# Mooring M1ts
cl.m1ts_base = 'http://elvis.shore.mbari.org/thredds/dodsC/agg/'
cl.m1ts_files = ['OS_MBARI-M1_R_TS']
cl.m1ts_parms = [ 'PSAL', 'TEMP' ]
cl.m1ts_startDatetime = datetime.datetime(2011, 1, 1)
cl.m1ts_endDatetime = datetime.datetime(2011, 12, 31)

# Mooring M1met
cl.m1met_base = 'http://elvis.shore.mbari.org/thredds/dodsC/agg/'
cl.m1met_files = ['OS_MBARI-M1_R_M']
cl.m1met_parms = [ 'WSPD', 'WDIR', 'ATMP', 'SW', 'RELH' ]
cl.m1met_startDatetime = datetime.datetime(2011, 1, 1)
cl.m1met_endDatetime = datetime.datetime(2011, 12, 31)

# SubSample data files received from Julio in email and copied to local directory
cl.subsample_csv_base = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'Dorado2011')
cl.subsample_csv_files = [
                            '2011_AUVdorado_Samples_Database.csv'
                         ]


# Execute the load
cl.process_command_line()

if cl.args.test:
    cl.loadDorado(stride=100)
    cl.loadM1ts(stride=10)
    cl.loadM1met(stride=10)
    cl.loadSubSamples()

elif cl.args.optimal_stride:
开发者ID:StevenLudwig,项目名称:stoqs,代码行数:33,代码来源:load_dorado2011.py

示例9:

# 需要导入模块: from CANON import CANONLoader [as 别名]
# 或者: from CANON.CANONLoader import subsample_csv_base [as 别名]
cl.m1_parms = [
    "eastward_sea_water_velocity_HR",
    "northward_sea_water_velocity_HR",
    "SEA_WATER_SALINITY_HR",
    "SEA_WATER_TEMPERATURE_HR",
    "SW_FLUX_HR",
    "AIR_TEMPERATURE_HR",
    "EASTWARD_WIND_HR",
    "NORTHWARD_WIND_HR",
    "WIND_SPEED_HR",
]
cl.m1_startDatetime = startDatetime
cl.m1_endDatetime = endDatetime

# SubSample data files from /mbari/BOG_Archive/ReportsForSTOQS/GOC12/ copied to local GOC12 dir
cl.subsample_csv_base = os.path.join(os.path.dirname(os.path.realpath(__file__)), "SIMZAug2013")
cl.subsample_csv_files = ["2013_Aug_SIMZ_Niskin_microscopy_STOQS.csv"]


# Execute the load
cl.process_command_line()

if cl.args.test:
    cl.loadL_662(stride=10)
    cl.loadDorado(stride=100)
    cl.loadRCuctd(stride=10)
    cl.loadRCpctd(stride=1)
    cl.loadM1(stride=10)
    ##cl.loadSubSamples()

elif cl.args.optimal_stride:
开发者ID:devonrusconi,项目名称:stoqs,代码行数:33,代码来源:loadSIMZ_spring2014.py


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