0.6.2-dev0
FORCES
FORtran lib for Comp. Env. Sys.
Loading...
Searching...
No Matches
mo_poly.f90 File Reference

Polygon calculations. More...

Go to the source code of this file.

Data Types

interface  mo_poly::areapoly
 Area of polygon. More...
 
interface  mo_poly::center_of_mass
 Center of mass of polygon. More...
 
interface  mo_poly::inpoly
 Determination point of polygon. More...
 
interface  mo_poly::orientpoly
 Check orientation of polygon. More...
 
interface  mo_poly::mod_pole
 Modify polygon so it covers pole correctly. More...
 
interface  mo_poly::mod_shift
 Shifts the (longitude) value 180 degrees. More...
 

Modules

module  mo_poly
 Polygon calculations.
 

Functions/Subroutines

real(sp) function mo_poly::areapoly_sp (coord)
 Area of polygon.
 
real(sp) function, dimension(2) mo_poly::center_of_mass_sp (coord)
 Center of mass of polygon.
 
subroutine mo_poly::inpoly_sp (p, coord, erg)
 Determination point of polygon.
 
integer(i4) function mo_poly::orientpoly_sp (coord)
 Check orientation of polygon.
 
real(sp) function, dimension(:,:), allocatable mo_poly::mod_pole_sp (coord, meridian_arg)
 Modify polygon so it covers pole correctly.
 
elemental real(sp) function mo_poly::mod_shift_sp (x_coord, meridian_arg)
 Shifts the (longitude) value 180 degrees.
 
real(dp) function mo_poly::areapoly_dp (coord)
 Area of polygon.
 
real(dp) function, dimension(2) mo_poly::center_of_mass_dp (coord)
 Center of mass of polygon.
 
subroutine mo_poly::inpoly_dp (p, coord, erg)
 Determination point of polygon.
 
integer(i4) function mo_poly::orientpoly_dp (coord)
 Check orientation of polygon.
 
real(dp) function, dimension(:,:), allocatable mo_poly::mod_pole_dp (coord, meridian_arg)
 Modify polygon so it covers pole correctly.
 
elemental real(dp) function mo_poly::mod_shift_dp (x_coord, meridian_arg)
 Shifts the (longitude) value 180 degrees.
 

Detailed Description

Polygon calculations.

This module determines wether a 2D point lies inside, outside, or on the vertice/edge of a 2D polygon and is part of the UFZ CHS Fortran library.

Changelog
  • Juliane Mai, July 2012
    • written
  • Maren Goehler, July 2012
    • area & center of mass
Author
Juliane Mai
Date
Jul 2012

Definition in file mo_poly.f90.