Writers module
Module tool: write data to either files or strings in various formats.
- fmatrix_as_str(array: ndarray, array_name: str) str[source]
Convert 2D array into its equivalent representation in Fortran code.
- Parameters:
array (2D array) – 2D array with the values to write as a Fortran matrix with yaeos precision variable pr
array_name (str) – Name that the variable should have in the Fortran side
- f3dmatrix_as_str(array: ndarray, array_name: str) str[source]
Convert 3D array into its equivalent representation in Fortran code.
- Parameters:
array (3D array) – 3D array with the values to write as a Fortran matrix with yaeos precision variable pr
array_name (str) – Name that the variable should have in the Fortran side
- f1darray_as_str(array: ndarray, array_name: str) str[source]
Convert 1D array into its equivalent representation in Fortran code.
- Parameters:
array (1D array) – 1D array with the values to write as a Fortran vector with yaeos precision variable pr
array_name (str) – Name that the variable should have in the Fortran side