Copy variables between two files.
More...
|
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...
|
|
Copy variables between two files.
◆ 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] | ifile | The file handle of the input file. File descriptor structure. This structure holds information associated with each open file |
[in] | ofile | The file handle of the output file. File descriptor structure. This structure holds information associated with each open file |
[in] | ivdesc | The descriptor of the input variable (in the input file). |
Variable description structure.
- Parameters
-
[in] | ovdesc | The descriptor of the output variable (in the output file). |
Variable description structure.
- Parameters
-
[in] | varsz | The 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] | ifile | The file handle of the input file. File descriptor structure. This structure holds information associated with each open file |
[in] | ofile | The file handle of the output file. File descriptor structure. This structure holds information associated with each open file |
[in] | ivdesc | The descriptor of the input variable (in the input file). |
Variable description structure.
- Parameters
-
[in] | ovdesc | The descriptor of the output variable (in the output file). |
Variable description structure.
- Parameters
-
[in] | varsz | The 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. |