Changeset 511
- Timestamp:
- 12/12/13 15:46:50
- Files:
-
- raw2proc/trunk/raw2proc/b1_config_20111112.py (modified) (1 diff)
- raw2proc/trunk/raw2proc/b2_config_20111112.py (modified) (1 diff)
- raw2proc/trunk/raw2proc/proc_cr1000_met.py (modified) (4 diffs)
- raw2proc/trunk/raw2proc/proc_scintec_maindata_sfas.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
raw2proc/trunk/raw2proc/b1_config_20111112.py
r510 r511 36 36 'ndbc_dir' : '/seacoos/data/nccoos/latest_ndbc', 37 37 'ndbc_missing' : -9999.0, 38 # report data to NDBC closest to top of each hour +/- 6 min 39 'ndbc_sample_interval':(1,'hour'), 40 'ndbc_sample_offset':(0,'minute'), 41 'ndbc_time_tolerance':(6,'minute'), 42 # report data closest to 0:10 and 0:40 each hour +/- 3 min 43 # 'ndbc_sample_interval':(30,'minute'), # every 30 min 44 # 'ndbc_sample_offset':(10,'minute'), # offset by +10 min 45 # 'ndbc_time_tolerance':(3,'minute'), 38 46 } 39 47 raw2proc/trunk/raw2proc/b2_config_20111112.py
r510 r511 36 36 'ndbc_dir' : '/seacoos/data/nccoos/latest_ndbc', 37 37 'ndbc_missing' : -9999.0, 38 # report data to NDBC closest to top of each hour +/- 6 min 39 'ndbc_sample_interval':(1,'hour'), 40 'ndbc_sample_offset':(0,'minute'), 41 'ndbc_time_tolerance':(6,'minute'), 42 # report data closest to 0:10 and 0:40 each hour +/- 3 min 43 # 'ndbc_sample_interval':(30,'minute'), # every 30 min 44 # 'ndbc_sample_offset':(10,'minute'), # offset by +10 min 45 # 'ndbc_time_tolerance':(3,'minute'), 38 46 } 39 47 raw2proc/trunk/raw2proc/proc_cr1000_met.py
r494 r511 1 1 #!/usr/bin/env python 2 # Last modified: Time-stamp: <201 2-06-28 15:45:31haines>2 # Last modified: Time-stamp: <2013-11-26 09:02:09 haines> 3 3 """ 4 4 how to parse data, and assert what data and info goes into … … 113 113 # 114 114 # data['samplenum'][i] = csi[0] # sample number assigned by datalogger in table 115 data['air_press'][i] = csi[1] # Heise Barometer (psi) to mbar 115 data['air_press'][i] = csi[1] # Campbell Sci (Viasala) CS106 barometer (mbar) 116 # Before Jan 2012, Heise Barometer (psi) to mbar 116 117 data['rh'][i] = csi[2] # relative humidity avg (60 samples for 1 min) 117 118 data['rh_std'][i] = csi[3] # relative humidity std … … 131 132 # for line 132 133 133 data['air_press'] = udconvert(data['air_press'], 'psi', 'mbar')[0] 134 # Specific to buoys using CR1000 in Fall of 2011 135 # prior to Jan 01, 2012, pressure sensor was a Heise with units psi 136 # afterwards, Campbell Sci CS106 in units mbar, 137 # also handle b1/b2 PSP data for each buoy 138 if data['dt'][0] < datetime(2012, 1, 1): 139 data['air_press'] = udconvert(data['air_press'], 'psi', 'mbar')[0] 140 # specific to buoy B1 and B2 141 if platform_info['id'] == 'b1': 142 data['psp'] = -1*data['psp']/1000 143 data['psp_std'] = -1*data['psp_std']/1000 144 if platform_info['id'] == 'b2': 145 data['psp'] = numpy.nan*data['psp'] 146 data['psp_std'] = numpy.nan*data['psp_std'] 147 134 148 # some QC 135 149 # good = -40<at & at<60 # does not work … … 143 157 data['rain'][bad] = numpy.nan 144 158 145 # specific to buoy B1 and B2146 if platform_info['id'] == 'b1':147 data['psp'] = -1*data['psp']/1000148 data['psp_std'] = -1*data['psp_std']/1000149 if platform_info['id'] == 'b2':150 data['psp'] = numpy.nan*data['psp']151 data['psp_std'] = numpy.nan*data['psp_std']152 153 159 # check that no data[dt] is set to Nan or anything but datetime 154 160 # keep only data that has a resolved datetime raw2proc/trunk/raw2proc/proc_scintec_maindata_sfas.py
r510 r511 154 154 'units': 'degrees_east', 155 155 'valid_range':(-180.,180.), 156 'axis': ' Y',156 'axis': 'X', 157 157 }, 158 158 'z' : {'short_name': 'z',