Fetch CHIRPS rainfall data easily for any date and location using latitude/longitude or place name.
Project description
Gfetchert
Fetch CHIRPS rainfall data easily for any date and location using latitude/longitude or place name.
Installation
pip install gfetchert
Usage:
Example 1 : For a single coordinate { For Precise Data }
from gfetchert import fetch_rainfall
rain = fetch_rainfall(30.55, 79.62, "2007-07-30")
print(f"Rainfall: {rain} mm")
Example 2 : For in csv file multiple rows
from gfetchert import fetch_from_csv
fetch_from_csv(
"your_file.csv",
date_col="Your_date_column",
lat_col="Your_latitude_column",
lon_col="Your_longitude_column",
save_as="new_rainfall.csv"
)
Example 3 : for place name
from gfetchert import fetch_by_place
rain = fetch_by_place("Nainital, Uttarakhand", "2008-09-14")
print(f"Rainfall in Nainital: {rain} mm")
Author
Nikhil Aka Crocodile
NOTE :- data is available from 1981-2017
## Data Source
This package retrieves rainfall data from the [CHIRPS dataset](https://www.chc.ucsb.edu/data/chirps),
a product of the Climate Hazards Center, University of California, Santa Barbara.
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
gfetchert-0.1.4.tar.gz
(5.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gfetchert-0.1.4.tar.gz.
File metadata
- Download URL: gfetchert-0.1.4.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb6397d0bb5704389d2da228c283d83905745d90aaaf678d74dc956c1486cc42
|
|
| MD5 |
c0c4c6f1743327b4023e0270242f641c
|
|
| BLAKE2b-256 |
2c4044923cc9adeb0e65b83e1531b5c79829323d340bb0915f9723cbd94c0336
|
File details
Details for the file gfetchert-0.1.4-py3-none-any.whl.
File metadata
- Download URL: gfetchert-0.1.4-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6ed914fec8c0ce01424bfb21beee42512e4595df0cfeae29b8b0b8bc2819249
|
|
| MD5 |
510d57e7184dd33b6d7122aae5590b95
|
|
| BLAKE2b-256 |
d8817cd353a5ed53ca7746b7a9d5cb802ef6f02b5b47eb9c78d837644d329d56
|