NCEPLIBS-ip  5.0.0
earth_radius_mod Module Reference

Determine earth radius and shape. More...

Functions/Subroutines

subroutine, public earth_radius (IGDTMPL, IGDTLEN, RADIUS, ECCEN_SQUARED)
 Determine earth radius and shape. More...
 

Detailed Description

Determine earth radius and shape.

Author
Gayno, Kyle Gerheiser

Function/Subroutine Documentation

◆ earth_radius()

subroutine, public earth_radius_mod::earth_radius ( integer, dimension(igdtlen), intent(in)  IGDTMPL,
integer, intent(in)  IGDTLEN,
real, intent(out)  RADIUS,
real, intent(out)  ECCEN_SQUARED 
)

Determine earth radius and shape.

Determine the radius and shape of the earth from the grib 2 grid definition template array - section 3.

Parameters
[in]igdtmplinteger (igdtlen) grid definition template array. Corresponds to the gfldigdtmpl component of the ncep g2 library gridmod data structure. For all map projections recognized by iplib, the entries use by this routine are:
  • 1 shape of earth, section 3, octet 15
  • 2 scale factor of spherical earth radius, octet 16
  • 3 scaled value of radius of spherical earth, octets 17-20
  • 4 scale factor of major axis of elliptical earth, octet 21
  • 5 scaled value of major axis of elliptical earth, octets 22-25
  • 6 scale factor of minor axis of elliptical earth, octet 26
  • 7 scaled value of minor axis of elliptical earth, octets 27-30
[in]igdtleninteger number of elements of the grid definition template array. Corresponds to the gfldigdtlen component of the ncep g2 library gridmod data structure.
[out]radiusreal earth radius in meters. For ellipitical earths, this is the semi major axis. See "map projectsions - a working manual" by Snyder (1987) for details.
[out]eccen_squaredreal earth eccentricity squared
Author
Gayno
Date
2015-07-14

Definition at line 40 of file earth_radius_mod.F90.

Referenced by spectral_interp_mod::polates4::polates4_grib2(), and spectral_interp_mod::polatev4::polatev4_grib2().