coords_and_grid_spacing

INTERFACE:

    subroutine coords_and_grid_spacing(ncid,varid,iextr,cordname,x0,dx)
USES:
    IMPLICIT NONE
DESCRIPTION:

Computes x and dx given that the netcdf file contains the axis (T-point) information. It is assumed that the coordinate values are equidistantly spaced. The equidistance is tested and warnings given if non-equidistant values are noted.

The routine also works for y, lon, and lat. INPUT PARAMETERS:

    integer,      intent(in)             :: ncid
    character(len=*), intent(in)         :: spacing_name
    character(len=*), intent(in)         :: cord_name
    integer,      intent(in)             ::
    character(len=*), intent(in)         :: cordname
OUTPUT PARAMETERS:
    REALTYPE, intent(out)               :: x0, dx
REVISION HISTORY:
    Original author(s): Bjarne Buchmann
LOCAL VARIABLES:
    integer                   :: status
    integer                   :: indx(1)
    integer                   :: i
    REALTYPE                  :: startval,endval
    REALTYPE                  :: expectval,readval,dval



kklingbe 2017-10-02