Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Tools to load and manipulate rainfall data from the city of Barcelona, Catalunya; it is the core of the Barcelona Rainfall project and is exposed through the Barcelona Rainfall API.

License

NotificationsYou must be signed in to change notification settings

paul-florentin-charles/bcn-rainfall-core

Repository files navigation

PyPI versionLicense: MITcoverage badgeRuffuvmypy

Tools to load and manipulate rainfall data from the city of Barcelona, Catalunya; it is the core of the Barcelona Rainfall project and is exposed through the Barcelona Rainfall API.

Usage

frombcn_rainfall_coreimportRainfallfrombcn_rainfall_core.utilsimportDataSettings# With configuration file in default path `config.yml`rainfall=Rainfall.from_config()# With configuration file in other pathrainfall_with_path=Rainfall.from_config(path="new/path/to/config.yml")# With your own configurationrainfall_with_cfg=Rainfall.from_config(cfg=DataSettings(file_url="http://...",start_year=1955,rainfall_precision=2))# With your own configuration from local filerainfall_with_cfg_from_file=Rainfall.from_config(cfg=DataSettings(local_file_path="/dir/my_rainfall_data.csv",start_year=1955,rainfall_precision=2),from_file=True,)# Have fun with class!frombcn_rainfall_core.utilsimportTimeMode,Seasonrainfall_avg=rainfall.get_rainfall_average(TimeMode.SEASONAL,begin_year=1975,end_year=1998,season=Season.WINTER)print(rainfall_avg)...

About

Tools to load and manipulate rainfall data from the city of Barcelona, Catalunya; it is the core of the Barcelona Rainfall project and is exposed through the Barcelona Rainfall API.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp