Skip to main content

Functions for calculation of meteorological variables.

Project description

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

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 or “feels like temperature” is an index that combines air temperature and relative humidity in an attempt to determine the human-perceived equivalent temperature.

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

$ pip install meteocalc

Usage

from meteocalc import Temp, dew_point, heat_index

# 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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meteocalc-1.0.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meteocalc-1.0.0-py2.py3-none-any.whl (7.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file meteocalc-1.0.0.tar.gz.

File metadata

  • Download URL: meteocalc-1.0.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for meteocalc-1.0.0.tar.gz
Algorithm Hash digest
SHA256 96152fe197ccf6cfaffc45187293b62fc35d7f43f566a5098a2ebd7769c38acf
MD5 780d64d6820fe96741a018ddedf38689
BLAKE2b-256 3437df5c03b1a12ed01ed9f4e4c5e42d360fd49ce0230e0500ba8cd39d679ead

See more details on using hashes here.

File details

Details for the file meteocalc-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for meteocalc-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5ace5d5eda246cbc316d6eb42810229addcb3c814bb8e39006d358b0bd9f364d
MD5 c795eb27222cbb85a4fda7dc8c4f76e1
BLAKE2b-256 c804d92f086d128c09b94574edd57e2467e18d8d06ca07925054f3482f1740f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page