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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file strategicc-3.2.0.tar.gz.
File metadata
- Download URL: strategicc-3.2.0.tar.gz
- Upload date:
- Size: 81.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45fbedfe3168d251d719b3be5ac04628b789f6aaf9b983a8b1419ae3ebc6d5a1
|
|
| MD5 |
7700c6043e84fb6f26ee303cae6d9841
|
|
| BLAKE2b-256 |
06f033e16f3de1a5705792d8555b78612080f96e419c1268a258365d3fb9146a
|
Provenance
The following attestation bundles were made for strategicc-3.2.0.tar.gz:
Publisher:
python-publish.yml on Shlhnj/strategicc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
strategicc-3.2.0.tar.gz -
Subject digest:
45fbedfe3168d251d719b3be5ac04628b789f6aaf9b983a8b1419ae3ebc6d5a1 - Sigstore transparency entry: 2020428410
- Sigstore integration time:
-
Permalink:
Shlhnj/strategicc@382bd1fbc47a13094c2bb4fa5af684d14cb0c690 -
Branch / Tag:
- Owner: https://github.com/Shlhnj
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@382bd1fbc47a13094c2bb4fa5af684d14cb0c690 -
Trigger Event:
release
-
Statement type:
File details
Details for the file strategicc-3.2.0-py3-none-any.whl.
File metadata
- Download URL: strategicc-3.2.0-py3-none-any.whl
- Upload date:
- Size: 78.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b525fdbee68e9f9dd8caaa275a3d306ce4e912ec722ace3e4dfccde0a34e6ee9
|
|
| MD5 |
36ec29856b6959a95f616c5aa423738a
|
|
| BLAKE2b-256 |
332982b9c68ff5b66bb4a98c5ed856576a6479b1961c1c6f1038655605c57a9c
|
Provenance
The following attestation bundles were made for strategicc-3.2.0-py3-none-any.whl:
Publisher:
python-publish.yml on Shlhnj/strategicc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
strategicc-3.2.0-py3-none-any.whl -
Subject digest:
b525fdbee68e9f9dd8caaa275a3d306ce4e912ec722ace3e4dfccde0a34e6ee9 - Sigstore transparency entry: 2020428503
- Sigstore integration time:
-
Permalink:
Shlhnj/strategicc@382bd1fbc47a13094c2bb4fa5af684d14cb0c690 -
Branch / Tag:
- Owner: https://github.com/Shlhnj
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@382bd1fbc47a13094c2bb4fa5af684d14cb0c690 -
Trigger Event:
release
-
Statement type: