cable_output_dim_t Derived Type

type, public :: cable_output_dim_t

Type for describing both in-memory and netCDF variable dimensions used by the output module.

Instances of cable_output_dim_t are created by cable_output_get_dimension and is used to describe the in-memory shape of the native diagnostic of each output variable in cable_output_variable_t.

Components of this type are private to ensure that dimensions are only created via cable_output_get_dimension as several dimension names are reserved for special handling by the output module. NetCDF variable dimensions are handled internally in the output module. For more details on how netCDF variable dimensions are inferred from cable_output_dim_t instances, please refer to native_to_netcdf_dimensions.


Components

Type Visibility Attributes Name Initial
character(len=64), private :: dim_name

Dimension name.

integer, private :: dim_size

Dimension size.


Type-Bound Procedures

procedure, public :: name => cable_output_dim_get_name

Return the dimension name.

  • private elemental function cable_output_dim_get_name(this) result(name)

    Return the dimension name.

    Arguments

    Type IntentOptional Attributes Name
    class(cable_output_dim_t), intent(in) :: this

    Return Value character(len=64)

procedure, public :: size => cable_output_dim_get_size

Return the dimension size.