agro-met-equations-dynalogic


Nameagro-met-equations-dynalogic JSON
Version 2.0.3 PyPI version JSON
download
home_pagehttps://github.com/dynalogic-agtech/dynalogic-agro-met-equations-pkg
SummaryLibrary for agrometeorological calculation like evapotranspiration, water balance, degree days, water balance ...
upload_time2023-09-22 20:50:21
maintainer
docs_urlNone
authorBruno Ducraux
requires_python>=3.8
licenseBSD 3-Clause
keywords atmospheric science agricultural meteorology
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Agrometeorological Equations Package
==========
##### Library for agrometeorological calculation like evapotranspiration, water balance, degree days, etc

|           |                                                    |
|-----------|----------------------------------------------------|
|Authors:   | Bruno Ducraux (bducraux@dynalogic.net)             |
|           | Mariana Gonçalves dos Reis (mreis@dynalogic.net)   |
| Based on: | [PyEto](https://github.com/woodcrafty/PyETo)       |
|           |                                                    |

About
-----------
This library was adapted to fit some needs of a private project, 
and I decided to disponibilize as open source since the original project 
that we used as base is.

All calculations and formulas were reviewed by the agrometeorologist Mariana Gonçalves dos Reis, based on the documents:

[Conversion factors and general equations applied in agricultural and forest meteorology](https://seer.sct.embrapa.br/index.php/agrometeoros/article/view/26527)

[Evapotranspiration_Equation.pdf](AgroMetEquations/docs/Evapotranspiration_Equation.pdf)

In case of questions related to the python code, bug fix ...
please contact Bruno Ducraux, who is the python developer responsible for the project.

Installation
------------
`pip install agro-met-equations-dynalogic`

Usage
-----

`from AgroMetEquations import`

# Steps to calculate FAO56

1. Day of year: days_passed_on_current_year()
2. Solar declination: sol_dec(day_of_year)
3. Sunset hour angle: sunset_hour_angle(latitude_rad, solar_declination)
4. Daylight hours: daylight_hours(sunset_hour_angle)
5. Inverse relative distance between earth and sun: inv_rel_dist_earth_sun(day_of_year)
6. Extraterrestrial radiation: et_rad(latitude_rad, solar_declination, sunset_hour_angle, inv_rel_dist_earth_sun)
7. Clear sky radiation: cs_rad(altitude, extraterrestrial_radiation)
8. Saturation vapour pressure Min: svp_from_t(temperature_min)
9. Saturation vapour pressure Max: svp_from_t(temperature_max)
10. Saturation vapour pressure: svp(svp_min, svp_max)
11. Actual vapour pressure: avp_from_rhmin_rhmax(svp_min, svp_max, relative_humidity_min, relative_humidity_max)
12. Net outgoing longwave radiation: net_out_lw_rad(temperature_min:kelvin, temperature_max:kelvin, solar_radiation, clear_sky_radiation, actual_vapour_pressure)
13. Net income solar radiation: net_in_sol_rad(solar_radiation)
14. Net radiation at the crop surface: net_rad(net_in_sol_rad, net_outgoing_longwave_radiation)
15. Soil heat flux: soil_heat_flux_by_nightday_period(net_rad)
16. Latent heat: latent_heat(temperature_mean)
17. Delta: delta_svp(temperature_mean)
18. Psychrometric constant: psy_const(atmosphere_pressure, latent_heat)
19. Wind speed measured at different heights: wind_speed_2m(wind_speed, sensor_height)
20. FAO56: fao56_penman_monteith(net_rad, temperature_mean, wind_speed, latent_heat, svp, actual_vapour_pressure, delta, psychrometric_constant, soil_heat_flux)


Testing
-------
To test the code you need to have pytest installed.

`pip install pytest`

Inside the AgroMetEquations folder run the command:

`pytest`

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dynalogic-agtech/dynalogic-agro-met-equations-pkg",
    "name": "agro-met-equations-dynalogic",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "Atmospheric Science,Agricultural Meteorology",
    "author": "Bruno Ducraux",
    "author_email": "bducraux@dynalogic.net",
    "download_url": "https://files.pythonhosted.org/packages/9f/ed/981cfe880af984a3570dac75bda3e3dcd0f6d20c3343334592f8cb46fa2a/agro_met_equations_dynalogic-2.0.3.tar.gz",
    "platform": null,
    "description": "Agrometeorological Equations Package\n==========\n##### Library for agrometeorological calculation like evapotranspiration, water balance, degree days, etc\n\n|           |                                                    |\n|-----------|----------------------------------------------------|\n|Authors:   | Bruno Ducraux (bducraux@dynalogic.net)             |\n|           | Mariana Gon\u00e7alves dos Reis (mreis@dynalogic.net)   |\n| Based on: | [PyEto](https://github.com/woodcrafty/PyETo)       |\n|           |                                                    |\n\nAbout\n-----------\nThis library was adapted to fit some needs of a private project, \nand I decided to disponibilize as open source since the original project \nthat we used as base is.\n\nAll calculations and formulas were reviewed by the agrometeorologist Mariana Gon\u00e7alves dos Reis, based on the documents:\n\n[Conversion factors and general equations applied in agricultural and forest meteorology](https://seer.sct.embrapa.br/index.php/agrometeoros/article/view/26527)\n\n[Evapotranspiration_Equation.pdf](AgroMetEquations/docs/Evapotranspiration_Equation.pdf)\n\nIn case of questions related to the python code, bug fix ...\nplease contact Bruno Ducraux, who is the python developer responsible for the project.\n\nInstallation\n------------\n`pip install agro-met-equations-dynalogic`\n\nUsage\n-----\n\n`from AgroMetEquations import`\n\n# Steps to calculate FAO56\n\n1. Day of year: days_passed_on_current_year()\n2. Solar declination: sol_dec(day_of_year)\n3. Sunset hour angle: sunset_hour_angle(latitude_rad, solar_declination)\n4. Daylight hours: daylight_hours(sunset_hour_angle)\n5. Inverse relative distance between earth and sun: inv_rel_dist_earth_sun(day_of_year)\n6. Extraterrestrial radiation: et_rad(latitude_rad, solar_declination, sunset_hour_angle, inv_rel_dist_earth_sun)\n7. Clear sky radiation: cs_rad(altitude, extraterrestrial_radiation)\n8. Saturation vapour pressure Min: svp_from_t(temperature_min)\n9. Saturation vapour pressure Max: svp_from_t(temperature_max)\n10. Saturation vapour pressure: svp(svp_min, svp_max)\n11. Actual vapour pressure: avp_from_rhmin_rhmax(svp_min, svp_max, relative_humidity_min, relative_humidity_max)\n12. Net outgoing longwave radiation: net_out_lw_rad(temperature_min:kelvin, temperature_max:kelvin, solar_radiation, clear_sky_radiation, actual_vapour_pressure)\n13. Net income solar radiation: net_in_sol_rad(solar_radiation)\n14. Net radiation at the crop surface: net_rad(net_in_sol_rad, net_outgoing_longwave_radiation)\n15. Soil heat flux: soil_heat_flux_by_nightday_period(net_rad)\n16. Latent heat: latent_heat(temperature_mean)\n17. Delta: delta_svp(temperature_mean)\n18. Psychrometric constant: psy_const(atmosphere_pressure, latent_heat)\n19. Wind speed measured at different heights: wind_speed_2m(wind_speed, sensor_height)\n20. FAO56: fao56_penman_monteith(net_rad, temperature_mean, wind_speed, latent_heat, svp, actual_vapour_pressure, delta, psychrometric_constant, soil_heat_flux)\n\n\nTesting\n-------\nTo test the code you need to have pytest installed.\n\n`pip install pytest`\n\nInside the AgroMetEquations folder run the command:\n\n`pytest`\n",
    "bugtrack_url": null,
    "license": "BSD 3-Clause",
    "summary": "Library for agrometeorological calculation like evapotranspiration, water balance, degree days, water balance ...",
    "version": "2.0.3",
    "project_urls": {
        "Homepage": "https://github.com/dynalogic-agtech/dynalogic-agro-met-equations-pkg",
        "Repository": "https://github.com/dynalogic-agtech/dynalogic-agro-met-equations-pkg"
    },
    "split_keywords": [
        "atmospheric science",
        "agricultural meteorology"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f026e1e51bbae054c728c997ecfec53c803442fa3f9809b14e98e998847cd175",
                "md5": "884d3259fd9e94db54ad9ff1303d52c1",
                "sha256": "7c85f98d674142c4c0c69b50768cf855ab62106db31c98750de4a4099c890e42"
            },
            "downloads": -1,
            "filename": "agro_met_equations_dynalogic-2.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "884d3259fd9e94db54ad9ff1303d52c1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 278077,
            "upload_time": "2023-09-22T20:50:18",
            "upload_time_iso_8601": "2023-09-22T20:50:18.288870Z",
            "url": "https://files.pythonhosted.org/packages/f0/26/e1e51bbae054c728c997ecfec53c803442fa3f9809b14e98e998847cd175/agro_met_equations_dynalogic-2.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9fed981cfe880af984a3570dac75bda3e3dcd0f6d20c3343334592f8cb46fa2a",
                "md5": "67f98c33defc3481485eb9cbe671a1f0",
                "sha256": "27edef474f9426d60110cc6971c42feb3a88ba97fb153574e83230abc18e1833"
            },
            "downloads": -1,
            "filename": "agro_met_equations_dynalogic-2.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "67f98c33defc3481485eb9cbe671a1f0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 277712,
            "upload_time": "2023-09-22T20:50:21",
            "upload_time_iso_8601": "2023-09-22T20:50:21.257367Z",
            "url": "https://files.pythonhosted.org/packages/9f/ed/981cfe880af984a3570dac75bda3e3dcd0f6d20c3343334592f8cb46fa2a/agro_met_equations_dynalogic-2.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-22 20:50:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dynalogic-agtech",
    "github_project": "dynalogic-agro-met-equations-pkg",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "agro-met-equations-dynalogic"
}
        
Elapsed time: 0.12254s