netcdf_t Derived Type

type, public :: netcdf_t


Inherits

type~~netcdf_t~~InheritsGraph type~netcdf_t netcdf_t type~dim_info_t dim_info_t type~netcdf_t->type~dim_info_t dims type~var_info_t var_info_t type~netcdf_t->type~var_info_t vars

Components

Type Visibility Attributes Name Initial
integer, public :: ncid = -1
logical, public :: is_open = .false.
logical, public :: in_define_mode = .false.
integer, public :: n_vars = 0
type(var_info_t), public :: vars(max_vars)
integer, public :: n_dims = 0
type(dim_info_t), public :: dims(max_dims)

Finalization Procedures

final :: netcdf_final

  • private subroutine netcdf_final(this)

    Arguments

    Type IntentOptional Attributes Name
    type(netcdf_t), intent(inout) :: this

Type-Bound Procedures

procedure, public :: create => netcdf_create

  • private subroutine netcdf_create(this, filename)

    Arguments

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

procedure, public :: open => netcdf_open

  • private subroutine netcdf_open(this, filename)

    Arguments

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

procedure, public :: add_global_attribute => netcdf_add_global_attr

  • private subroutine netcdf_add_global_attr(this, attr_name, attr_value)

    Arguments

    Type IntentOptional Attributes Name
    class(netcdf_t), intent(inout) :: this
    character(len=*), intent(in) :: attr_name
    character(len=*), intent(in) :: attr_value

procedure, public :: read_global_attribute => netcdf_read_global_attr

  • private subroutine netcdf_read_global_attr(this, attr_name, attr_value)

    Arguments

    Type IntentOptional Attributes Name
    class(netcdf_t), intent(inout) :: this
    character(len=*), intent(in) :: attr_name
    character(len=*), intent(out) :: attr_value

procedure, public :: def_dim => netcdf_def_dim

  • private subroutine netcdf_def_dim(this, dim_name, dim_length)

    Arguments

    Type IntentOptional Attributes Name
    class(netcdf_t), intent(inout) :: this
    character(len=*), intent(in) :: dim_name
    integer, intent(in) :: dim_length

procedure, public :: add_real => netcdf_add_real

  • private subroutine netcdf_add_real(this, var_name)

    Arguments

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

procedure, public :: add_real_1d => netcdf_add_real_1d

  • private subroutine netcdf_add_real_1d(this, var_name, dim_name)

    Arguments

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

procedure, public :: add_attr => netcdf_add_attr

  • private subroutine netcdf_add_attr(this, var_name, attr_name, attr_value)

    Arguments

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

procedure, public :: read_attr => netcdf_read_attr

  • private subroutine netcdf_read_attr(this, var_name, attr_name, attr_value)

    Arguments

    Type IntentOptional Attributes Name
    class(netcdf_t), intent(inout) :: this
    character(len=*), intent(in) :: var_name
    character(len=*), intent(in) :: attr_name
    character(len=*), intent(out) :: attr_value

procedure, public :: add_int_1d => netcdf_add_int_1d

  • private subroutine netcdf_add_int_1d(this, var_name, dim_name)

    Arguments

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

procedure, public :: end_define => netcdf_end_define

  • private subroutine netcdf_end_define(this)

    Arguments

    Type IntentOptional Attributes Name
    class(netcdf_t), intent(inout) :: this

procedure, public :: write_real => netcdf_write_real

  • private subroutine netcdf_write_real(this, var_name, value)

    Arguments

    Type IntentOptional Attributes Name
    class(netcdf_t), intent(inout) :: this
    character(len=*), intent(in) :: var_name
    real(kind=dp), intent(in) :: value

procedure, public :: write_real_1d => netcdf_write_real_1d

  • private subroutine netcdf_write_real_1d(this, var_name, value)

    Arguments

    Type IntentOptional Attributes Name
    class(netcdf_t), intent(inout) :: this
    character(len=*), intent(in) :: var_name
    real(kind=dp), intent(in), dimension(:) :: value

procedure, public :: write_int_1d => netcdf_write_int_1d

  • private subroutine netcdf_write_int_1d(this, var_name, value)

    Arguments

    Type IntentOptional Attributes Name
    class(netcdf_t), intent(inout) :: this
    character(len=*), intent(in) :: var_name
    integer, intent(in), dimension(:) :: value

procedure, public :: read_real => netcdf_read_real

  • private subroutine netcdf_read_real(this, var_name, value)

    Arguments

    Type IntentOptional Attributes Name
    class(netcdf_t), intent(inout) :: this
    character(len=*), intent(in) :: var_name
    real(kind=dp), intent(out) :: value

procedure, public :: read_real_1d => netcdf_read_real_1d

  • private subroutine netcdf_read_real_1d(this, var_name, value)

    Arguments

    Type IntentOptional Attributes Name
    class(netcdf_t), intent(inout) :: this
    character(len=*), intent(in) :: var_name
    real(kind=dp), intent(out), dimension(:) :: value

procedure, public :: read_int_1d => netcdf_read_int_1d

  • private subroutine netcdf_read_int_1d(this, var_name, value)

    Arguments

    Type IntentOptional Attributes Name
    class(netcdf_t), intent(inout) :: this
    character(len=*), intent(in) :: var_name
    integer, intent(out), dimension(:) :: value

procedure, public :: close => netcdf_close

  • private subroutine netcdf_close(this)

    Arguments

    Type IntentOptional Attributes Name
    class(netcdf_t), intent(inout) :: this