Stellarator-Tools
netcdf_inc Module Reference

Work around to fix some netcdf import problems with the Ezcdf. This module emulates the F77 interface using the F90 interface. More...

Data Types

interface  nf_open
 Interface to open a file. More...
 
interface  nf_create
 Interface to open a file. More...
 
interface  nf_close
 Interface to open a file. More...
 
interface  nf_enddef
 Interface to inquire a dimension id. More...
 
interface  nf_strerror
 Interface to inquire a dimension id. More...
 
interface  nf_inq_dimid
 Interface to inquire a dimension id. More...
 
interface  nf_def_dim
 Interface to define a dimension. More...
 
interface  nf_inq_varid
 Interface to inquire a variable id. More...
 
interface  nf_get_var_int
 Interface for reading integer variables. More...
 
interface  nf_put_var_int
 Interface for writing integer variables. More...
 
interface  nf_put_vara_int
 Interface for writing integer variables. More...
 
interface  nf_get_var_real
 Interface for reading real variables. Note double 2D array used by complex real array values. More...
 
interface  nf_put_vara_real
 Interface for reading real variables. Note double 2D array used by complex real array values. More...
 
interface  nf_put_var_real
 Interface for writing real variables. Note double 2D array used by complex real array values. More...
 
interface  nf_get_var_double
 Interface for reading double variables. More...
 
interface  nf_put_vara_double
 Interface for reading double variables. Note double 2D array used by complex double array values. More...
 
interface  nf_put_var_double
 Interface for writing double variables. More...
 

Functions/Subroutines

integer function nf_def_var (ncid, name, xtype, ndims, dimids, varid)
 Define a variable. More...
 
integer function nf_inq_var (ncid, varid, name, xtype, ndims, dimids, natts)
 Inquire a variable. More...
 
integer function nf_inq_dim (ncid, dimid, name, length)
 Inquire a dimension name or length. More...
 
integer function nf_inq_dimlen (ncid, dimid, length)
 Inquire a dimension length. More...
 
integer function nf_get_att_text (ncid, varid, name, text)
 Read an string attribute. More...
 
integer function nf_get_att_double (ncid, varid, name, dvals)
 Read an double attribute. More...
 
integer function nf_get_att_real (ncid, varid, name, rvals)
 Read an real attribute. More...
 
integer function nf_get_att_int (ncid, varid, name, ivals)
 Read an integer attribute. More...
 
integer function nf_get_var_double (ncid, varid, dvals)
 Read a double value. More...
 
integer function nf_get_var_1d_double (ncid, varid, dvals)
 Read a double valued array. More...
 
integer function nf_get_var_2d_double (ncid, varid, dvals)
 Read a double valued 2D array. More...
 
integer function nf_get_var_3d_double (ncid, varid, dvals)
 Read a double valued 3D array. More...
 
integer function nf_get_var_cpx_double (ncid, varid, cvals)
 Read a 64bit complex value. More...
 
integer function nf_get_var_1d_cpx_double (ncid, varid, cvals)
 Read a 64bit complex valued array. More...
 
integer function nf_get_var_2d_cpx_double (ncid, varid, cvals)
 Read a 64bit complex valued 2D array. More...
 
integer function nf_get_var_3d_cpx_double (ncid, varid, cvals)
 Read a 64bit complex valued 3D array. More...
 
integer function nf_get_var_real (ncid, varid, rvals)
 Read a real value. More...
 
integer function nf_get_var_1d_real (ncid, varid, rvals)
 Read a real valued array. More...
 
integer function nf_get_var_2d_real (ncid, varid, rvals)
 Read a real valued 2D array. More...
 
integer function nf_get_var_3d_real (ncid, varid, rvals)
 Read a real valued 3D array. More...
 
integer function nf_get_var_cpx_real (ncid, varid, cvals)
 Read a 32bit complex value. More...
 
integer function nf_get_var_1d_cpx_real (ncid, varid, cvals)
 Read a 32bit complex valued array. More...
 
