type :: interp_2dvar_type
private
character(len=:), allocatable :: varname ! variable name
type(var_desc_t) :: vardesc ! variable descriptor on file
integer :: varid ! variable ID on file
type(file_desc_t), pointer :: ncid ! pointer to netcdf ID corresponding to this variable
logical :: file_is_dest ! true if this is on the dest file, false if on the source file
character(len=16) :: vec_dimname ! dimension name of vector dimension (e.g., 'col')
character(len=16) :: lev_dimname ! dimension name of level dimension
integer :: vec_beg ! beginning index of vector dimension
integer :: vec_end ! ending index of vector dimension
integer :: nlev ! size of level dimension
logical :: switchdim ! true if dimensions are 'switched' for this variable
contains
! Public routines
generic :: readvar => readvar_int, readvar_double
!TYPE int,double procedure :: readvar_{TYPE}