meteocalc


Namemeteocalc JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://github.com/malexer/meteocalc
SummaryFunctions for calculation of meteorological variables.
upload_time2019-04-30 22:05:41
maintainer
docs_urlNone
authorAlex (Oleksii) Markov
requires_python
licenseMIT
keywords meteorology meteo dew heat heatindex humiture humidex feels like temp temperature wind chill
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            meteocalc
=========

.. image:: https://travis-ci.org/malexer/meteocalc.svg?branch=master
    :target: https://travis-ci.org/malexer/meteocalc

Several functions for calculation of meteorological variables.

Calculations were implemented based on publicly available formulas.

Implemented calculations:

1. **Dew Point** is the temperature at which dew forms.
2. **Heat Index** is an index that combines air temperature and relative
   humidity in an attempt to determine the human-perceived equivalent
   temperature.
3. **Wind Chill** is the lowering of body temperature due to the
   passing-flow of lower-temperature air.
4. **Feels Like temperature** or Apparent temperature is the temperature
   equivalent perceived by humans, caused by the combined effects of air
   temperature, relative humidity and wind speed.

Also **Temp** class is available to convert temperature between Celsius,
Fahrenheit and Kelvin. It is also can be mixed with floats for basic math
operations.


Requirements
------------

* Python 2.7 or 3.2+


Install
-------

.. code-block:: shell

    $ pip install meteocalc


Usage
-----

..note:
    Any input Temperature value can be provided in different units:
    ``Temp(20, 'c')  # c - celsius, f - fahrenheit, k - kelvin``

.. code-block:: python

    from meteocalc import Temp, dew_point, heat_index, wind_chill, feels_like

    # create input temperature in different units
    t = Temp(20, 'c')  # c - celsius, f - fahrenheit, k - kelvin
    t2 = Temp(60, 'f')

    # calculate Dew Point
    dp = dew_point(temperature=t, humidity=56)

    # calculate Heat Index
    hi = heat_index(temperature=t2, humidity=42)

    print('Dew Point in celsius:', dp.c)
    print('Dew Point in fahrenheit:', dp.f)
    print('Heat Index in kelvin:', hi.k)

    # calculate Wind Chill
    wc = wind_chill(temperature=15, wind_speed=25)
    print('Wind Chill in fahrenheit:', wc.f)

    # calculate Feels Like temperature
    fl = feels_like(temperature=40, humidity=40, wind_speed=5)
    print('Feels Like in fahrenheit:', fl.f)


History
=======


v 1.1.0 - 2019-04-30
--------------------

Added:
~~~~~~

* Wind Chill and Feels Like temperature (thanks to @Currywurst)


v 1.0.0 - 2016-04-03
--------------------

Added:
~~~~~~