integer function nf_get_var_2d_cpx_real (ncid, varid, cvals)
 Read a 32bit complex valued 2D array. More...
 
integer function nf_get_var_3d_cpx_real (ncid, varid, cvals)
 Read a 32bit complex valued 3D array. More...
 
integer function nf_get_var_int (ncid, varid, ivals)
 Read an integer value. More...
 
integer function nf_get_var_1d_int (ncid, varid, ivals)
 Read an integer valued array. More...
 
integer function nf_get_var_2d_int (ncid, varid, ivals)
 Read an integer valued 2D array. More...
 
integer function nf_get_var_3d_int (ncid, varid, ivals)
 Read an integer valued 3D array. More...
 
integer function nf_get_var_text (ncid, varid, text)
 Read a text value. More...
 
integer function nf_get_vara_text (ncid, varid, start, count, text)
 Read a text valued array. More...
 
integer function nf_put_att_text (ncid, varid, name, length, text)
 Put an text attribute. More...
 
integer function nf_put_att_double (ncid, varid, name, xtype, length, dvals)
 Put an double attribute. More...
 
integer function nf_put_att_real (ncid, varid, name, xtype, length, rvals)
 Put an real attribute. More...
 
integer function nf_put_att_int (ncid, varid, name, xtype, length, ivals)
 Put an integer attribute. More...
 
integer function nf_put_var_int (ncid, varid, ivals)
 Write an integer value. More...
 
integer function nf_put_var_1d_int (ncid, varid, ivals)
 Write an integer valued array. More...
 
integer function nf_put_var_2d_int (ncid, varid, ivals)
 Write an integer valued 2D array. More...
 
integer function nf_put_var_3d_int (ncid, varid, ivals)
 Write an integer valued 3D array. More...
 
integer function nf_put_vara_int (ncid, varid, start, count, ivals)
 Write a integer value. More...
 
integer function nf_put_vara_3d_int (ncid, varid, start, count, ivals)
 Write a integer value. More...
 
integer function nf_put_var_double (ncid, varid, dvals)
 Write a double value. More...
 
integer function nf_put_var_1d_double (ncid, varid, dvals)
 Write a double valued array. More...
 
integer function nf_put_var_2d_double (ncid, varid, dvals)
 Read a double valued 2D array. More...
 
integer function nf_put_var_3d_double (ncid, varid, dvals)
 Write a double valued 3D array. More...
 
integer function nf_put_var_cpx_double (ncid, varid, cvals)
 Write a 64bit complex value. More...
 
integer function nf_put_var_1d_cpx_double (ncid, varid, cvals)
 Write a 64bit complex valued array. More...
 
integer function nf_put_var_2d_cpx_double (ncid, varid, cvals)
 Write a 64bit complex valued 2D array. More...
 
integer function nf_put_var_3d_cpx_double (ncid, varid, cvals)
 Write a 64bit complex valued 3D array. More...
 
integer function nf_put_vara_double (ncid, varid, start, count, dvals)
 Write a double value. More...
 
integer function nf_put_vara_2d_double (ncid, varid, start, count, dvals)
 Write a double value. More...
 
integer function nf_put_vara_3d_double (ncid, varid, start, count, dvals)
 Write a double value. More...
 
integer function nf_put_vara_cpx_double (ncid, varid, start, count, cvals)
 Write a complex double value. More...
 
integer function nf_put_vara_2d_cpx_double (ncid, varid, start, count, cvals)
 Write a complex double value. More...
 
integer function nf_put_vara_3d_cpx_double (ncid, varid, start, count, cvals)
 Write a double value. More...
 
integer function nf_put_var_real (ncid, varid, rvals)
 Write a real value. More...
 
integer function nf_put_var_1d_real (ncid, varid, rvals)
 Write a real valued array. More...
 
integer function nf_put_var_2d_real (ncid, varid, rvals)
 Read a real valued 2D array. More...
 
