- imod.formats.ipf.write(path, df, indexcolumn=0, assoc_ext='txt', nodata=1e+20)#
Writes a single IPF file.
path (pathlib.Path or str) – path of the written IPF file. Any associated files are written relative to this path, based on the ID column.
df (pandas.DataFrame) – DataFrame containing the data to write.
indexcolumn (integer) – number of the column containg the paths to the associated (TXT) files. Defaults to a value of 0 (no associated files).
assoc_ext (str) – Extension of the associated files. Defaults to “txt”.
Writes a file.
- Return type: