1 """
2 This file contains classes to hold the logged data not directly related to the stream site:
3 - met station data
4
5 Nothing fancy is done here, as all this is done in
6
7 """
8 import numpy as np
9 import datetime
10 import pylab as pl
11 import matplotlib.mlab as mlab
12 from scipy import polyval, polyfit
13
14 from fieldpy.core.experiment_classes import *
15 import fieldpy.core.helper_fns as helper_fns
16 from fieldpy.stream_gauging.calibration import SingleCalibration
17
18
19
21 """
22 Class to hold and process Met station data.
23
24 self.data will have the following
25 """
26 - def __init__(self, filenames,given_headers=[]):
27
28 """
29 Class to hold and process Met station data.
30
31 @type filenames: list of strings
32 @param filenames: a list of TOA5 Campbell Cr1000 files in
33 chronological order with the same data format.
34
35
36 @type given_headers: list of stings
37 @param given_headers: A list of header strings to be used instead
38 of the ones given in the file header.
39
40 @note:
41 - Error checking is just marginal.
42 - Masking record arrays seems a bit tricky here is what I found:
43 - U{http://thread.gmane.org/gmane.comp.python.numeric.general/34100/focus=34125}
44 - but third creation method here seems to work:
45 U{http://docs.scipy.org/doc/numpy/reference/maskedarray.generic.html#using-numpy-ma}
46
47 """
48
49 super(MS_data, self).__init__(filenames, given_headers)
50 self.check()
51
54