- Notifications
You must be signed in to change notification settings - Fork0
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
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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.
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
Packages0
No packages published