0.6.2-dev0
FORCES
FORtran lib for Comp. Env. Sys.
Loading...
Searching...
No Matches
mo_poly::mod_pole Interface Reference

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.
 

Detailed Description

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.

Returns
modified coordinates
Parameters
[in]coordcoordinates of the polygon in question
[in]meridian_argmeridian that represents discontinuity, defaults to 180.0

Definition at line 63 of file mo_poly.f90.

Member Function/Subroutine Documentation

◆ mod_pole_dp()

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.

Returns
modified coordinates
Parameters
[in]coordcoordinates of the polygon in question
[in]meridian_argmeridian that represents discontinuity, defaults to 180.0

Definition at line 728 of file mo_poly.f90.

◆ mod_pole_sp()

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.

Returns
modified coordinates
Parameters
[in]coordcoordinates of the polygon in question
[in]meridian_argmeridian that represents discontinuity, defaults to 180.0

Definition at line 353 of file mo_poly.f90.


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