hydromt_sfincs.components.quadtree.SfincsQuadtreeGrid.create#
- SfincsQuadtreeGrid.create(x0: float, y0: float, nmax: int, mmax: int, dx: float, dy: float, rotation: float, epsg: int, refinement_polygons: GeoDataFrame | None = None, elevation_list: List[List[dict]] = None, bathymetry_database: object | None = None)[source]#
Build the Quadtree grid.
- Parameters:
x0 (
float) – x-coordinate of the lower left corner of the grid.y0 (
float) – y-coordinate of the lower left corner of the grid.nmax (
int) – Maximum number of cells in x-direction.mmax (
int) – Maximum number of cells in y-direction.dx (
float) – Cell size in x-direction, needs to be positive.dy (
float) – Cell size in y-direction, needs to be positive.rotation (
float) – Rotation angle of the grid in degrees.epsg (
int) – EPSG code of the coordinate reference system.refinement_polygons (
gpd.GeoDataFrame, optional) – GeoDataFrame with polygons that define areas where the grid should be refined.elevation_list (
List[List[dict]], optional) – List of lists of dictionaries with variable names and dataset names to use for depthbathymetry_database (
object, optional) – Bathymetry database object.