Skip to content
Skip to Content

dwelling_cell_m

Key of the [spatial] table. Qualified name: spatial.dwelling_cell_m

Side of the cubic cells of the dwelling grid, in metres, from 1 to 12760000; query results are the same for every cell size, only their speed changes.

Type
integer
Unit
metreLength in metres (displacement radius of cluster coordinates, AD-17)
Default
1000used when the key is absent
Valid range
1 to 12760000whole numbers
Set in
[spatial]optional table
Since
0.1engine 0.1.0

Description

dwelling_cell_m is optional. When it is absent, the engine uses 1000, and writes that value into effective.toml in the output folder. The value is an integer from 1 to 12760000; outside that range the engine stops with E1013. Unit: metre (length in metres (displacement radius of cluster coordinates, AD-17)).

Example

scenario.toml
# scenario.toml

[scenario]
name = "tracer"
seed = 20180101

[time]
start = 2018-01-01
end = 2019-01-01

[spatial]
dwelling_cell_m = 1000  # this page

[plugins."test/ticker"]

Run it with the engine built from source: cohortix run scenario.toml --output output/example.

When the key is misspelled

Written dewlling_cell_m, the key is refused before anything runs with the nearest accepted name:

cohortix run scenario.toml
error[E1022]: Unknown key `dewlling_cell_m` in [spatial]; did you mean `dwelling_cell_m`?
  --> scenario.toml:12:1
  = fix: Rename `dewlling_cell_m` to `dwelling_cell_m`, or remove it; the accepted keys of [spatial] are "dwelling_cell_m", "min_precision_m".

Errors that name this key

  • E1008: dwelling_cell_m must be …, but it is ….
  • E1013: dwelling_cell_m is …, outside the allowed range … to ….
  • E1022: Unknown key … in [spatial]; did you mean …?

See also

  • [spatial]Spatial service: the indexes of positioned places and dwellings (AD-47).
  • min_precision_mPrecision limit of positions by collective type, in metres (`"c

Generated from crates/cohortix-kernel/src/scenario/config.rs. Do not edit. This page (key spatial.dwelling_cell_m) is built from the engine sources at every documentation build. To change it, edit its ConfigKey in kernel_groups() and its one-line comment config.key.spatial.dwelling_cell_m in schemas/messages/en.toml and open a pull request.

On this page

You are reading the docs for 0.1. Keys can change between versions: use the version that matches cohortix --version.