flownet.utils.write_grdecl_file module
- flownet.utils.write_grdecl_file.write_grdecl_file(df_prop: pandas.core.frame.DataFrame, column_name: str, filename: Optional[Union[str, pathlib.Path]] = None, int_type: bool = False) Optional[str]
Writes a list of values as a Flow grid file. The values need to be ordered in the “Flow way” (e.g. looping over X then Y then Z).
- Parameters
df_prop – A dataframe with as many rows as there are grid cells.
column_name – Column in the dataframe to use as values.
filename – Output filename to write to (e.g. “poro.grdecl”). If not given, return output as string.
int_type – If the output file is to use integers (if False, save as floats).
- Returns
Output as string or None when output is written to a file