|
|
|
@ -235,6 +235,7 @@ def test_rfcfilter():
|
|
|
|
|
'''
|
|
|
|
|
def test_findtp():
|
|
|
|
|
'''
|
|
|
|
|
>>> import numpy as np
|
|
|
|
|
>>> x = sea()
|
|
|
|
|
>>> x1 = x[0:200,:]
|
|
|
|
|
>>> itp = findtp(x1[:,1],0,'Mw')
|
|
|
|
@ -244,8 +245,8 @@ def test_findtp():
|
|
|
|
|
64, 70, 78, 82, 84, 89, 94, 101, 108, 119, 131, 141, 148,
|
|
|
|
|
149, 150, 159, 173, 184, 190, 199])
|
|
|
|
|
>>> itph
|
|
|
|
|
array([ 11, 64, 28, 31, 47, 51, 39, 56, 70, 94, 78, 89, 101,
|
|
|
|
|
108, 119, 148, 131, 141, 0, 159, 173, 184, 190])
|
|
|
|
|
array([ 11, 28, 31, 39, 47, 51, 56, 64, 70, 78, 89, 94, 101,
|
|
|
|
|
108, 119, 131, 141, 148, 159, 173, 184, 190, 199])
|
|
|
|
|
'''
|
|
|
|
|
def test_findtc():
|
|
|
|
|
'''
|
|
|
|
@ -321,7 +322,7 @@ def test_argsreduce():
|
|
|
|
|
def test_stirlerr():
|
|
|
|
|
'''
|
|
|
|
|
>>> stirlerr(range(5))
|
|
|
|
|
array([ Inf, 0.08106147, 0.0413407 , 0.02767793, 0.02079067])
|
|
|
|
|
array([ inf, 0.08106147, 0.0413407 , 0.02767793, 0.02079067])
|
|
|
|
|
'''
|
|
|
|
|
def test_getshipchar():
|
|
|
|
|
'''
|
|
|
|
@ -347,7 +348,7 @@ def test_getshipchar():
|
|
|
|
|
def test_betaloge():
|
|
|
|
|
'''
|
|
|
|
|
>>> betaloge(3, arange(4))
|
|
|
|
|
array([ Inf, -1.09861229, -2.48490665, -3.40119738])
|
|
|
|
|
array([ inf, -1.09861229, -2.48490665, -3.40119738])
|
|
|
|
|
'''
|
|
|
|
|
def test_gravity():
|
|
|
|
|
'''
|
|
|
|
|