Skip to content

Commit

Permalink
Doxygen updates to ./lake.fd/find_limit.F90
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGayno-NOAA committed Mar 17, 2021
1 parent 5378c73 commit a05f8bb
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions sorc/orog_mask_tools.fd/lake.fd/find_limit.F90
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
!> @file
!! @brief Find limit
!! @brief Geo-reference utilities for a cubed-sphere grid.
!! @author Ning Wang

!> Find limit
!> Given two points on a cubed-sphere grid, compute the
!! maximum and minimum latitudinal extent of the
!! resulting great circle.
!!
!! @param[in] p1_in ???
!! @param[in] p2_in ???
!! @param[out] latmin ???
!! @param[out] latmax ???
!! @param[in] p1_in Latitude and longitude of point 1.
!! @param[in] p2_in Latitude and longitude of point 2.
!! @param[out] latmin Minimum latitudinal extent.
!! @param[out] latmax Maximum latitudinal extent.
!! @author Ning Wang
!#define DIAG
SUBROUTINE find_limit (p1_in, p2_in, latmin, latmax)
Expand Down Expand Up @@ -47,13 +49,12 @@ SUBROUTINE find_limit (p1_in, p2_in, latmin, latmax)

END SUBROUTINE find_limit

!>
!! This subroutine computes the latitude and longitude
!! of the middle point between two given ponits.
!> Compute the latitude and longitude of the middle
!! point between two given points.
!!
!! There are two formulae available to compute it.
!! There are two formulae available to compute it.
!!
!! One derived from a more general m-sect formula:
!! One derived from a more general m-sect formula:
!! <pre>
!! xyz = sin((1-f)*theta) / sin(theta) * xyz1 +
!! sin(f*theta) /sin(theta) * xyz2 ;
Expand All @@ -64,14 +65,14 @@ END SUBROUTINE find_limit
!! xyz = 0.5 / sqrt[(1+dot(xyz1,xyz2))/2] * (xyz1+xyz2)
!! </pre>
!!
!! and the other one is the normalized middle point of
!! the two end points:
!! and the other one is the normalized middle point of
!! the two end points:
!!
!! <pre>
!! xyz = 0.5 * (xyz1+xyz2), xyz = xyz / sqrt(dot(xyz,xyz))
!! </pre>
!!
!! @author Ning Wang @date March, 2006
!! @author Ning Wang @date March, 2006
!!
SUBROUTINE middle(p1,p2,p)
IMPLICIT NONE
Expand Down

0 comments on commit a05f8bb

Please sign in to comment.