cable_netcdf_file_def_var Interface

interface
private subroutine cable_netcdf_file_def_var(this, var_name, type, dim_names)

Arguments

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

Name of the variable to define.

integer, intent(in) :: type

Data type of the variable, using the CABLE_NETCDF_* constants (e.g., CABLE_NETCDF_INT, CABLE_NETCDF_REAL32).

character(len=*), intent(in), optional :: dim_names(:)

Array of dimension names for the variable. If not provided, the variable will be defined as a scalar.

Description

Define a variable in the netCDF file with the specified name, dimensions, and type.