integer function nf_put_var_3d_real (ncid, varid, rvals)
 Write a real valued 3D array. More...
 
integer function nf_put_var_cpx_real (ncid, varid, cvals)
 Write a 32bit complex value. More...
 
integer function nf_put_var_1d_cpx_real (ncid, varid, cvals)
 Write a 32bit complex valued array. More...
 
integer function nf_put_var_2d_cpx_real (ncid, varid, cvals)
 Write a 32bit complex valued 2D array. More...
 
integer function nf_put_var_3d_cpx_real (ncid, varid, cvals)
 Write a 32bit complex valued 3D array. More...
 
integer function nf_put_vara_real (ncid, varid, start, count, rvals)
 Write a real value. More...
 
integer function nf_put_vara_2d_real (ncid, varid, start, count, rvals)
 Write a real value. More...
 
integer function nf_put_vara_3d_real (ncid, varid, start, count, rvals)
 Write a real value. More...
 
integer function nf_put_vara_cpx_real (ncid, varid, start, count, cvals)
 Write a complex real value. More...
 
integer function nf_put_vara_2d_cpx_real (ncid, varid, start, count, cvals)
 Write a complex real value. More...
 
integer function nf_put_vara_3d_cpx_real (ncid, varid, start, count, cvals)
 Write a complex real value. More...
 
integer function nf_put_var_text (ncid, varid, text)
 Write a text value. More...
 
integer function nf_put_vara_text (ncid, varid, start, count, text)
 Write a text valued array. More...
 

Variables

integer, parameter nf_real = nf90_real
 32bit Real type.
 
integer, parameter nf_float = nf90_float
 32bit Real type.
 
integer, parameter nf_double = nf90_double
 64bit Real type.
 
integer, parameter nf_byte = nf90_byte
 8bit Integer type.
 
integer, parameter nf_char = nf90_char
 Character type.
 
integer, parameter nf_int = nf90_int
 32bit Integer type.
 
integer, parameter nf_max_name = nf90_max_name
 Maximum length of strings.
 
integer, parameter nf_global = nf90_global
 Netcdf global .
 
integer, parameter nf_noerr = nf90_noerr
 No error responce.
 
integer, parameter nf_write = nf90_write
 Write flag.
 
integer, parameter nf_nowrite = nf90_nowrite
 Readonly flag.
 
integer, parameter nf_clobber = nf90_clobber
 Clobber flag.
 
integer, parameter nf_64bit_offset = nf90_64bit_offset
 64bit offset flag.
 

Detailed Description

Work around to fix some netcdf import problems with the Ezcdf. This module emulates the F77 interface using the F90 interface.

Function/Subroutine Documentation

◆ nf_def_var()

integer function netcdf_inc::nf_def_var ( integer, intent(in)  ncid,
character (len=*), intent(in)  name,
integer, intent(in)  xtype,
integer, intent(in)  ndims,
integer, dimension(:), intent(in)  dimids,
integer, intent(out)  varid 
)

Define a variable.

Parameters
[in]ncidNetcdf file id.
[in]nameVariable id.
[in]xtypeVariable type.
[in]ndimsNumber of dimensions.
[in]dimidsDimension ids.
[out]varidVariable id.

◆ nf_get_att_double()

integer function netcdf_inc::nf_get_att_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
character (len=*), intent(in)  name,
real (real64), dimension(:), intent(out)  dvals 
)

Read an double attribute.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]nameName of the attribute.
[out]dvalsDouble values of the attribute.

◆ nf_get_att_int()

integer function netcdf_inc::nf_get_att_int ( integer, intent(in)  ncid,
integer, intent(in)  varid,
character (len=*), intent(in)  name,
integer, dimension(:), intent(out)  ivals 
)

Read an integer attribute.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]nameName of the attribute.
[out]ivalsInteger values of the attribute.

◆ nf_get_att_real()

integer function netcdf_inc::nf_get_att_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
character (len=*), intent(in)  name,
real (real32), dimension(:), intent(out)  rvals 
)

Read an real attribute.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]nameName of the attribute.
[out]rvalsReal values of the attribute.

◆ nf_get_att_text()

integer function netcdf_inc::nf_get_att_text ( integer, intent(in)  ncid,
integer, intent(in)  varid,
character (len=*), intent(in)  name,
character (len=*), intent(out)  text 
)

Read an string attribute.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]nameName of the attribute.
[out]textString values of the attribute.

◆ nf_get_var_1d_cpx_double()

integer function netcdf_inc::nf_get_var_1d_cpx_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
complex (real64), dimension(:), intent(out)  cvals 
)

Read a 64bit complex valued array.

Netcdf does not support complex types directly. Instead these values are interweaved into a double array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]cvalsComplex array to store the value.

◆ nf_get_var_1d_cpx_real()

integer function netcdf_inc::nf_get_var_1d_cpx_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
complex (real32), dimension(:), intent(out)  cvals 
)

Read a 32bit complex valued array.

Netcdf does not support complex types directly. Instead these values are interweaved into a real array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]cvalsComplex array to store the value.

◆ nf_get_var_1d_double()

integer function netcdf_inc::nf_get_var_1d_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real (real64), dimension(:), intent(out)  dvals 
)

Read a double valued array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]dvalsDouble array to store the value.

◆ nf_get_var_1d_int()

integer function netcdf_inc::nf_get_var_1d_int ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:), intent(out)  ivals 
)

Read an integer valued array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]ivalsInteger array to store the value.

◆ nf_get_var_1d_real()

integer function netcdf_inc::nf_get_var_1d_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real (real32), dimension(:), intent(out)  rvals 
)

Read a real valued array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]rvalsReal array to store the value.

◆ nf_get_var_2d_cpx_double()

integer function netcdf_inc::nf_get_var_2d_cpx_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
complex (real64), dimension(:,:), intent(out)  cvals 
)

Read a 64bit complex valued 2D array.

Netcdf does not support complex types directly. Instead these values are interweaved into a double array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]cvalsComplex array to store the value.

◆ nf_get_var_2d_cpx_real()

integer function netcdf_inc::nf_get_var_2d_cpx_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
complex (real32), dimension(:,:), intent(out)  cvals 
)

Read a 32bit complex valued 2D array.

Netcdf does not support complex types directly. Instead these values are interweaved into a real array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]cvalsComplex array to store the value.

◆ nf_get_var_2d_double()

integer function netcdf_inc::nf_get_var_2d_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real (real64), dimension(:,:), intent(out)  dvals 
)

Read a double valued 2D array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]dvalsDouble array to store the value.

◆ nf_get_var_2d_int()

integer function netcdf_inc::nf_get_var_2d_int ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:,:), intent(out)  ivals 
)

Read an integer valued 2D array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]ivalsInteger array to store the value.

◆ nf_get_var_2d_real()

integer function netcdf_inc::nf_get_var_2d_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real (real32), dimension(:,:), intent(out)  rvals 
)

Read a real valued 2D array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]rvalsReal 2D array to store the value.

◆ nf_get_var_3d_cpx_double()

integer function netcdf_inc::nf_get_var_3d_cpx_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
complex (real64), dimension(:,:,:), intent(out)  cvals 
)

Read a 64bit complex valued 3D array.

Netcdf does not support complex types directly. Instead these values are interweaved into a double array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]cvalsComplex array to store the value.

◆ nf_get_var_3d_cpx_real()

integer function netcdf_inc::nf_get_var_3d_cpx_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
complex (real32), dimension(:,:,:), intent(out)  cvals 
)

Read a 32bit complex valued 3D array.

Netcdf does not support complex types directly. Instead these values are interweaved into a real array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]cvalsComplex array to store the value.

◆ nf_get_var_3d_double()

integer function netcdf_inc::nf_get_var_3d_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real (real64), dimension(:,:,:), intent(out)  dvals 
)

Read a double valued 3D array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]dvalsDouble array to store the value.

◆ nf_get_var_3d_int()

integer function netcdf_inc::nf_get_var_3d_int ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:,:,:), intent(out)  ivals 
)

Read an integer valued 3D array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]ivalsInteger array to store the value.

◆ nf_get_var_3d_real()

integer function netcdf_inc::nf_get_var_3d_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real (real32), dimension(:,:,:), intent(out)  rvals 
)

Read a real valued 3D array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]rvalsReal 3D array to store the value.

◆ nf_get_var_cpx_double()

integer function netcdf_inc::nf_get_var_cpx_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
complex (real64), intent(out)  cvals 
)

Read a 64bit complex value.

Netcdf does not support complex types directly. Instead these values are interweaved into a real array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]cvalsComplex to store the value.

◆ nf_get_var_cpx_real()

integer function netcdf_inc::nf_get_var_cpx_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
complex (real32), intent(out)  cvals 
)

Read a 32bit complex value.

Netcdf does not support complex types directly. Instead these values are interweaved into a real array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]cvalsComplex to store the value.

◆ nf_get_var_double()

integer function netcdf_inc::nf_get_var_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real (real64), intent(out)  dvals 
)

Read a double value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]dvalsDouble to store the value.

◆ nf_get_var_int()

integer function netcdf_inc::nf_get_var_int ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, intent(out)  ivals 
)

Read an integer value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]ivalsInteger to store the value.

◆ nf_get_var_real()

integer function netcdf_inc::nf_get_var_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real (real32), intent(out)  rvals 
)

Read a real value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]rvalsReal to store the value.

◆ nf_get_var_text()

integer function netcdf_inc::nf_get_var_text ( integer, intent(in)  ncid,
integer, intent(in)  varid,
character (len=*), intent(out)  text 
)

Read a text value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]textString to store the value.

◆ nf_get_vara_text()

integer function netcdf_inc::nf_get_vara_text ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  start,
integer, dimension(:), intent(in)  count,
character (len=*), intent(out)  text 
)

Read a text valued array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]startStarting index of the string array.
[in]countNumber of elements to count.
[out]textString to store the value.

◆ nf_inq_dim()

integer function netcdf_inc::nf_inq_dim ( integer, intent(in)  ncid,
integer, intent(in)  dimid,
character (len=*), intent(out), optional  name,
integer, intent(out), optional  length 
)

Inquire a dimension name or length.

Parameters
[in]ncidNetcdf file id.
[in]dimidDimension id.
[out]nameName of the dimension.
[out]lengthLength of the dimension.

◆ nf_inq_dimlen()

integer function netcdf_inc::nf_inq_dimlen ( integer, intent(in)  ncid,
integer, intent(in)  dimid,
integer, intent(out)  length 
)

Inquire a dimension length.

Parameters
[in]ncidNetcdf file id.
[in]dimidDimension id.
[out]lengthLength of the dimension.

◆ nf_inq_var()

integer function netcdf_inc::nf_inq_var ( integer, intent(in)  ncid,
integer, intent(in)  varid,
character (len=*), intent(out), optional  name,
integer, intent(out), optional  xtype,
integer, intent(out), optional  ndims,
integer, dimension(:), intent(out), optional  dimids,
integer, intent(out), optional  natts 
)

Inquire a variable.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]nameVariable id.
[out]xtypeVariable type.
[out]ndimsNumber of dimensions.
[out]dimidsDimension ids.
[out]nattsNumber of attributes.

◆ nf_put_att_double()

integer function netcdf_inc::nf_put_att_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
character (len=*), intent(in)  name,
integer, intent(in)  xtype,
integer, intent(in)  length,
real (real64), dimension(:), intent(in)  dvals 
)

Put an double attribute.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]nameName of the atribute.
[in]xtypeType of the value. This is not used.
[in]lengthLength of the real array.
[in]dvalsReal values to asign to the attribute.

◆ nf_put_att_int()

integer function netcdf_inc::nf_put_att_int ( integer, intent(in)  ncid,
integer, intent(in)  varid,
character (len=*), intent(in)  name,
integer, intent(in)  xtype,
integer, intent(in)  length,
integer, dimension(:), intent(in)  ivals 
)

Put an integer attribute.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]nameName of the atribute.
[in]xtypeType of the value. This is not used.
[in]lengthLength of the integer array.
[in]ivalsInteger values to asign to the attribute.

◆ nf_put_att_real()

integer function netcdf_inc::nf_put_att_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
character (len=*), intent(in)  name,
integer, intent(in)  xtype,
integer, intent(in)  length,
real (real32), dimension(:), intent(in)  rvals 
)

Put an real attribute.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]nameName of the atribute.
[in]xtypeType of the value. This is not used.
[in]lengthLength of the real array.
[in]rvalsReal values to asign to the attribute.

◆ nf_put_att_text()

integer function netcdf_inc::nf_put_att_text ( integer, intent(in)  ncid,
integer, intent(in)  varid,
character (len=*), intent(in)  name,
integer, intent(in)  length,
character (len=*), intent(in)  text 
)

Put an text attribute.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]nameName of the atribute.
[in]lengthLength of the real array.
[in]textString value to asign to the attribute.

◆ nf_put_var_1d_cpx_double()

integer function netcdf_inc::nf_put_var_1d_cpx_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
complex (real64), dimension(:), intent(in)  cvals 
)

Write a 64bit complex valued array.

Netcdf does not support complex types directly. Instead these values are interweaved into a double array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]cvalsComplex value to write.

◆ nf_put_var_1d_cpx_real()

integer function netcdf_inc::nf_put_var_1d_cpx_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
complex (real32), dimension(:), intent(in)  cvals 
)

Write a 32bit complex valued array.

Netcdf does not support complex types directly. Instead these values are interweaved into a real array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]cvalsComplex value to write.

◆ nf_put_var_1d_double()

integer function netcdf_inc::nf_put_var_1d_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real (real64), dimension(:), intent(in)  dvals 
)

Write a double valued array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]dvalsDouble value to write.

◆ nf_put_var_1d_int()

integer function netcdf_inc::nf_put_var_1d_int ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  ivals 
)

Write an integer valued array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]ivalsInteger value to write.

◆ nf_put_var_1d_real()

integer function netcdf_inc::nf_put_var_1d_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real (real32), dimension(:), intent(in)  rvals 
)

Write a real valued array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]rvalsReal value to write.

◆ nf_put_var_2d_cpx_double()

integer function netcdf_inc::nf_put_var_2d_cpx_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
complex (real64), dimension(:,:), intent(in)  cvals 
)

Write a 64bit complex valued 2D array.

Netcdf does not support complex types directly. Instead these values are interweaved into a double array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]cvalsComplex value to write.

◆ nf_put_var_2d_cpx_real()

integer function netcdf_inc::nf_put_var_2d_cpx_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
complex (real32), dimension(:,:), intent(in)  cvals 
)

Write a 32bit complex valued 2D array.

Netcdf does not support complex types directly. Instead these values are interweaved into a real array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]cvalsComplex value to write.

◆ nf_put_var_2d_double()

integer function netcdf_inc::nf_put_var_2d_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real (real64), dimension(:,:), intent(in)  dvals 
)

Read a double valued 2D array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]dvalsDouble value to write.

◆ nf_put_var_2d_int()

integer function netcdf_inc::nf_put_var_2d_int ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:,:), intent(in)  ivals 
)

Write an integer valued 2D array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]ivalsInteger value to write.

◆ nf_put_var_2d_real()

integer function netcdf_inc::nf_put_var_2d_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real (real32), dimension(:,:), intent(in)  rvals 
)

