Skip to main content

State and Transition Integrated Economic-Environmental Accounting

Project description

STRATEGICC

State and Transition Integrated Economic-Environmental Accounting

A Python package implementing spatially explicit State-and-Transition Simulation Models (Daniel et al. 2016) integrated with the UN's System of Environmental-Economic Accounting — Ecosystem Accounting (SEEA-EA).

Install

pip install git+https://github.com/Shlhnj/strategicc.git

Quick start

import strategicc.config as cfg
from strategicc import StrategiccEngine, outputs
from strategicc.accounting import SEEAAccount, save_all_accounts

# Load everything from a single manifest file
cfg.load_manifest("RunManifest.txt")

engine = StrategiccEngine.from_config()
engine.load()
engine.run()

# Aggregate and account
summary_dir = engine.out_dir / "summary"
area_df, trans_df = outputs.build_summary_tables(engine.iter_dirs, summary_dir)
modal_maps = outputs.aggregate_spatial(engine.iter_dirs, engine.start_year,
    engine.n_timesteps, engine.src_tags, summary_dir)
area_modal_df = outputs.modal_to_area_table(modal_maps, engine.classes,
    engine.px_area, engine.area_unit)

acct = SEEAAccount(area_modal_df, trans_df, engine.ecosystem_services,
    engine.classes, engine.px_area)
save_all_accounts(acct, engine.out_dir / "seea")

Documentation

Full documentation lives in docs/:

Testing

pip install -e ".[dev]"
pytest tests/

162 tests, all passing.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

strategicc-3.5.2.tar.gz (91.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

strategicc-3.5.2-py3-none-any.whl (87.0 kB view details)

Uploaded Python 3

File details

Details for the file strategicc-3.5.2.tar.gz.

File metadata

  • Download URL: strategicc-3.5.2.tar.gz
  • Upload date:
  • Size: 91.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for strategicc-3.5.2.tar.gz
Algorithm Hash digest
SHA256 38447662f3e7b98dfdc862a0038cfb829b56412b6152b02560411762d3575427
MD5 07bfbb0ea6fc52129754f96ce9979edc
BLAKE2b-256 50c06161dd410a02fad4049cebea5effa30f6642767f9f1343fdf6c5768dafcd

See more details on using hashes here.

Provenance

The following attestation bundles were made for strategicc-3.5.2.tar.gz:

Publisher: python-publish.yml on Shlhnj/strategicc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file strategicc-3.5.2-py3-none-any.whl.

File metadata

  • Download URL: strategicc-3.5.2-py3-none-any.whl
  • Upload date:
  • Size: 87.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for strategicc-3.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fe8ac1d2530b785bda60fed456c6f227b74abbe59facd661cea9ec08f9e1c531
MD5 84551f5e83ed5b81958b2c3b978f7252
BLAKE2b-256 d0aa1c48f3d851fdb390fd43d1bd73b6257e891e5c42ab09e7315111e4b0e71c

See more details on using hashes here.

Provenance

The following attestation bundles were made for strategicc-3.5.2-py3-none-any.whl:

Publisher: python-publish.yml on Shlhnj/strategicc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page