EcoTile

from acron.vegetation import EcoTile
class EcoTile

Bases:

Bases: TypedReferenceCount

The plants one simulated tile (or region) ended with, and the light that reaches its ground.

A plant is FLOATS floats of `get_table()`: x, y, z (the ground under it), species index, age (years), height (m), crown radius (m), health 0..1 (its recent vigour: light and site), light 0..1 (the open sky’s light reaching its crown), layer (0 tree, 1 understory). Plants are in cell order (rows south to north, west to east; a cell’s tree before its shrub).

The ground light is one value per cell (rows south to north): the light left under every crown over the cell’s centre, 0..1 – what ground cover gets (`GrassField` reads it through `Ecosystem::get_ground_light`).

Inheritance diagram

digraph inheritance462711353d { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "EcoTile" [URL="acron.vegetation.EcoTile.html#acron.vegetation.EcoTile",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedReferenceCount" -> "EcoTile" [arrowsize=0.75,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedReferenceCount" [URL="acron.core.TypedReferenceCount.html#acron.core.TypedReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; }
__init__()
get_ages()
get_cell_ground_light()

The ground light of cell (ci, cj) of the tile (0-based, from its south- west corner).

get_cell_size()
get_cells_x()
get_cells_y()
static get_class_type()
get_ground_grid()

The light reaching the ground at each cell’s centre, rows south to north.

get_ground_light()

The ground light at (x, y), bilinear between cell centres, clamped to the tile.

get_healths()
get_heights()
get_max()
get_min()
get_num_plants()
get_plant_age()
get_plant_crown()
get_plant_health()
get_plant_height()
get_plant_light()
get_plant_pos()
get_plant_species()
get_positions()

One species’ plants as x, y, z triples (the ground under each stem): what acron.trees’ Forest.plant takes.

get_seconds()
get_species_count()

How many plants of a species the tile has.

get_table()

Every plant, FLOATS floats each (see the class description).

get_tile_x()
get_tile_y()
is_plant_understory()
property num_plants → int
property seconds → float