Exemplo n.º 1
0
def test_period(U):
    """
    test the wave period
    """
    w = Waves(test_wind_5, default_water)

    print "testing for U:", U

    f = w.comp_period(U)

    print f
Exemplo n.º 2
0
def test_period(U):
    """
    test the wave period
    """
    w = Waves(test_wind_5, default_water)

    print "testing for U:", U

    f = w.comp_period(U)

    print f
Exemplo n.º 3
0
def test_period_fetch(U):
    """
    Test the wave period
    """
    water = copy(default_water)
    water.fetch = 1e4  # 10km
    w = Waves(test_wind_5, water)  # 10km fetch

    print "testing for U:", U

    T = w.comp_period(U)

    print T
Exemplo n.º 4
0
def test_period_fetch(U):
    """
    Test the wave period
    """
    water = copy(default_water)
    water.fetch = 1e4  # 10km
    w = Waves(test_wind_5, water)  # 10km fetch

    print "testing for U:", U

    T = w.comp_period(U)

    print T