Read a real valued 2D array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]rvalsReal value to write.

◆ nf_put_var_3d_cpx_double()

integer function netcdf_inc::nf_put_var_3d_cpx_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
complex (real64), dimension(:,:,:), intent(in)  cvals 
)

Write a 64bit complex valued 3D array.

Netcdf does not support complex types directly. Instead these values are interweaved into a double array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]cvalsComplex value to write.

◆ nf_put_var_3d_cpx_real()

integer function netcdf_inc::nf_put_var_3d_cpx_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
complex (real32), dimension(:,:,:), intent(in)  cvals 
)

Write a 32bit complex valued 3D array.

Netcdf does not support complex types directly. Instead these values are interweaved into a real array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]cvalsComplex value to write.

◆ nf_put_var_3d_double()

integer function netcdf_inc::nf_put_var_3d_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real (real64), dimension(:,:,:), intent(in)  dvals 
)

Write a double valued 3D array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]dvalsDouble value to write.

◆ nf_put_var_3d_int()

integer function netcdf_inc::nf_put_var_3d_int ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:,:,:), intent(in)  ivals 
)

Write an integer valued 3D array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]ivalsInteger value to write.

◆ nf_put_var_3d_real()

integer function netcdf_inc::nf_put_var_3d_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real (real32), dimension(:,:,:), intent(in)  rvals 
)

Write a real valued 3D array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]rvalsReal value to write.

◆ nf_put_var_cpx_double()

integer function netcdf_inc::nf_put_var_cpx_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
complex (real64), intent(in)  cvals 
)

Write a 64bit complex value.

Netcdf does not support complex types directly. Instead these values are interweaved into a real array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]cvalsComplex value to write.

◆ nf_put_var_cpx_real()

integer function netcdf_inc::nf_put_var_cpx_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
complex (real32), intent(in)  cvals 
)

Write a 32bit complex value.

Netcdf does not support complex types directly. Instead these values are interweaved into a real array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[out]cvalsComplex value to write.

◆ nf_put_var_double()

integer function netcdf_inc::nf_put_var_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real (real64), intent(in)  dvals 
)

Write a double value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]dvalsDouble value to write.

◆ nf_put_var_int()

integer function netcdf_inc::nf_put_var_int ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, intent(in)  ivals 
)

Write an integer value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]ivalsInteger value to write.

◆ nf_put_var_real()

integer function netcdf_inc::nf_put_var_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real (real32), intent(in)  rvals 
)

Write a real value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]rvalsReal value to write.

◆ nf_put_var_text()

integer function netcdf_inc::nf_put_var_text ( integer, intent(in)  ncid,
integer, intent(in)  varid,
character (len=*), intent(in)  text 
)

Write a text value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]textString value to write.

◆ nf_put_vara_2d_cpx_double()

integer function netcdf_inc::nf_put_vara_2d_cpx_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  start,
integer, dimension(:), intent(in)  count,
complex (real64), dimension(:,:), intent(in)  cvals 
)

Write a complex double value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]startStarting indices.
[in]countNumber of elements to count.
[in]cvalsComplex double value to write.

◆ nf_put_vara_2d_cpx_real()

integer function netcdf_inc::nf_put_vara_2d_cpx_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  start,
integer, dimension(:), intent(in)  count,
complex (real32), dimension(:,:), intent(in)  cvals 
)

Write a complex real value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]startStarting indices.
[in]countNumber of elements to count.
[in]cvalsReal value to write.

◆ nf_put_vara_2d_double()

integer function netcdf_inc::nf_put_vara_2d_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  start,
integer, dimension(:), intent(in)  count,
real (real64), dimension(:,:), intent(in)  dvals 
)

Write a double value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]startStarting indices.
[in]countNumber of elements to count.
[in]dvalsDouble value to write.

◆ nf_put_vara_2d_real()

integer function netcdf_inc::nf_put_vara_2d_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  start,
integer, dimension(:), intent(in)  count,
real (real32), dimension(:,:), intent(in)  rvals 
)

