# Path: paegan/roms/roms.py
# def shrink(a, b):
# def _uv_to_rho(u_data, v_data, angle, rho_x, rho_y):
# def uv_to_rho(file):
# def rotate_complex_by_angle(points,angles):
# def average_adjacents(a, by_column=False):
# def regrid_roms(newfile, filename, lon_new, lat_new, t=None, z=None):
#     def __init__(self, data, by_column=False):
#     def run(self):
#     U = np.empty([rho_y,rho_x], dtype=complex )
#     U[:] = np.nan
# class AverageAdjacents(threading.Thread):


import unittest, os, math, netCDF4
import numpy as np
from paegan.roms import roms as rm

data_path = "/data/lm/tests"

class RomsTest(unittest.TestCase):

    def setUp(self):
        pass

    def  test_1D_average(self):
        # array([ 0,  2,  4,  6,  8, 10, 12])
        a = np.arange(0,13,2)

# Path: paegan/roms/roms.py
# def shrink(a, b):
# def _uv_to_rho(u_data, v_data, angle, rho_x, rho_y):
# def uv_to_rho(file):
# def rotate_complex_by_angle(points,angles):
# def average_adjacents(a, by_column=False):
# def regrid_roms(newfile, filename, lon_new, lat_new, t=None, z=None):
#     def __init__(self, data, by_column=False):
#     def run(self):
#     U = np.empty([rho_y,rho_x], dtype=complex )
#     U[:] = np.nan
# class AverageAdjacents(threading.Thread):


# Path: tests/test_roms.py
import unittest, os, math, netCDF4
import numpy as np
from paegan.roms import roms as rm


data_path = "/data/lm/tests"

class RomsTest(unittest.TestCase):

    def setUp(self):
        pass

    def  test_1D_average(self):
        # array([ 0,  2,  4,  6,  8, 10, 12])
        a = np.arange(0,13,2)

        a_avg = rm.average_adjacents(a)