hydromt_sfincs.components.grid.SfincsGrid.read#

SfincsGrid.read(read_components: bool = False) → None[source]#

Read SFINCS binary grid files and save to data attribute. Filenames are taken from the model.config attribute (i.e. input file).

Reads the mask and elevation. Component-owned layers are loaded only when read_components is True, or through component read() methods.

Parameters:

read_components (bool, optional) – Also call read() on the components owning layers here, by default False. Those read their own files, so this matters for layers that are not plain binary maps, such as the bucket netcdf.