Group canopy_dx
Grid cell distance calculations using Haversine formula.
Public Functions
Type | Name |
---|---|
subroutine | canopy_dxcalc_mod::canopy_calcdx (DXOPT DXOPT, DXSET DXSET, NLAT NLAT, NLON NLON, LAT LAT, LON LON, DX DX) Calculate grid cell distances for 1D arrays. |
subroutine | canopy_dxcalc_mod::canopy_calcdx_2d (DXOPT DXOPT, DXSET DXSET, NLAT NLAT, NLON NLON, LAT LAT, LON LON, DX DX) Calculate grid cell distances for 2D arrays. |
Public Functions Documentation
function canopy_calcdx
Calculate grid cell distances for 1D arrays.
subroutine canopy_dxcalc_mod::canopy_calcdx (
DXOPT DXOPT,
DXSET DXSET,
NLAT NLAT,
NLON NLON,
LAT LAT,
LON LON,
DX DX
)
Computes great circle distance or the orthodromic distance using Haversine formula for 1D latitude/longitude arrays
Parameters:
DXOPT
User DX calculation option (0=calculate, 1=use set value)DXSET
User DX set value if cannot calculate (m)NLAT
Number of latitude grid cells/pointsNLON
Number of longitude grid cells/pointsLAT
Model latitudes array (degrees)LON
Model longitudes array (degrees)DX
Distance between two points (m)
Author:
P. C. Campbell
Date:
Oct 2022
Note:
Uses Haversine formula for great circle distance calculations
function canopy_calcdx_2d
Calculate grid cell distances for 2D arrays.
subroutine canopy_dxcalc_mod::canopy_calcdx_2d (
DXOPT DXOPT,
DXSET DXSET,
NLAT NLAT,
NLON NLON,
LAT LAT,
LON LON,
DX DX
)
Computes great circle distance or the orthodromic distance using Haversine formula for 2D latitude/longitude arrays
Parameters:
DXOPT
User DX calculation option (0=calculate, 1=use set value)DXSET
User DX set value if cannot calculate (m)NLAT
Number of latitude grid cells/pointsNLON
Number of longitude grid cells/pointsLAT
Model latitudes 2D array (degrees)LON
Model longitudes 2D array (degrees)DX
Distance between two points 2D array (m)
Author:
P. C. Campbell
Date:
Oct 2022
Note:
Uses Haversine formula for great circle distance calculations