Skip to main content

State and Transition Integrated Economic-Environmental Accounting

Project description

strategicc

STRATEGICC: State and Transition Integrated Economic-Environmental Accounting

A python package implementation of State-and-Transition Simulation Model (STSM) framework laid by Daniel et al (2016) (https://doi.org/10.1111/2041-210X.12597), integrated with the System of Economic-Environmental Accounting - Ecosystem Accounting (SEEA-EA) by United Nations (https://seea.un.org/ecosystem-accounting).

Usage

install the package

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

Set Configuration

import strategicc.config as cfg
from pathlib import Path

cfg.LULC_PATH          = Path("2022.tif")
cfg.STATE_CLASSES_CSV  = Path("25062026 State Class.csv")
cfg.TRANSITIONS_CSV    = Path("23062026_stsm_transition_probabilities.csv")
cfg.SPATIAL_MULT_CSV   = Path("27062026 Transition Spatial Multipliers.csv")
cfg.TRANSITION_MULT_CSV= Path("27062026 Transition Multipliers.csv")
cfg.MULT_DIR           = Path("mult_spat/")   #folder for transition spatial multiplier
cfg.OUT_DIR            = Path("strategicc_test") #output folder


cfg.ADJACENCY_STRENGTH   = 2
cfg.START_YEAR           = 2022
cfg.N_TIMESTEPS          = 30
cfg.N_ITERATIONS         = 100    
cfg.RNG_SEED             = 42

cfg.USE_ADJACENCY        = True
cfg.USE_SPATIAL_MULT     = True
cfg.USE_TRANS_MULTIPLIER = True

Diagnose Configuration

from strategicc import STSMEngine

engine = STSMEngine.from_config()
engine.load()
engine.diagnostic()

Run Engine

engine.run()

Show Summary Plot

from strategicc import outputs

summary_dir = engine.out_dir / "summary"

print("Building summary tables...")
area_df, trans_df = outputs.build_summary_tables(engine.iter_dirs, summary_dir)

print("Plotting area envelope...")
outputs.plot_area_envelope(area_df, engine.classes, summary_dir)

print("Plotting transition envelope...")
outputs.plot_transition_envelope(trans_df, summary_dir)

Show plots inline
from IPython.display import Image, display
display(Image(str(summary_dir / "area_envelope.png")))
display(Image(str(summary_dir / "transition_envelope.png")))

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-2.2.0.tar.gz (32.5 kB view details)

Uploaded Source

Built Distribution

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

strategicc-2.2.0-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for strategicc-2.2.0.tar.gz
Algorithm Hash digest
SHA256 42d98d854518daf1644f49c70d1d3936ec918700813a0819f336dc451ab9d2b4
MD5 2fbde79968c7eddef3df0052c0e1ce60
BLAKE2b-256 119eb94be3b1ca99d54a9291c1ee48defc6e0d4c1703505b90c7ec1168b8d2d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for strategicc-2.2.0.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-2.2.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for strategicc-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf5920ccab08585d7fef51beb8090f8a2baf51fc14b3529a0b5673ccbaef10f6
MD5 a9ae22a4d2b2cf0fcea5bb6547f168db
BLAKE2b-256 b4dc3265e6e56afb4952e174840c96d0d6d1adcf06a9c958e71532968e1b2d77

See more details on using hashes here.

Provenance

The following attestation bundles were made for strategicc-2.2.0-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