* First version




            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/malexer/meteocalc",
    "name": "meteocalc",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "meteorology meteo dew heat heatindex humiture humidex feels like temp temperature wind chill",
    "author": "Alex (Oleksii) Markov",
    "author_email": "alex@markovs.me",
    "download_url": "https://files.pythonhosted.org/packages/6c/f7/95473a929f0a02547461fa3698b7f8082ff40445ba5e21601f5d9a5e48ec/meteocalc-1.1.0.tar.gz",
    "platform": "",
    "description": "meteocalc\n=========\n\n.. image:: https://travis-ci.org/malexer/meteocalc.svg?branch=master\n    :target: https://travis-ci.org/malexer/meteocalc\n\nSeveral functions for calculation of meteorological variables.\n\nCalculations were implemented based on publicly available formulas.\n\nImplemented calculations:\n\n1. **Dew Point** is the temperature at which dew forms.\n2. **Heat Index** is an index that combines air temperature and relative\n   humidity in an attempt to determine the human-perceived equivalent\n   temperature.\n3. **Wind Chill** is the lowering of body temperature due to the\n   passing-flow of lower-temperature air.\n4. **Feels Like temperature** or Apparent temperature is the temperature\n   equivalent perceived by humans, caused by the combined effects of air\n   temperature, relative humidity and wind speed.\n\nAlso **Temp** class is available to convert temperature between Celsius,\nFahrenheit and Kelvin. It is also can be mixed with floats for basic math\noperations.\n\n\nRequirements\n------------\n\n* Python 2.7 or 3.2+\n\n\nInstall\n-------\n\n.. code-block:: shell\n\n    $ pip install meteocalc\n\n\nUsage\n-----\n\n..note:\n    Any input Temperature value can be provided in different units:\n    ``Temp(20, 'c')  # c - celsius, f - fahrenheit, k - kelvin``\n\n.. code-block:: python\n\n    from meteocalc import Temp, dew_point, heat_index, wind_chill, feels_like\n\n    # create input temperature in different units\n    t = Temp(20, 'c')  # c - celsius, f - fahrenheit, k - kelvin\n    t2 = Temp(60, 'f')\n\n    # calculate Dew Point\n    dp = dew_point(temperature=t, humidity=56)\n\n    # calculate Heat Index\n    hi = heat_index(temperature=t2, humidity=42)\n\n    print('Dew Point in celsius:', dp.c)\n    print('Dew Point in fahrenheit:', dp.f)\n    print('Heat Index in kelvin:', hi.k)\n\n    # calculate Wind Chill\n    wc = wind_chill(temperature=15, wind_speed=25)\n    print('Wind Chill in fahrenheit:', wc.f)\n\n    # calculate Feels Like temperature\n    fl = feels_like(temperature=40, humidity=40, wind_speed=5)\n    print('Feels Like in fahrenheit:', fl.f)\n\n\nHistory\n=======\n\n\nv 1.1.0 - 2019-04-30\n--------------------\n\nAdded:\n~~~~~~\n\n* Wind Chill and Feels Like temperature (thanks to @Currywurst)\n\n\nv 1.0.0 - 2016-04-03\n--------------------\n\nAdded:\n~~~~~~\n\n* First version\n\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Functions for calculation of meteorological variables.",
    "version": "1.1.0",
    "project_urls": {
        "Homepage": "https://github.com/malexer/meteocalc"
    },
    "split_keywords": [
        "meteorology",
        "meteo",
        "dew",
        "heat",
        "heatindex",
        "humiture",
        "humidex",
        "feels",
        "like",
        "temp",
        "temperature",
        "wind",
        "chill"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3843057b78c2183aab1267fe121e75befef8b2fee9516d80c69ee8c95698d0ee",
                "md5": "1994c3a85296a70e1a57005250de52dd",
                "sha256": "f91b6f1c1161aa9311056ee81a8dcf3d26d2b392bac87bacb1ee5b71ef6cfdf0"
            },
            "downloads": -1,
            "filename": "meteocalc-1.1.0-py2-none-any.whl",
            "has_sig": false,
            "md5_digest": "1994c3a85296a70e1a57005250de52dd",
            "packagetype": "bdist_wheel",
            "python_version": "py2",
            "requires_python": null,
            "size": 9026,
            "upload_time": "2019-04-30T22:05:39",
            "upload_time_iso_8601": "2019-04-30T22:05:39.483212Z",
            "url": "https://files.pythonhosted.org/packages/38/43/057b78c2183aab1267fe121e75befef8b2fee9516d80c69ee8c95698d0ee/meteocalc-1.1.0-py2-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6cf795473a929f0a02547461fa3698b7f8082ff40445ba5e21601f5d9a5e48ec",
                "md5": "0f5d6982ed741b8564299514b062743d",
                "sha256": "5df5a2417289b8422380dbd73d874692b31b8a054feb5e630c20ba094c597f39"
            },
            "downloads": -1,
            "filename": "meteocalc-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0f5d6982ed741b8564299514b062743d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5956,
            "upload_time": "2019-04-30T22:05:41",
            "upload_time_iso_8601": "2019-04-30T22:05:41.653650Z",
            "url": "https://files.pythonhosted.org/packages/6c/f7/95473a929f0a02547461fa3698b7f8082ff40445ba5e21601f5d9a5e48ec/meteocalc-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2019-04-30 22:05:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "malexer",
    "github_project": "meteocalc",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "meteocalc"
}
        
Elapsed time: 1.34001s