pio_inquire_variable Interface

public interface pio_inquire_variable

\defgroup PIO_inquire_variable


Module Procedures

private function inquire_variable_vid(ncid, varid, name, xtype, ndims, dimids, natts) result(ierr)

@public @details

Arguments

Type IntentOptional Attributes Name
type(File_desc_t), intent(in) :: ncid

: A netcdf file descriptor returned by \ref PIO_openfile or \ref PIO_createfile.

integer, intent(in) :: varid

: The netcdf variable ID.

character(len=*), intent(out), optional :: name

: The name of the variable

integer, intent(out), optional :: xtype

: The type of the variable

integer, intent(out), optional :: ndims

: The type of the variable : The number of dimensions for the variable.

integer, intent(out), optional, dimension(:) :: dimids

: The dimension identifier returned by \ref PIO_def_dim

integer, intent(out), optional :: natts

: Number of attributes associated with the variable

Return Value integer

private function inquire_variable_vdesc(ncid, vardesc, name, xtype, ndims, dimids, natts) result(ierr)

@public @details

Arguments

Type IntentOptional Attributes Name
type(File_desc_t), intent(in) :: ncid

: A netcdf file descriptor returned by \ref PIO_openfile or \ref PIO_createfile.

type(Var_desc_t), intent(in) :: vardesc

copydoc: var_desc_t

character(len=*), intent(out), optional :: name

: The name of the variable

integer, intent(out), optional :: xtype

: The type of the variable

integer, intent(out), optional :: ndims

: The type of the variable : The number of dimensions for the variable.

integer, intent(out), optional, dimension(:) :: dimids

: The dimension identifier returned by \ref PIO_def_dim

integer, intent(out), optional :: natts

: Number of attributes associated with the variable

Return Value integer