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

Changeset 211

Show
Ignore:
Timestamp:
10/01/08 12:50:11
Author:
haines
Message:

corrected lon to negative for (longitude W) in config files; corrected misspelled field in all proc_*.py

Files:

Legend:

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

    r180 r211  
    33            'location' : 'Jennettes Pier, Nags Head, NC', 
    44            'lat' : 35.9101,         # degrees true (-) south, (+) north 
    5             'lon' : 75.5958,         # degrees true (-) west, (+) east 
     5            'lon' : -75.5958,         # degrees true (-) west, (+) east 
    66            'mvar' : -10.83333,      # degrees (-) west, (+) east         
    77            'institution' : 'nccoos', 
  • raw2proc/trunk/raw2proc/jpier_config_20080411.py

    r180 r211  
    33            'location' : 'Jennettes Pier, Nags Head, NC', 
    44            'lat' : 35.9101,         # degrees true (-) south, (+) north 
    5             'lon' : 75.5958,         # degrees true (-) west, (+) east 
     5            'lon' : -75.5958,         # degrees true (-) west, (+) east 
    66            'mvar' : -10.83333,      # degrees (-) west, (+) east         
    77            'institution' : 'nccoos', 
  • raw2proc/trunk/raw2proc/jpier_config_20080722.py

    r208 r211  
    33            'location' : 'Jennettes Pier, Nags Head, NC', 
    44            'lat' : 35.9101,         # degrees true (-) south, (+) north 
    5             'lon' : 75.5958,         # degrees true (-) west, (+) east 
     5            'lon' : -75.5958,         # degrees true (-) west, (+) east 
    66            'mvar' : -10.83333,      # degrees (-) west, (+) east         
    77            'institution' : 'nccoos', 
  • raw2proc/trunk/raw2proc/morgan_config_20080701.py

    r210 r211  
    33            'location' : 'Morgan Bay, New River, NC', 
    44            'lat' : 34.7037,         # degrees true (-) south, (+) north 
    5             'lon' : 77.4022,         # degrees true (-) west, (+) east 
     5            'lon' : -77.4022,         # degrees true (-) west, (+) east 
    66            'mvar' : -9.42,          # degrees (-) west, (+) east 
    77            'water_depth': 4.0,      # nominal depth in meters (should be MSL) 
  • raw2proc/trunk/raw2proc/proc_avp_ascii_met.py

    r210 r211  
    11#!/usr/bin/env python 
    2 # Last modified:  Time-stamp: <2008-09-25 12:57:53 haines> 
     2# Last modified:  Time-stamp: <2008-10-01 12:46:26 haines> 
    33""" 
    44how to parse data, and assert what data and info goes into 
     
    130130        global_atts = {  
    131131                'title' : title_str, 
    132                 'institution' : 'Unversity of North Carolina at Chapel Hill (UNC-CH)', 
     132                'institution' : 'University of North Carolina at Chapel Hill (UNC-CH)', 
    133133                'institution_url' : 'http://nccoos.org', 
    134134                'institution_dods_url' : 'http://nccoos.org', 
     
    200200                          'standard_name': 'wind_speed', 
    201201                          'units': 'm s-1', 
    202                           'can_be_normalized': 'yes', 
     202                          'can_be_normalized': 'no', 
    203203                          'z' : sensor_info['anemometer_height'], 
    204204                          }, 
     
    223223                       'reference': 'relative to True East (?)', 
    224224                       'units': 'm s-1', 
    225                        'can_be_normalized': 'yes', 
     225                       'can_be_normalized': 'no', 
    226226                       'z' : sensor_info['anemometer_height'], 
    227227                       }, 
     
    231231                       'reference': 'relative to True North (?)', 
    232232                       'units': 'm s-1', 
    233                        'can_be_normalized': 'yes', 
     233                       'can_be_normalized': 'no', 
    234234                       'z' : sensor_info['anemometer_height'], 
    235235                       }, 
  • raw2proc/trunk/raw2proc/proc_avp_ysi_6600_v2.py

    r209 r211  
    11#!/usr/bin/env python 
    2 # Last modified:  Time-stamp: <2008-09-24 14:19:32 haines> 
     2# Last modified:  Time-stamp: <2008-10-01 12:46:41 haines> 
    33""" 
    44how to parse data, and assert what data and info goes into 
     
    217217    global_atts = {  
    218218        'title' : title_str, 
    219         'institution' : 'Unversity of North Carolina at Chapel Hill (UNC-CH)', 
     219        'institution' : 'University of North Carolina at Chapel Hill (UNC-CH)', 
    220220        'institution_url' : 'http://nccoos.unc.edu', 
    221221        'institution_dods_url' : 'http://nccoos.unc.edu', 
  • raw2proc/trunk/raw2proc/proc_jpier_ascii_met.py

    r210 r211  
    11#!/usr/bin/env python 
    2 # Last modified:  Time-stamp: <2008-09-25 12:58:11 haines> 
     2# Last modified:  Time-stamp: <2008-10-01 12:45:54 haines> 
    33""" 
    44how to parse data, and assert what data and info goes into 
     
    128128        global_atts = {  
    129129                'title' : title_str, 
    130                 'institution' : 'Unversity of North Carolina at Chapel Hill (UNC-CH)', 
     130                'institution' : 'University of North Carolina at Chapel Hill (UNC-CH)', 
    131131                'institution_url' : 'http://nccoos.org', 
    132132                'institution_dods_url' : 'http://nccoos.org', 
     
    219219                                                'standard_name': 'wind_speed', 
    220220                                                'units': 'm s-1', 
    221                                                 'can_be_normalized': '?', 
     221                                                'can_be_normalized': 'no', 
    222222                                                }, 
    223223                'wdir' :        {'short_name': 'wdir', 
  • raw2proc/trunk/raw2proc/proc_nortek_wds_dw.py

    r209 r211  
    11#!/usr/bin/env python 
    2 # Last modified:  Time-stamp: <2008-09-24 14:19:00 haines> 
     2# Last modified:  Time-stamp: <2008-10-01 12:47:05 haines> 
    33""" 
    44how to parse data, and assert what data and info goes into 
     
    402402    global_atts = {  
    403403        'title' : title_str, 
    404         'institution' : 'Unversity of North Carolina at Chapel Hill (UNC-CH)', 
     404        'institution' : 'University of North Carolina at Chapel Hill (UNC-CH)', 
    405405        'institution_url' : 'http://nccoos.unc.edu', 
    406406        'institution_dods_url' : 'http://nccoos.unc.edu', 
  • raw2proc/trunk/raw2proc/proc_nortek_wpa_adcp.py

    r209 r211  
    11#!/usr/bin/env python 
    2 # Last modified:  Time-stamp: <2008-09-24 14:18:52 haines> 
     2# Last modified:  Time-stamp: <2008-10-01 12:47:16 haines> 
    33""" 
    44how to parse data, and assert what data and info goes into 
     
    226226    global_atts = {  
    227227        'title' : title_str, 
    228         'institution' : 'Unversity of North Carolina at Chapel Hill (UNC-CH)', 
     228        'institution' : 'University of North Carolina at Chapel Hill (UNC-CH)', 
    229229        'institution_url' : 'http://nccoos.unc.edu', 
    230230        'institution_dods_url' : 'http://nccoos.unc.edu', 
  • raw2proc/trunk/raw2proc/proc_rdi_dspec_dw.py

    r209 r211  
    11#!/usr/bin/env python 
    2 # Last modified:  Time-stamp: <2008-09-24 14:18:40 haines> 
     2# Last modified:  Time-stamp: <2008-10-01 12:47:26 haines> 
    33""" 
    44how to parse data, and assert what data and info goes into 
     
    324324    global_atts = {  
    325325        'title' : title_str, 
    326         'institution' : 'Unversity of North Carolina at Chapel Hill (UNC-CH)', 
     326        'institution' : 'University of North Carolina at Chapel Hill (UNC-CH)', 
    327327        'institution_url' : 'http://nccoos.unc.edu', 
    328328        'institution_dods_url' : 'http://nccoos.unc.edu', 
  • raw2proc/trunk/raw2proc/proc_rdi_logdata_adcp.py

    r209 r211  
    11#!/usr/bin/env python 
    2 # Last modified:  Time-stamp: <2008-09-24 14:18:32 haines> 
     2# Last modified:  Time-stamp: <2008-10-01 12:47:42 haines> 
    33""" 
    44how to parse data, and assert what data and info goes into 
     
    147147    global_atts = {  
    148148        'title' : title_str, 
    149         'institution' : 'Unversity of North Carolina at Chapel Hill (UNC-CH)', 
     149        'institution' : 'University of North Carolina at Chapel Hill (UNC-CH)', 
    150150        'institution_url' : 'http://nccoos.unc.edu', 
    151151        'institution_dods_url' : 'http://nccoos.unc.edu', 
  • raw2proc/trunk/raw2proc/proc_rdi_logdata_dw.py

    r209 r211  
    11#!/usr/bin/env python 
    2 # Last modified:  Time-stamp: <2008-09-24 14:18:20 haines> 
     2# Last modified:  Time-stamp: <2008-10-01 12:47:50 haines> 
    33""" 
    44how to parse data, and assert what data and info goes into 
     
    110110    global_atts = {  
    111111        'title' : title_str, 
    112         'institution' : 'Unversity of North Carolina at Chapel Hill (UNC-CH)', 
     112        'institution' : 'University of North Carolina at Chapel Hill (UNC-CH)', 
    113113        'institution_url' : 'http://nccoos.unc.edu', 
    114114        'institution_dods_url' : 'http://nccoos.unc.edu', 
  • raw2proc/trunk/raw2proc/raw2proc.py

    r210 r211  
    11#!/usr/bin/env python 
    2 # Last modified:  Time-stamp: <2008-09-25 14:07:27 haines> 
     2# Last modified:  Time-stamp: <2008-09-30 17:40:58 haines> 
    33"""Process raw data to monthly netCDF data files 
    44 
     
    453453    global_atts, var_atts, dim_inits, var_inits, var_data = d 
    454454    list_of_record_vars = nc_find_record_vars(ifn) 
     455 
    455456    # find unlimited dimension (a dimension length of zero) and set to length of dt 
    456     # SECOORA scout does not understand of zero (0) 
     457    # SECOORA scout does not understand of zero (0) also replace dim names with following names 
     458    # e.g. ntime for time 
     459    dees = [['ntime','time'], ['nlat','lat'], ['nlon', 'lon'], ['nz', 'z'],['ndir','dir'],['nfreq','freq']] 
    457460    dim_inits = list(dim_inits) 
     461    for j in range(len(dees)): 
     462        for i in range(len(dim_inits)): 
     463            if dim_inits[i][0]==dees[j][0]:  # 'ntime' 
     464                dim_inits[i] = (dees[j][1], dim_inits[i][1]) 
    458465    for i in range(len(dim_inits)): 
    459466        if dim_inits[i][1]==0: 
    460             dim_inits[i] = (dim_inits[i][0], len(dt))         
     467            dim_inits[i] = ('time', len(dt))         
    461468    dim_inits = tuple(dim_inits) 
     469    # print dim_inits 
     470 
     471    # replace name of dependent dimension names with speificied names for CDL v2.0 in variables 
     472    # e.g. ntime for time 
     473    var_inits = list(var_inits) 
     474    for j in range(len(dees)): 
     475        for i in range(len(var_inits)): 
     476            v = list(var_inits[i]) 
     477            dl = list(v[2]) 
     478            for k in range(len(dl)): 
     479                if dl[k]==dees[j][0]: 
     480                    dl[k]=dees[j][1] # 'time' 
     481            var_inits[i]=(v[0], v[1], tuple(dl)) 
     482    var_inits = tuple(var_inits) 
     483    # print var_inits 
     484                                 
    462485    # subset data 
    463486    varNames = [vn for vn, vt, vd in var_inits] 
     
    474497    ofn = os.path.join(si['latest_dir'], si['latest_filename']) 
    475498    d = (global_atts, var_atts, dim_inits, var_inits, var_data) 
    476  
    477     print dim_inits 
    478499     
    479500    nc_create(ofn, d) 
  • raw2proc/trunk/raw2proc/stones_config_20080701.py

    r210 r211  
    33            'location' : 'Stones Bay, New River, NC', 
    44            'lat' : 34.5962,         # degrees true (-) south, (+) north 
    5             'lon' : 77.4120,         # degrees true (-) west, (+) east 
     5            'lon' : -77.4120,         # degrees true (-) west, (+) east 
    66            'mvar' : -9.38,          # degrees (-) west, (+) east 
    77            'water_depth': 4.0,      # nominal depth in meters (should be MSL)