SCORPIO  1.7.0
Functions/Subroutines
copy_pio_var

Copy variables between two files. More...

Functions/Subroutines

subroutine pio_nf_utils::copy_pio_var01d (ifile, ofile, ivdesc, ovdesc, varsz, strlength, ierr)
 Copy a 0d/scalar/character string or a 1d variable/array_of_strings from one file to another. More...
 
subroutine pio_nf_utils::copy_pio_var2d (ifile, ofile, ivdesc, ovdesc, varsz, ierr)
 Copy a 2d variable from one file to another. More...
 

Detailed Description

Copy variables between two files.

Function/Subroutine Documentation

◆ copy_pio_var01d()

subroutine pio_nf_utils::copy_pio_var01d ( type(file_desc_t), intent(in)  ifile,
type(file_desc_t), intent(in)  ofile,
type(var_desc_t), intent(in)  ivdesc,
type(var_desc_t), intent(in)  ovdesc,
integer, intent(in)  varsz,
integer, intent(in), optional  strlength,
integer, intent(out), optional  ierr 
)

Copy a 0d/scalar/character string or a 1d variable/array_of_strings from one file to another.

Parameters
[in]ifileThe file handle of the input file. File descriptor structure. This structure holds information associated with each open file
[in]ofileThe file handle of the output file. File descriptor structure. This structure holds information associated with each open file
[in]ivdescThe descriptor of the input variable (in the input file).

Variable description structure.

Parameters
[in]ovdescThe descriptor of the output variable (in the output file).

Variable description structure.

Parameters
[in]varszThe size of the variable (or the length of each string)
[in]strlength(Optional) The size/length of the character string array, if the variable being copied is a 1d string array
[out]ierr(Optional) The return value.

◆ copy_pio_var2d()

subroutine pio_nf_utils::copy_pio_var2d ( type(file_desc_t ifile,
type(file_desc_t ofile,
type(var_desc_t ivdesc,
type(var_desc_t ovdesc,
integer, dimension(:), intent(in)  varsz,
integer, intent(out), optional  ierr 
)

Copy a 2d variable from one file to another.

Parameters
[in]ifileThe file handle of the input file. File descriptor structure. This structure holds information associated with each open file
[in]ofileThe file handle of the output file. File descriptor structure. This structure holds information associated with each open file
[in]ivdescThe descriptor of the input variable (in the input file).

Variable description structure.

Parameters
[in]ovdescThe descriptor of the output variable (in the output file).

Variable description structure.

Parameters
[in]varszThe variable dimension sizes
[in]strlength(Optional) The length of the string, if the variable being copied is a string
[out]ierr(Optional) The return value.