swn.modflow.SwnMf6.write_diversions#

SwnMf6.write_diversions(fname: str)#

Write DIVERSIONS file for MODFLOW 6 SFR.

File can be used in a OPEN/CLOSE statement for a DIVERSIONS block, which can be set with diversions={"filename": "diversions.dat"} in set_sfr_obj().

This method is based on diversions_frame().

Parameters:
fnamestr

Output file name.

See also

swn.file.read_formatted_frame

Read formatted file as a DataFrame.