PIO  1.7.1
 All Classes Files Functions Groups Pages
Functions/Subroutines
PIO_put_var

Writes netcdf metadata to a file. More...

Functions/Subroutines

integer function pionfput_mod::put_var1_text (File, varid, index, ival)
 Writes an netcdf attribute to a file. More...
 
integer function pionfput_mod::put_var1_{type} (File, varid, index, ival)
 Writes an netcdf attribute to a file. More...
 
integer function pionfput_mod::put_var1_vdesc_{type} (File, vardesc, start, ival)
 Writes an netcdf attribute to a file. More...
 
integer function pionfput_mod::put_var_{dims}d_text (File, varid, ival)
 Writes an netcdf attribute to a file. More...
 
integer function pionfput_mod::put_var_{dims}d_{type} (File, varid, ival)
 Writes an netcdf attribute to a file. More...
 
integer function pionfput_mod::put_var_0d_{type} (File, varid, ival)
 Writes an netcdf attribute to a file. More...
 
integer function pionfput_mod::put_var_vdesc_{dims}d_{type} (File, vardesc, ival)
 Writes an netcdf attribute to a file. More...
 
integer function pionfput_mod::put_vara_{dims}d_text (File, varid, start, count, ival)
 Writes an netcdf attribute to a file. More...
 
integer function pionfput_mod::put_vara_{dims}d_{type} (File, varid, start, count, ival)
 Writes an netcdf attribute to a file. More...
 
integer function pionfput_mod::put_vara_vdesc_{dims}d_{type} (File, vardesc, start, count, ival)
 Writes an netcdf variable to a file. More...
 

Detailed Description

Writes netcdf metadata to a file.

The put_var interface is provided as a simplified interface to write variables to a netcdf format file.

Warning
Although this is a collective call the variable is written from the root IO task, no consistancy check is made with data passed on other tasks.

Function/Subroutine Documentation

integer function pionfput_mod::put_var1_text ( type (file_desc_t), intent(inout)  File,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  index,
character(len=*), intent(in)  ival 
)

Writes an netcdf attribute to a file.

Parameters
File\copybrieffile_desc_t
Parameters
varid: The netcdf variable identifier
index:
ival: The value for the netcdf metadata
Return values
ierr\copybrieferror_return
integer function pionfput_mod::put_var1_vdesc_{type} ( type (file_desc_t), intent(inout)  File,
type(var_desc_t), intent(in)  vardesc,
integer, dimension(:), intent(in)  start,
intent(in)  ival 
)

Writes an netcdf attribute to a file.

Parameters
File\copybrieffile_desc_t
Parameters
vardesc\copybriefvar_desc_t
Parameters
start:
ival: The value for the netcdf metadata
Return values
ierr\copybrieferror_return
integer function pionfput_mod::put_var1_{type} ( type (file_desc_t), intent(inout)  File,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  index,
intent(in)  ival 
)

Writes an netcdf attribute to a file.

Parameters
File\copybrieffile_desc_t
Parameters
varid: The netcdf variable identifier
index:
ival: The value for the netcdf metadata
Return values
ierr\copybrieferror_return
integer function pionfput_mod::put_var_0d_{type} ( type (file_desc_t), intent(inout)  File,
integer, intent(in)  varid,
intent(in)  ival 
)

Writes an netcdf attribute to a file.

Parameters
File\copybrieffile_desc_t
Parameters
File: A file handle returne from PIO_openfile or PIO_createfile.
varid: The netcdf variable identifier
ival: The value for the netcdf metadata
Return values
ierr\copybrieferror_return
integer function pionfput_mod::put_var_vdesc_{dims}d_{type} ( type (file_desc_t), intent(inout)  File,
type(var_desc_t), intent(in)  vardesc,
  ival 
)

Writes an netcdf attribute to a file.

Parameters
File\copybrieffile_desc_t
Parameters
vardesc\copybriefvar_desc_t
Parameters
ival: The value for the netcdf metadata
Return values
ierr\copybrieferror_return
integer function pionfput_mod::put_var_{dims}d_text ( type (file_desc_t), intent(inout)  File,
integer, intent(in)  varid,
  ival 
)

Writes an netcdf attribute to a file.

Parameters
File\copybrieffile_desc_t
Parameters
File: A file handle returne from PIO_openfile or PIO_createfile.
varid: The netcdf variable identifier
ival: The value for the netcdf metadata
Return values
ierr\copybrieferror_return
integer function pionfput_mod::put_var_{dims}d_{type} ( type (file_desc_t), intent(inout)  File,
integer, intent(in)  varid,
  ival 
)

Writes an netcdf attribute to a file.

Parameters
File\copybrieffile_desc_t
Parameters
File: A file handle returne from PIO_openfile or PIO_createfile.
varid: The netcdf variable identifier
ival: The value for the netcdf metadata
Return values
ierr\copybrieferror_return
integer function pionfput_mod::put_vara_vdesc_{dims}d_{type} ( type (file_desc_t), intent(inout)  File,
type(var_desc_t), intent(in)  vardesc,
integer, dimension(:), intent(in)  start,
integer, dimension(:), intent(in)  count,
  ival 
)

Writes an netcdf variable to a file.

Parameters
File\copybrieffile_desc_t
Parameters
vardesc\copybriefvar_desc_t
Parameters
start:
count:
ival: The value for the netcdf metadata
Return values
ierr\copybrieferror_return
integer function pionfput_mod::put_vara_{dims}d_text ( type (file_desc_t), intent(inout)  File,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  start,
integer, dimension(:), intent(in)  count,
  ival 
)

Writes an netcdf attribute to a file.

Parameters
File\copybrieffile_desc_t
Parameters
varid: The netcdf variable identifier
start:
count:
ival: The value for the netcdf metadata
Return values
ierr\copybrieferror_return
integer function pionfput_mod::put_vara_{dims}d_{type} ( type (file_desc_t), intent(inout)  File,
integer, intent(in)  varid,
integer, dimension(:), intent(in)  start,
integer, dimension(:), intent(in)  count,
  ival 
)

Writes an netcdf attribute to a file.

Parameters
File\copybrieffile_desc_t
Parameters
varid: The netcdf variable identifier
start:
count:
ival: The value for the netcdf metadata
Return values
ierr\copybrieferror_return