cable_output_variable_from_definition Function

private function cable_output_variable_from_definition(definition, aggregation, reduction, netcdf_name, metadata) result(this)

Constructs the use of a variable definition described by the arguments: the definition says what the variable is, the arguments say how it is written. The result owns its own copy of the aggregator, so one definition can be used in several streams.

Arguments

Type IntentOptional Attributes Name
type(cable_output_variable_definition_t), intent(in) :: definition
character(len=*), intent(in) :: aggregation

One of allowed_aggregation_methods.

character(len=*), intent(in) :: reduction

One of allowed_reduction_methods.

character(len=*), intent(in) :: netcdf_name

Name of the variable in the NetCDF file.

type(cable_output_attribute_t), intent(in), optional :: metadata(:)

Attributes to add to those of the definition.

Return Value type(cable_output_variable_t)