PyAEZ


NamePyAEZ JSON
Version 2.2 PyPI version JSON
download
home_pagehttps://github.com/gicait/PyAEZ
SummaryPyAEZ is a python package consisted of many algorithms related to Agro-ecalogical zoning (AEZ) framework.
upload_time2023-12-10 11:41:46
maintainer
docs_urlNone
authorGeoinformatics Center, Asian Institute of Technology, Thailand
requires_python>=3.6
licenseMIT License
keywords aez python agro-ecological zoning climate regime crop simulations climate constraints soil constraints terrain constraints economic suitability analysis utility calculation biomass calculations evapotranspiration calculation cropwat calculations
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Downloads](https://pepy.tech/badge/pyaez)](https://pepy.tech/project/pyaez)
[![PyPI version](https://badge.fury.io/py/PyAEZ.svg)](https://pypi.org/project/PyAEZ/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/gicait/PyAEZ/blob/master/LICENSE)

# PyAEZ

PyAEZ is a python package consisted of many algorithms related to Agro-ecalogical zoning (AEZ) framework. PyAEZ tries to encapsulate all complex calculations in AEZ and try to provide user friendly, and intuitive ways to input data and output results after calculations.

# Installation

Now the package can be installed using `pip` command as below,

```shell
pip install pyaez==2.1
```

Alternatively, can be installed using using `conda` command as below,

```shell
conda install -c conda-forge pyaez
```

### Introduction

PyAEZ includes 6 main modules as below. Additionally to that, UtilityCalculations module is also included in PyAEZ to perform additional related utility calculations.

- Module I: Climate Regime
- Module II: Crop Simulations
- Module III: Climate Constraints
- Module IV: Soil Constraints
- Module V: Terrain Constraints
- Module VI: Economic Suitability Analysis
- UtilityCalculations Module

Other than 6 main modules and utility module, following 3 major algorithms related to AEZ also are included in PyAEZ. Those 3 major algorithms can be utilized individually without running whole PyAEZ.

- Biomass Calculations
- Evapotranspiration Calculations
- CropWat Calculations

### Dependencies

- numpy
- scipy
- gdal
- numba 

### Step-by-step Process

Following 6 Jupyter notebooks in the GitHub repository can be used as worked full example for PyAEZ 6 major modules.

- NB1_ClimateRegime.ipynb
- NB2_CropSimulation.ipynb
- NB3_ClimaticConstraints.ipynb
- NB4_SoilConstraints.ipynb
- NB5_TerrainConstraints.ipynb
- NB6_EconomicSuitability.ipynb

**Note**: _NB2_CropSimulation.ipynb_ takes a huge amount of time due to automatic crop calendar calculations. Hence, we have rewritten core parts of PyAEZ (_CropWatCalc.py_, _BioMassCalc.py_ and _ETOCalc.py_) with [Numba](http://numba.pydata.org/) compatible manner as well. Numba translates Python functions to optimized machine code at runtime, allowing calculation speeds close to C or FORTRAN.

### Release Note PyAEZv2.1
The goal of this release is to improve the overall accuracy and reliability of the AEZ methodology in Module 1, 2, and 3. The key updates are as follows:

**Module 1**:
- Major improvements in the Length of Growing Period (LGP) calculation routine through the implementation of Numba (a Python package to speed up the calculation) and cross-checking the methodology with the Global AEZ from IIASA. 
- All the climatic indicators had been thoroughly cross-checked and verified with the Global AEZ outputs. 

**Module 2**:
- Reading crop/crop cycle parameters from excel sheet.
- Updated algorithm for TSUM screening and parameter settings.
- New thermal screening logics: permafrost screening, crop-specific rule screening.
- Updated algorithm for perennial crop simulations.
- New outputs: thermal reduction factor maps (fc1), yield reduction due to moisture deficit (fc2) and optimum starting date, for both rainfed and irrigated conditions.

**Module 3**:
- New look-up table setting for agro-climatic reduction factors for both rainfed and irrigated conditions.
- Updated algorithm related to agro-climatic constraints calculation.
- New outputs: Adjusted Length of Growing Period for agro-climatic constraints, agro-climatic constraint map (fc3).


### Documentation

API Documentation is located in "docs" folder.

### Citation

Use this bibtex to cite us.

```
@misc{PyAEZ(v2.1.0),
  title={PyAEZ Python Package for Agro-ecological zoning (AEZ)},
  author={Swun Wunna Htet, Kittiphon Boonma, Gianluca Franceschini, N. Lakmal Deshapriya, Thaileng Thol, Kavinda Gunasekara, Rajendra Shrestha,  Freddy Nachtergaele, Monica Petri, Beau Damen},
  year={2023},
  publisher={Github},
  journal={GitHub repository},
  howpublished={\url{https://github.com/gicait/PyAEZ}},
}
```

### Developed by

[Geoinformatics Center](www.geoinfo.ait.ac.th) of [Asian Institute of Technology](www.ait.ac.th).


### Funding

Food and Agriculture Organization of the United Nations ([FAO](http://www.fao.org/home/en/)) and [FAO SAMIS](http://www.fao.org/in-action/samis/en/) (Strengthening Agro-climatic Monitoring and Information System) Project in Lao PDR.

### Sample Data Source

- Abatzoglou, J.T., S.Z. Dobrowski, S.A. Parks, K.C. Hegewisch, 2018, Terraclimate, a high-resolution global dataset of monthly climate and climatic water balance from 1958-2015, Scientific Data,

### Major AEZ References

- de Wit, C. T. (1965). Photosynthesis of leaf canopies. Agricultural Research Report No. 663. PUDOC, Wageningen, 57 .
- FAO. (1992). Cropwat: A computer program for irrigation planning and management. Land and Water Development Division, Rome, Italy, FAO Irrigation and Drainage Paper no 46 .
- FAO. (1998). Crop evapotranspiration. FAO Irrigation and Drainage Paper no.56 Rome, Italy.
- FAO. (2017). Final Report: National Agro-Economic Zoning for Major Crops in Thailand (NAEZ).
- Fischer, G., van Velthuizen, H., Shah, M., & Nachtergaele, F. (2002a). Global agroecological assessment for agriculture in the 21st century: Methodology and results. IIASA RR-02-02, IIASA, Laxenburg, Austria.
- Monteith, J. L. (1965). Evapotranspiration and the environment. In The State and Movement of Water in Living Organisms, 205-234.
- Monteith, J. L. (1981). Evapotranspiration and surface temperature. Quarterly Journal Royal Meteorological Society, 107 , 1-27.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/gicait/PyAEZ",
    "name": "PyAEZ",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "AEZ,Python,Agro-ecological Zoning,Climate Regime,Crop Simulations,Climate Constraints,Soil Constraints,Terrain Constraints,Economic Suitability Analysis,Utility Calculation,Biomass Calculations,Evapotranspiration Calculation,CropWat calculations",
    "author": "Geoinformatics Center, Asian Institute of Technology, Thailand",
    "author_email": "geoinfo@ait.asia",
    "download_url": "https://files.pythonhosted.org/packages/cc/66/ce851488387fa0310653921d6c5e1109773688d41cc2b5d64d9f9082dff9/PyAEZ-2.2.tar.gz",
    "platform": null,
    "description": "[![Downloads](https://pepy.tech/badge/pyaez)](https://pepy.tech/project/pyaez)\n[![PyPI version](https://badge.fury.io/py/PyAEZ.svg)](https://pypi.org/project/PyAEZ/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/gicait/PyAEZ/blob/master/LICENSE)\n\n# PyAEZ\n\nPyAEZ is a python package consisted of many algorithms related to Agro-ecalogical zoning (AEZ) framework. PyAEZ tries to encapsulate all complex calculations in AEZ and try to provide user friendly, and intuitive ways to input data and output results after calculations.\n\n# Installation\n\nNow the package can be installed using `pip` command as below,\n\n```shell\npip install pyaez==2.1\n```\n\nAlternatively, can be installed using using `conda` command as below,\n\n```shell\nconda install -c conda-forge pyaez\n```\n\n### Introduction\n\nPyAEZ includes 6 main modules as below. Additionally to that, UtilityCalculations module is also included in PyAEZ to perform additional related utility calculations.\n\n- Module I: Climate Regime\n- Module II: Crop Simulations\n- Module III: Climate Constraints\n- Module IV: Soil Constraints\n- Module V: Terrain Constraints\n- Module VI: Economic Suitability Analysis\n- UtilityCalculations Module\n\nOther than 6 main modules and utility module, following 3 major algorithms related to AEZ also are included in PyAEZ. Those 3 major algorithms can be utilized individually without running whole PyAEZ.\n\n- Biomass Calculations\n- Evapotranspiration Calculations\n- CropWat Calculations\n\n### Dependencies\n\n- numpy\n- scipy\n- gdal\n- numba \n\n### Step-by-step Process\n\nFollowing 6 Jupyter notebooks in the GitHub repository can be used as worked full example for PyAEZ 6 major modules.\n\n- NB1_ClimateRegime.ipynb\n- NB2_CropSimulation.ipynb\n- NB3_ClimaticConstraints.ipynb\n- NB4_SoilConstraints.ipynb\n- NB5_TerrainConstraints.ipynb\n- NB6_EconomicSuitability.ipynb\n\n**Note**: _NB2_CropSimulation.ipynb_ takes a huge amount of time due to automatic crop calendar calculations. Hence, we have rewritten core parts of PyAEZ (_CropWatCalc.py_, _BioMassCalc.py_ and _ETOCalc.py_) with [Numba](http://numba.pydata.org/) compatible manner as well. Numba translates Python functions to optimized machine code at runtime, allowing calculation speeds close to C or FORTRAN.\n\n### Release Note PyAEZv2.1\nThe goal of this release is to improve the overall accuracy and reliability of the AEZ methodology in Module 1, 2, and 3. The key updates are as follows:\n\n**Module 1**:\n- Major improvements in the Length of Growing Period (LGP) calculation routine through the implementation of Numba (a Python package to speed up the calculation) and cross-checking the methodology with the Global AEZ from IIASA. \n- All the climatic indicators had been thoroughly cross-checked and verified with the Global AEZ outputs. \n\n**Module 2**:\n- Reading crop/crop cycle parameters from excel sheet.\n- Updated algorithm for TSUM screening and parameter settings.\n- New thermal screening logics: permafrost screening, crop-specific rule screening.\n- Updated algorithm for perennial crop simulations.\n- New outputs: thermal reduction factor maps (fc1), yield reduction due to moisture deficit (fc2) and optimum starting date, for both rainfed and irrigated conditions.\n\n**Module 3**:\n- New look-up table setting for agro-climatic reduction factors for both rainfed and irrigated conditions.\n- Updated algorithm related to agro-climatic constraints calculation.\n- New outputs: Adjusted Length of Growing Period for agro-climatic constraints, agro-climatic constraint map (fc3).\n\n\n### Documentation\n\nAPI Documentation is located in \"docs\" folder.\n\n### Citation\n\nUse this bibtex to cite us.\n\n```\n@misc{PyAEZ(v2.1.0),\n  title={PyAEZ Python Package for Agro-ecological zoning (AEZ)},\n  author={Swun Wunna Htet, Kittiphon Boonma, Gianluca Franceschini, N. Lakmal Deshapriya, Thaileng Thol, Kavinda Gunasekara, Rajendra Shrestha,  Freddy Nachtergaele, Monica Petri, Beau Damen},\n  year={2023},\n  publisher={Github},\n  journal={GitHub repository},\n  howpublished={\\url{https://github.com/gicait/PyAEZ}},\n}\n```\n\n### Developed by\n\n[Geoinformatics Center](www.geoinfo.ait.ac.th) of [Asian Institute of Technology](www.ait.ac.th).\n\n\n### Funding\n\nFood and Agriculture Organization of the United Nations ([FAO](http://www.fao.org/home/en/)) and [FAO SAMIS](http://www.fao.org/in-action/samis/en/) (Strengthening Agro-climatic Monitoring and Information System) Project in Lao PDR.\n\n### Sample Data Source\n\n- Abatzoglou, J.T., S.Z. Dobrowski, S.A. Parks, K.C. Hegewisch, 2018, Terraclimate, a high-resolution global dataset of monthly climate and climatic water balance from 1958-2015, Scientific Data,\n\n### Major AEZ References\n\n- de Wit, C. T. (1965). Photosynthesis of leaf canopies. Agricultural Research Report No. 663. PUDOC, Wageningen, 57 .\n- FAO. (1992). Cropwat: A computer program for irrigation planning and management. Land and Water Development Division, Rome, Italy, FAO Irrigation and Drainage Paper no 46 .\n- FAO. (1998). Crop evapotranspiration. FAO Irrigation and Drainage Paper no.56 Rome, Italy.\n- FAO. (2017). Final Report: National Agro-Economic Zoning for Major Crops in Thailand (NAEZ).\n- Fischer, G., van Velthuizen, H., Shah, M., & Nachtergaele, F. (2002a). Global agroecological assessment for agriculture in the 21st century: Methodology and results. IIASA RR-02-02, IIASA, Laxenburg, Austria.\n- Monteith, J. L. (1965). Evapotranspiration and the environment. In The State and Movement of Water in Living Organisms, 205-234.\n- Monteith, J. L. (1981). Evapotranspiration and surface temperature. Quarterly Journal Royal Meteorological Society, 107 , 1-27.\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "PyAEZ is a python package consisted of many algorithms related to Agro-ecalogical zoning (AEZ) framework.",
    "version": "2.2",
    "project_urls": {
        "Homepage": "https://github.com/gicait/PyAEZ"
    },
    "split_keywords": [
        "aez",
        "python",
        "agro-ecological zoning",
        "climate regime",
        "crop simulations",
        "climate constraints",
        "soil constraints",
        "terrain constraints",
        "economic suitability analysis",
        "utility calculation",
        "biomass calculations",
        "evapotranspiration calculation",
        "cropwat calculations"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "57a567ec53f39e98f05e81958ff082a6cc2226b99738ce0d9f2cb529eba07346",
                "md5": "002406274666b8968d9c5b7d7bf0fe77",
                "sha256": "9ad1b3ddf9a1fce9d92f277137bd2f847f9510de947a79c4989e9d913291d72b"
            },
            "downloads": -1,
            "filename": "PyAEZ-2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "002406274666b8968d9c5b7d7bf0fe77",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 61414,
            "upload_time": "2023-12-10T11:41:44",
            "upload_time_iso_8601": "2023-12-10T11:41:44.856001Z",
            "url": "https://files.pythonhosted.org/packages/57/a5/67ec53f39e98f05e81958ff082a6cc2226b99738ce0d9f2cb529eba07346/PyAEZ-2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cc66ce851488387fa0310653921d6c5e1109773688d41cc2b5d64d9f9082dff9",
                "md5": "c0d501a5f8e6102e29bde9abec78ea35",
                "sha256": "aa796d25d5ebf91f64d018cfc56fa617dfd56347edde526df352b0cf62e88e71"
            },
            "downloads": -1,
            "filename": "PyAEZ-2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "c0d501a5f8e6102e29bde9abec78ea35",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 56321,
            "upload_time": "2023-12-10T11:41:46",
            "upload_time_iso_8601": "2023-12-10T11:41:46.624679Z",
            "url": "https://files.pythonhosted.org/packages/cc/66/ce851488387fa0310653921d6c5e1109773688d41cc2b5d64d9f9082dff9/PyAEZ-2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-10 11:41:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "gicait",
    "github_project": "PyAEZ",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "pyaez"
}
        
Elapsed time: 0.14492s