hydromt_fiat.components.OutputGridComponent#

class hydromt_fiat.components.OutputGridComponent(model: Model)[source]#

Model geometry results component.

Parameters:

model (Model) – HydroMT model instance (FIATModel).

Attributes

bounds

Return the bounding box of the data.

crs

Return the data CRS.

data

Return the data.

data_catalog

Return the data catalog of the model this component is associated with.

model

Return the model object this component is associated with.

name_in_model

Find the name of the component in the parent model components.

region

Provide access to the underlying GeoDataFrame data of the model region.

res

Returns the resolution of the model grid.

root

Return the root of the model this component is associated with.

transform

Returns spatial transform of the model grid.

Methods

clear()

Clear the gridded data.

clip(geom[, buffer, inplace])

Clip the gridded data.

close()

Clean up all open datasets.

finish_write()

Finish the write functionality after cleanup was called for all components in the model.

read([filename])

Read the model output grid.

reproject(crs[, inplace])

Reproject the gridded data.

set(data[, name])

Set gridded data in the component.

test_equal(other)

Test if two components are equal.

write()

Write method.

write_region([filename, to_wgs84, ...])

Write the model region to file.