to_netcdf Interface

public interface to_netcdf

Overloads for the to_netcdf subroutine.

Usage:

CALL to_netcdf("data.nc", values)

where values is an array and its type is supported by the following overloads.

WARNING: this subroutine should not be used to write standard CABLE outputs as the resulting NetCDF files do not include the required metadata. This subroutine is to be used for debugging purposes only. New outputs for the CABLE model should be implemented in cable_output.F90.


Module Procedures

private subroutine to_netcdf_int32_1d(filename, values)

Dump values to NetCDF file. Any existing dataset with the same filename will be overwritten.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
integer(kind=int32), intent(in), DIMENSION(:) :: values

private subroutine to_netcdf_int32_2d(filename, values)

Dump values to NetCDF file. Any existing dataset with the same filename will be overwritten.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
integer(kind=int32), intent(in), DIMENSION(:,:) :: values

private subroutine to_netcdf_int32_3d(filename, values)

Dump values to NetCDF file. Any existing dataset with the same filename will be overwritten.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
integer(kind=int32), intent(in), DIMENSION(:,:,:) :: values

private subroutine to_netcdf_real32_1d(filename, values)

Dump values to NetCDF file. Any existing dataset with the same filename will be overwritten.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
real(kind=real32), intent(in), DIMENSION(:) :: values

private subroutine to_netcdf_real32_2d(filename, values)

Dump values to NetCDF file. Any existing dataset with the same filename will be overwritten.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
real(kind=real32), intent(in), DIMENSION(:,:) :: values

private subroutine to_netcdf_real32_3d(filename, values)

Dump values to NetCDF file. Any existing dataset with the same filename will be overwritten.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
real(kind=real32), intent(in), DIMENSION(:,:,:) :: values

private subroutine to_netcdf_real64_1d(filename, values)

Dump values to NetCDF file. Any existing dataset with the same filename will be overwritten.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
real(kind=real64), intent(in), DIMENSION(:) :: values

private subroutine to_netcdf_real64_2d(filename, values)

Dump values to NetCDF file. Any existing dataset with the same filename will be overwritten.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
real(kind=real64), intent(in), DIMENSION(:,:) :: values

private subroutine to_netcdf_real64_3d(filename, values)

Dump values to NetCDF file. Any existing dataset with the same filename will be overwritten.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
real(kind=real64), intent(in), DIMENSION(:,:,:) :: values