imod.formats.gen.read#

imod.formats.gen.read(path)[source]#

Read a GEN file to a geopandas GeoDataFrame. The function first tries to read as binary, if this fails, it tries to read the gen file as ASCII.

If certain that a GEN file is ascii or binary, the user is adviced to use the respective functions imod.gen.gen.read_ascii() or imod.gen.gen.read_binary().

Parameters:

path (Union[str, Path])

Returns:

geodataframe

Return type:

gpd.GeoDataFrame