MIT License

Copyright (c) 2026 Samir Baladi

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.

---

## Scope of This License

The MIT License above applies to:

- All source code in this repository, including
  `DATA/raw/fetch_worldbank_data.py` and any auxiliary scripts.
- The Python package artifacts under `PUBLICATION/dist/`
  (`morocco-water-scarcity-1.0.0-py3-none-any.whl` and `.tar.gz`).
- Configuration files such as `PUBLICATION/netlify.toml`,
  `PUBLICATION/ste_website_steering.json`, and `requirements.txt`.
- Build and infrastructure files (`VERSION`, `.gitignore`).

## Separate Licensing for Manuscript, Figures, and Documentation

The following are licensed under **Creative Commons Attribution 4.0
International (CC-BY-4.0)**, not MIT:

- `PUBLICATION/water_scarcity_morocco.pdf` — the research manuscript.
- `PUBLICATION/figures/` — all seven figures (Figure 1 through Figure 7).
- `README.md` — repository documentation.
- `AUTHORS.md`, `CHANGELOG.md`, `CITATION.cff` — project documentation.
- `ANALYSIS/ANALYSIS_REPORT.md`, `ANALYSIS/analysis_insights.json` — analysis narrative.
- `docs/` — iteration log and consolidated audit report.

This distinction reflects standard practice:

- **Code** is licensed permissively (MIT) to allow reuse, modification,
  and redistribution.
- **Written research artifacts** (manuscript, figures, documentation) are
  licensed under CC-BY-4.0 to allow sharing and adaptation with attribution.

## Data Licensing

The data files under `DATA/raw/` originate from the World Bank's
World Development Indicators (WDI) and Morocco's 2025 State of the
Environment Report. Their original licensing terms are governed by the
respective data providers:

- World Bank Open Data is available under the
  [Creative Commons Attribution 4.0 International License (CC-BY-4.0)](https://datacatalog.worldbank.org/public-licenses).
- Indicators from Morocco's 2025 State of the Environment Report are used
  for scholarly analysis; users should consult the original source for
  redistribution terms.

The curated extract `DATA/raw/worldbank_data.csv` is distributed here under
CC-BY-4.0 with attribution to the World Bank.

## Attribution

For code use:

```

Baladi, S. (2026). Water Scarcity in Morocco: Analysis Pipeline
(Version 1.0.0) [Computer software].

```

For manuscript or figure citation:

```

Baladi, S. (2026). Water Scarcity in Morocco: A Multivariate Analysis of
Climatic, Agricultural, and Socioeconomic Drivers [Research manuscript,
v1.0.0]. https://doi.org/10.5281/zenodo.23884236

```

## Scope of the Research Claims

This work is an **exploratory and associational** analysis of Morocco's
freshwater trajectory between 2000 and 2025. It is explicitly **not**
designed to establish causal attribution. Conclusions should be read as
hypothesis-generating rather than confirmatory.

The manuscript reports an OLS model with an R-squared of 0.812 on a model
sample of n = 16. These results are conditional on the specific indicator
definitions, time window, and model specification documented in the
manuscript. Reuse of the code does not imply endorsement of the empirical
findings by the author.

---

**Version:** 1.0.0
**Date:** 2026-11-02
**Copyright:** 2026 Samir Baladi
