ncdf_read_2d() - generic reading routine

INTERFACE:

    subroutine ncdf_read_2d(ncid,varid,field,il,ih,jl,jh)
USES:
    IMPLICIT NONE
DESCRIPTION:

A two-dimensional netCDF variable with specified global range il < i < ih and jl < j < jh is read into field. It is checked if the sizes of the fields correspond exactly. When calling this funtions, remember that FORTRAN netCDF variables start with index 1. INPUT PARAMETERS:

    integer,          intent(in)        :: ncid
    integer,          intent(in)        :: varid
    integer,          intent(in)        :: il,ih,jl,jh
OUTPUT PARAMETERS:
    REALTYPE, intent(inout)             :: field(:,:)
REVISION HISTORY:
    Original author(s): Lars Umlauf
LOCAL VARIABLES:
    integer                             :: status
    integer, dimension(2)               :: start
    integer, dimension(2)               :: count
    integer, dimension(2)               :: ubounds
    character(len=20)                   :: varname