Implementation of procedures for defining netCDF files for CABLE output streams.
Infers the appropriate netCDF variable type for a given output variable.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(cable_output_variable_t), | intent(in) | :: | output_variable |
The output variable for which to infer the netCDF variable type. |
||
| logical, | intent(in), | optional | :: | use_native_type |
Whether to use the native variable type of the output variable. Set to
|
Infers the appropriate netCDF dimensions for a given output variable based on its data shape and the grid type of the output stream.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(cable_output_stream_t), | intent(in) | :: | output_stream |
The output stream for which to infer the netCDF dimensions. |
||
| type(cable_output_variable_t), | intent(in) | :: | output_variable |
The output variable for which to infer the netCDF dimensions. |
||
| logical, | intent(in), | optional | :: | time_axis |
Whether to include the time axis as a dimension. By default, the time axis will not be included. |
Sets the global attributes for a given output stream.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(cable_output_stream_t), | intent(inout) | :: | output_stream |
The output stream for which to set the global attributes. |
Defines all variables, dimensions and attributes for a given output stream.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(cable_output_stream_t), | intent(inout) | :: | output_stream |
The output stream to define. |
||
| logical, | intent(in), | optional | :: | restart |
Whether this is a restart stream definition. |