Write a real value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]startStarting indices.
[in]countNumber of elements to count.
[in]rvalsReal value to write.

◆ nf_put_vara_3d_cpx_double()

integer function netcdf_inc::nf_put_vara_3d_cpx_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  start,
integer, dimension(:), intent(in)  count,
complex (real64), dimension(:,:,:), intent(in)  cvals 
)

Write a double value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]startStarting indices.
[in]countNumber of elements to count.
[in]cvalsComplex double value to write.

◆ nf_put_vara_3d_cpx_real()

integer function netcdf_inc::nf_put_vara_3d_cpx_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  start,
integer, dimension(:), intent(in)  count,
complex (real32), dimension(:,:,:), intent(in)  cvals 
)

Write a complex real value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]startStarting indices.
[in]countNumber of elements to count.
[in]cvalsReal value to write.

◆ nf_put_vara_3d_double()

integer function netcdf_inc::nf_put_vara_3d_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  start,
integer, dimension(:), intent(in)  count,
real (real64), dimension(:,:,:), intent(in)  dvals 
)

Write a double value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]startStarting indices.
[in]countNumber of elements to count.
[in]dvalsReal value to write.

◆ nf_put_vara_3d_int()

integer function netcdf_inc::nf_put_vara_3d_int ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  start,
integer, dimension(:), intent(in)  count,
integer, dimension(:,:,:), intent(in)  ivals 
)

Write a integer value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]startStarting indices.
[in]countNumber of elements to count.
[in]ivalsDouble value to write.

◆ nf_put_vara_3d_real()

integer function netcdf_inc::nf_put_vara_3d_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  start,
integer, dimension(:), intent(in)  count,
real (real32), dimension(:,:,:), intent(in)  rvals 
)

Write a real value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]startStarting indices.
[in]countNumber of elements to count.
[in]rvalsReal value to write.

◆ nf_put_vara_cpx_double()

integer function netcdf_inc::nf_put_vara_cpx_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  start,
integer, dimension(:), intent(in)  count,
complex (real64), dimension(:), intent(in)  cvals 
)

Write a complex double value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]startStarting indices.
[in]countNumber of elements to count.
[in]cvalsComplex double value to write.

◆ nf_put_vara_cpx_real()

integer function netcdf_inc::nf_put_vara_cpx_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  start,
integer, dimension(:), intent(in)  count,
complex (real32), dimension(:), intent(in)  cvals 
)

Write a complex real value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]startStarting indices.
[in]countNumber of elements to count.
[in]cvalsReal value to write.

◆ nf_put_vara_double()

integer function netcdf_inc::nf_put_vara_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  start,
integer, dimension(:), intent(in)  count,
real (real64), dimension(:), intent(in)  dvals 
)

Write a double value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]startStarting indices.
[in]countNumber of elements to count.
[in]dvalsDouble value to write.

◆ nf_put_vara_int()

integer function netcdf_inc::nf_put_vara_int ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  start,
integer, dimension(:), intent(in)  count,
integer, dimension(:,:), intent(in)  ivals 
)

Write a integer value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]startStarting indices.
[in]countNumber of elements to count.
[in]ivalsDouble value to write.

◆ nf_put_vara_real()

integer function netcdf_inc::nf_put_vara_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  start,
integer, dimension(:), intent(in)  count,
real (real32), dimension(:), intent(in)  rvals 
)

Write a real value.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]startStarting indices.
[in]countNumber of elements to count.
[in]rvalsReal value to write.

◆ nf_put_vara_text()

integer function netcdf_inc::nf_put_vara_text ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  start,
integer, dimension(:), intent(in)  count,
character (len=*), dimension(:), intent(in)  text 
)

Write a text valued array.

Parameters
[in]ncidNetcdf file id.
[in]varidVariable id.
[in]startStarting index of the string array.
[in]countNumber of elements to count.
[in]textString value to write.