grid_tools 1.14.0
Loading...
Searching...
No Matches
pmat4::sarea Interface Reference

Public Member Functions

real(dp) function dqarea_d (rlat, drlata, drlona, drlatb, drlonb, drlatc, drlonc)
 Compute the area of the spherical quadrilateral with a vertex at latitude rlat, and three other vertices at A, B, and C in turn, whose incremented latitudes and longitudes are drlata,drlona (for A), drlatb,drlonb (for B), and drlatc,drlonc (for C).
 
real(sp) function dqarea_s (rlat, drlata, drlona, drlatb, drlonb, drlatc, drlonc)
 Compute the area of the spherical quadrilateral with a vertex at latitude rlat, and three other vertices at A, B, and C in turn, whose incremented latitudes and longitudes are drlata,drlona (for A), drlatb,drlonb (for B), and drlatc,drlonc (for C).
 
real(dp) function dtarea_d (rlat, drlata, drlona, drlatb, drlonb)
 Compute the area of the spherical triangle with a vertex at latitude rlat, and two other vertices, A and B, whose incremented latitudes and longitudes are drlata,drlona (for A) and drlatb,drlonb (for B).
 
real(sp) function dtarea_s (rlat, drlata, drlona, drlatb, drlonb)
 Compute the area of the spherical triangle with a vertex at latitude rlat, and two other vertices, A and B, whose incremented latitudes and longitudes are drlata,drlona (for A) and drlatb,drlonb (for B).
 
real(dp) function sarea_d (v1, v2, v3)
 Compute the area of the spherical triangle, {v1,v2,v3}.
 
real(sp) function sarea_s (v1, v2, v3)
 Compute the area of the spherical triangle, {v1,v2,v3}, measured in the right-handed sense, by dropping a perpendicular to u0 on the longest side so that the area becomes the sum of areas of the two simpler right-angled triangles.
 

Detailed Description

Definition at line 81 of file pmat4.f90.

Member Function/Subroutine Documentation

◆ dqarea_d()

real(dp) function pmat4::sarea::dqarea_d ( real(dp), intent(in) rlat,
real(dp), intent(in) drlata,
real(dp), intent(in) drlona,
real(dp), intent(in) drlatb,
real(dp), intent(in) drlonb,
real(dp), intent(in) drlatc,
real(dp), intent(in) drlonc )

Compute the area of the spherical quadrilateral with a vertex at latitude rlat, and three other vertices at A, B, and C in turn, whose incremented latitudes and longitudes are drlata,drlona (for A), drlatb,drlonb (for B), and drlatc,drlonc (for C).

The computations are designed to give a proportionately accurate area estimate even when the quadrilateral is very small, provided the diagonal making the B-increment is not disproportionately small compared to the characteristic size of the quadrilateral. Double precision version.

Parameters
[in]rlatlatitude of reference point
[in]drlataincremental latitude of point A
[in]drlonaincremental longitude of point A
[in]drlatbincremental latitude of point B
[in]drlonbincremental longitude of point B
[in]drlatcincremental latitude of point C
[in]drloncincremental longitude of point C
Returns
area
Author
R. J. Purser

Definition at line 896 of file pmat4.f90.

◆ dqarea_s()

real(sp) function pmat4::sarea::dqarea_s ( real(sp), intent(in) rlat,
real(sp), intent(in) drlata,
real(sp), intent(in) drlona,
real(sp), intent(in) drlatb,
real(sp), intent(in) drlonb,
real(sp), intent(in) drlatc,
real(sp), intent(in) drlonc )

Compute the area of the spherical quadrilateral with a vertex at latitude rlat, and three other vertices at A, B, and C in turn, whose incremented latitudes and longitudes are drlata,drlona (for A), drlatb,drlonb (for B), and drlatc,drlonc (for C).

The computations are designed to give a proportionately accurate area estimate even when the quadrilateral is very small, provided the diagonal making the B-increment is not disproportionately small compared to the characteristic size of the quadrilateral. Single precision version.

Parameters
[in]rlatlatitude of reference point
[in]drlataincremental latitude of point A
[in]drlonaincremental longitude of point A
[in]drlatbincremental latitude of point B
[in]drlonbincremental longitude of point B
[in]drlatcincremental latitude of point C
[in]drloncincremental longitude of point C
Returns
area result
Author
R. J. Purser

Definition at line 867 of file pmat4.f90.

◆ dtarea_d()

real(dp) function pmat4::sarea::dtarea_d ( real(dp), intent(in) rlat,
real(dp), intent(in) drlata,
real(dp), intent(in) drlona,
real(dp), intent(in) drlatb,
real(dp), intent(in) drlonb )

Compute the area of the spherical triangle with a vertex at latitude rlat, and two other vertices, A and B, whose incremented latitudes and longitudes are drlata,drlona (for A) and drlatb,drlonb (for B).

The computations are designed to give a proportionately accurate area estimate even when the triangle is very small, provided the B-increment is not disproportionately small compared to the other two sides. Double precision version.

Parameters
[in]rlatlatitude of reference point
[in]drlataincremental latitude of A
[in]drlonaincremental longitude of A
[in]drlatbincremental latitude of B
[in]drlonbincremental longitude of B
Returns
area result
Author
R. J. Purser

Definition at line 824 of file pmat4.f90.

References pietc::u0, and pietc::u1.

◆ dtarea_s()

real(sp) function pmat4::sarea::dtarea_s ( real(sp), intent(in) rlat,
real(sp), intent(in) drlata,
real(sp), intent(in) drlona,
real(sp), intent(in) drlatb,
real(sp), intent(in) drlonb )

Compute the area of the spherical triangle with a vertex at latitude rlat, and two other vertices, A and B, whose incremented latitudes and longitudes are drlata,drlona (for A) and drlatb,drlonb (for B).

The computations are designed to give a proportionately accurate area estimate even when the triangle is very small, provided the B-increment is not disproportionately small compared to the other two sides. Single precision version.

Parameters
[in]rlatlatitude of reference point
[in]drlataincremental latitude of A
[in]drlonaincremental longitude of A
[in]drlatbincremental latitude of B
[in]drlonbincremental longitude of B
Returns
area result
Author
R. J. Purser

Definition at line 785 of file pmat4.f90.

◆ sarea_d()

real(dp) function pmat4::sarea::sarea_d ( real(dp), dimension(3), intent(in) v1,
real(dp), dimension(3), intent(in) v2,
real(dp), dimension(3), intent(in) v3 )

Compute the area of the spherical triangle, {v1,v2,v3}.

Parameters
[in]v1unit-3-vector vertex of the spherical triangle
[in]v2unit-3-vector vertex of the spherical triangle
[in]v3unit-3-vector vertex of the spherical triangle
Returns
area result
Author
R. J. Purser

Definition at line 722 of file pmat4.f90.

References cyclic(), pietc::u0, pietc::u1, pietc::u2, and pietc::u3.

◆ sarea_s()

real(sp) function pmat4::sarea::sarea_s ( real(sp), dimension(3), intent(in) v1,
real(sp), dimension(3), intent(in) v2,
real(sp), dimension(3), intent(in) v3 )

Compute the area of the spherical triangle, {v1,v2,v3}, measured in the right-handed sense, by dropping a perpendicular to u0 on the longest side so that the area becomes the sum of areas of the two simpler right-angled triangles.

Parameters
[in]v1area of the spherical triangle
[in]v2area of the spherical triangle
[in]v3area of the spherical triangle
Returns
area result
Author
R. J. Purser

Definition at line 667 of file pmat4.f90.

References cyclic().


The documentation for this interface was generated from the following file: