imod.formats.ipf.write#

imod.formats.ipf.write(path, df, indexcolumn=0, assoc_ext='txt', nodata=1e+20)[source]#

Writes a single IPF file.

Parameters:
  • 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”.

Returns:

Writes a file.

Return type:

None