-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
91 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from meteostat import Stations, Hourly | ||
from datetime import datetime | ||
|
||
# Hourly | ||
stations = Stations(wmo = '10637') | ||
station = stations.fetch(1) | ||
|
||
data = Hourly(station, start = datetime(2020, 1, 1), end = datetime(2020, 1, 1, 23, 59)).aggregate(freq = '1D') | ||
print(data.fetch()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
pandas==1.1.0 | ||
pyarrow==1.0.0 | ||
pandas>=1.1.0 | ||
pyarrow>=1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,28 @@ | ||
import setuptools | ||
from os import path | ||
from setuptools import setup, find_packages | ||
|
||
setuptools.setup( | ||
name='meteostat', | ||
version='0.1', | ||
author="Meteostat", | ||
author_email="[email protected]", | ||
description="A Python library for working with weather and climate data.", | ||
url="https://dev.meteostat.net", | ||
packages=setuptools.find_packages(), | ||
install_requires=["pandas", "pyarrow"], | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
# Content of the README file | ||
here = path.abspath(path.dirname(__file__)) | ||
with open(path.join(here, 'README.md')) as f: | ||
long_description = f.read() | ||
|
||
# Setup | ||
setup( | ||
name = 'meteostat', | ||
version = '0.1.0', | ||
author = 'Meteostat', | ||
author_email = '[email protected]', | ||
description = 'Access and analyze historical weather and climate data with Python.', | ||
long_description = long_description, | ||
long_description_content_type = 'text/markdown', | ||
url = 'https://github.com/meteostat/meteostat-python', | ||
packages = find_packages(), | ||
include_package_data = True, | ||
install_requires = ['pandas', 'pyarrow'], | ||
license = 'MIT', | ||
classifiers = [ | ||
'Programming Language :: Python :: 3', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: OS Independent', | ||
], | ||
) |