cable_netcdf_file_get_var_real32_0d Interface

interface
private subroutine cable_netcdf_file_get_var_real32_0d(this, var_name, values, start, count)

Arguments

Type IntentOptional Attributes Name
class(cable_netcdf_file_t), intent(inout) :: this
character(len=*), intent(in) :: var_name

Name of the variable to read from.

real(kind=CABLE_NETCDF_REAL32_KIND), intent(out) :: values

Scalar value to store the value read from the variable.

integer, intent(in), optional :: start(:)

Starting indices for reading the variable. If not provided, reading will start at the beginning of the variable.

integer, intent(in), optional :: count(:)

Count of elements to read for each dimension. If not provided, the entire variable will be read.

Description

Read a 0-dimensional (scalar) 32-bit real variable from the netCDF file.