Package fieldpy :: Package core :: Module experiment_classes :: Class CampbellCr1000
[hide private]
[frames] | no frames]

Class CampbellCr1000

source code


Holds Cr1000 data.

Instance Methods [hide private]
 
__init__(self, filenames, given_headers=[])
Class to hold logged data from a Cr1000 datalogger.
source code
 
make_time(self, datas)
Pieces together the time row and returns an error if wrong.
source code
 
make_data(self, datas)
Fills the rest of self.data
source code

Inherited from LoggedData: check

Inherited from extra_classes.TimeSeries: check_constant_sampling_interval, check_monotonically_inc_time, cut_time_series, filter_and_resample, get_ind, get_ind_as_slice, get_index_after, get_index_before, get_index_nearest, integrate, plot_date, plot_ts, time_filter_gauss

Inherited from extra_classes.Data: filter_by_freq, filter_low_pass, mask_if_true, mask_jumps, mask_jumps_one_dir, mask_value, pickle

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]

Inherited from extra_classes.Data: data, md

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, filenames, given_headers=[])
(Constructor)

source code 

Class to hold logged data from a Cr1000 datalogger. Can take several files of the same table.

Parameters:
  • filenames (list of strings) - a list of TOA5 Campbell Cr1000 files in chronological order with the same data format.
  • given_headers (list of stings) - A list of header stings to be used instead of the ones given in the file header.
Overrides: object.__init__

Note: Error checking is just marginal.

>>> from fieldpy.core.experiment_classes import *
>>> dir_ = 'test_files/'
>>> fielns = ['TOA5_n1.dat','TOA5_n2.dat','TOA5_n3.dat']
>>> c1000 = CampbellCr1000([dir_ + fl for fl in fielns], ['time', 'stage'])

make_time(self, datas)

source code 

Pieces together the time row and returns an error if wrong.

Parameters:
  • datas (a dict of list) - as generated in __init__