Changeset 4934


Ignore:
Timestamp:
Jan 14, 2008, 6:27:55 PM (17 years ago)
Author:
ole
Message:

Note about refactoring calc_bearing in term of the existing (and tested :-) function angle() in numerical_tools. It will be a simple matter of converting from radians to degrees and moving the reference direction from [1,0] to North (and change from counter clockwise to clockwise.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/util.py

    r4918 r4934  
    948948    """ Calculate velocity bearing from North
    949949    """
    950 #    from math import atan, degrees
     950    #FIXME (Ole): I reckon we should refactor this one to use
     951    #             the function angle() in utilities/numerical_tools
     952    #
     953    #             It will be a simple matter of
     954    # * converting from radians to degrees
     955    # * moving the reference direction from [1,0] to North
     956    # * changing from counter clockwise to clocwise.
     957   
    951958   
    952959    angle = degrees(atan(vh/(uh+1.e-15)))
Note: See TracChangeset for help on using the changeset viewer.