Metadata-Version: 2.4
Name: strategicc
Version: 3.5.2
Summary: State and Transition Integrated Economic-Environmental Accounting
Author: Shlhnj
License: MIT License
        
        Copyright (c) 2026 Shlhnj
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/Shlhnj/strategicc
Project-URL: Repository, https://github.com/Shlhnj/strategicc
Project-URL: Issues, https://github.com/Shlhnj/strategicc/issues
Keywords: STSM,land cover,ecosystem accounting,SEEA-EA,landscape ecology,Monte Carlo
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering :: GIS
Classifier: Intended Audience :: Science/Research
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.24
Requires-Dist: pandas>=2.0
Requires-Dist: Pillow>=10.0
Requires-Dist: matplotlib>=3.7
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Provides-Extra: calibration
Requires-Dist: rasterio>=1.3; extra == "calibration"
Dynamic: license-file

# STRATEGICC

**State and Transition Integrated Economic-Environmental Accounting**

A Python package implementing spatially explicit State-and-Transition Simulation Models ([Daniel et al. 2016](https://doi.org/10.1111/2041-210X.12597)) integrated with the UN's System of Environmental-Economic Accounting — Ecosystem Accounting ([SEEA-EA](https://seea.un.org/ecosystem-accounting)).

## Install

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

## Quick start

```python
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/`](docs/index.md):

- **[Installation](docs/installation.md)**
- **[Guide 1 — Simple SEEA-EA from a single raster](docs/guides/01_simple_seea.md)**
- **[Guide 2 — Calibration + Simulation + SEEA-EA](docs/guides/02_calibration_stsm.md)**
- **[Guide 3 — Full pipeline with Stock & Flow](docs/guides/03_stockflow_full.md)**
- **[API Reference](docs/index.md#api-reference)**
- **[RunManifest.txt field reference](docs/manifest_reference.md)**

## Testing

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

162 tests, all passing.
