FORCES
FORtran lib for Comp. Env. Sys.
|
Modify polygon so it covers pole correctly. More...
Public Member Functions | |
real(sp) function, dimension(:,:), allocatable | mod_pole_sp (coord, meridian_arg) |
Modify polygon so it covers pole correctly. | |
real(dp) function, dimension(:,:), allocatable | mod_pole_dp (coord, meridian_arg) |
Modify polygon so it covers pole correctly. | |
Modify polygon so it covers pole correctly.
Modifies a polygon (2D, convex or not) to include pole when passed to inpoly this function is intended to modify a given polygon, so it can be represented in a Cartesian grid the use case is a polygon (e.g. 120,80, -120,80, 0,80 covering the north pole) that is not represented on Cartesian lat-lon grid as polygon. The script inserts additional coordinates, so the pole is covered (e.g. 180,80, 180,90, -180,90, -180,80) See test cases for examples.
[in] | coord | coordinates of the polygon in question |
[in] | meridian_arg | meridian that represents discontinuity, defaults to 180.0 |
Definition at line 63 of file mo_poly.f90.
real(dp) function, dimension(:,:), allocatable mo_poly::mod_pole::mod_pole_dp | ( | real(dp), dimension(:,:), intent(in) | coord, |
real(dp), intent(in), optional | meridian_arg | ||
) |
Modify polygon so it covers pole correctly.
Modifies a polygon (2D, convex or not) to include pole when passed to inpoly this function is intended to modify a given polygon, so it can be represented in a Cartesian grid the use case is a polygon (e.g. 120,80, -120,80, 0,80 covering the north pole) that is not represented on Cartesian lat-lon grid as polygon. The script inserts additional coordinates, so the pole is covered (e.g. 180,80, 180,90, -180,90, -180,80) See test cases for examples.
[in] | coord | coordinates of the polygon in question |
[in] | meridian_arg | meridian that represents discontinuity, defaults to 180.0 |
Definition at line 728 of file mo_poly.f90.
real(sp) function, dimension(:,:), allocatable mo_poly::mod_pole::mod_pole_sp | ( | real(sp), dimension(:,:), intent(in) | coord, |
real(sp), intent(in), optional | meridian_arg | ||
) |
Modify polygon so it covers pole correctly.
Modifies a polygon (2D, convex or not) to include pole when passed to inpoly this function is intended to modify a given polygon, so it can be represented in a Cartesian grid the use case is a polygon (e.g. 120,80, -120,80, 0,80 covering the north pole) that is not represented on Cartesian lat-lon grid as polygon. The script inserts additional coordinates, so the pole is covered (e.g. 180,80, 180,90, -180,90, -180,80) See test cases for examples.
[in] | coord | coordinates of the polygon in question |
[in] | meridian_arg | meridian that represents discontinuity, defaults to 180.0 |
Definition at line 353 of file mo_poly.f90.