NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

Changeset 511

Show
Ignore:
Timestamp:
12/12/13 15:46:50
Author:
cbc
Message:

Change to axis metadata for Scintec sodar.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • raw2proc/trunk/raw2proc/b1_config_20111112.py

    r510 r511  
    3636            'ndbc_dir' : '/seacoos/data/nccoos/latest_ndbc', 
    3737            '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'), 
    3846            } 
    3947 
  • raw2proc/trunk/raw2proc/b2_config_20111112.py

    r510 r511  
    3636            'ndbc_dir' : '/seacoos/data/nccoos/latest_ndbc', 
    3737            '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'), 
    3846            } 
    3947 
  • raw2proc/trunk/raw2proc/proc_cr1000_met.py

    r494 r511  
    11#!/usr/bin/env python 
    2 # Last modified:  Time-stamp: <2012-06-28 15:45:31 haines> 
     2# Last modified:  Time-stamp: <2013-11-26 09:02:09 haines> 
    33""" 
    44how to parse data, and assert what data and info goes into 
     
    113113            #  
    114114            # 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 
    116117            data['rh'][i] = csi[2] # relative humidity avg (60 samples for 1 min) 
    117118            data['rh_std'][i] = csi[3] # relative humidity std 
     
    131132    # for line 
    132133 
    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     
    134148    # some QC 
    135149    # good = -40<at & at<60 # does not work 
     
    143157    data['rain'][bad] = numpy.nan  
    144158 
    145     # specific to buoy B1 and B2 
    146     if platform_info['id'] == 'b1': 
    147         data['psp'] = -1*data['psp']/1000 
    148         data['psp_std'] = -1*data['psp_std']/1000 
    149     if platform_info['id'] == 'b2': 
    150         data['psp'] = numpy.nan*data['psp'] 
    151         data['psp_std'] = numpy.nan*data['psp_std'] 
    152      
    153159    # check that no data[dt] is set to Nan or anything but datetime 
    154160    # keep only data that has a resolved datetime 
  • raw2proc/trunk/raw2proc/proc_scintec_maindata_sfas.py

    r510 r511  
    154154                 'units': 'degrees_east', 
    155155                 'valid_range':(-180.,180.), 
    156                  'axis': 'Y', 
     156                 'axis': 'X', 
    157157                }, 
    158158        'z' : {'short_name': 'z',