Example #1
0
 def from_std( class_, value ):
     # Convert standard to m/s
     mps = MPS.from_std( value )
     # Convert m/s to Beaufort scale
     b = (mps/0.836)**(2/3)
     return b
Example #2
0
 def to_std( class_, value ):
     # Convert Beaufort scale to m/s
     mps = 0.836*value**(3/2)
     # Standardize m/s value
     s= MPS.to_std( mps )
     return s