Meteo GIS
Meteo GIS is a lightweight Python toolkit for geospatial processing and climate index analysis. It provides utilities for raster/vector conversion, geospatial file handling, and hydrometeorological indices like SPI and SPEI.
Features
- Climate index analysis
- Standardized Precipitation Index (
SPI) - Standardized Precipitation-Evapotranspiration Index (
SPEI)
- Standardized Precipitation Index (
- Raster utilities
- Clipping
- Contour generation
- Hillshade and raster algebra
- Polygonize raster data
- Raster-to-point extraction
- Vector utilities
- Buffer, clip, dissolve, merge, reproject, simplify, and union features
- I/O helpers for reading and writing geospatial formats
Requirements
- Python 3.9+
- numpy
- rasterio
- geopandas
- xarray
- scipy
- pandas
Additional dependencies such as
pandas,scipy,netCDF4,shapely, andfionamay be required for specific conversion and analysis modules.
Installation
pip install meteogis
Quick Start
Import tools directly from the package or from the submodules:
import numpy as np
from meteogis.analysis.spi import spi
from meteogis.analysis.spei import spei
from meteogis.read_file import read_file
from meteogis.to_file import to_file
# Example: compute SPI from a pandas Series or xarray-like object
rainfall = read_file("Rainfall_1990-2024.nc")
spi_values = spi(rainfall, thresh=3)
# Example: compute SPEI from precipitation and PET series
spei_values = spei(preci, pet, window=6)
# Write a raster
array = np.ones((100, 100), dtype="float32")
to_file(
array, "rainfall.tif",
xsize=100, ysize=100,
crs="EPSG:4326",
geotransform=(3.0, 0.01, 0, 9.0, 0, -0.01),
)
# Write a vector layer
stations = [
(Point(3.9, 7.4), {"name": "Ibadan", "rainfall_mm": 120}),
(Point(7.5, 9.1), {"name": "Abuja", "rainfall_mm": 95}),
]
to_file(stations, "stations.geojson", crs="EPSG:4326")
# Example: convert a shapefile to GeoJSON
geojson_from_shp = read_file('ne_10m_geography_regions_polys.shp')
# Read a raster data
dataset = read_file("rainfall.tif")
print(dataset.array.shape, dataset.crs)
Project Structure
src/meteogis/analysis/— climate and hydrological index functionssrc/meteogis/raster/— raster processing helperssrc/meteogis/vector/— vector geometry operationssrc/meteogis/io/— read/write helpers for geospatial data
Contributing
Contributions are welcome.
- Fork the repository
- Create a feature branch
- Add or update tests and documentation
- Submit a pull request
License
This project is licensed under the MIT License.
Author
David Akinduyile — thatpythonguy96@gmail.com
Metadata
Release files for meteogis 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| meteogis-0.1.0.tar.gz | 19.7 kB | Without provenance | Details for meteogis-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| meteogis-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for meteogis-0.1.0-py3-none-any.whl |
Total release size: 43.8 kB
Release files / meteogis-0.1.0.tar.gz
| Download URL | meteogis-0.1.0.tar.gz |
|---|---|
| Size | 19.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c16b55abd5622298a5e320d489b714edbfb95a5daf31cb929e4a323ed8e7dab9
|
|
BLAKE2b-256 checksum How to use checksums |
0fcff7d506aca3670e89e3bbd5ef849228f3909d25f47d8115167fd41efe5480
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.1
|
Release files / meteogis-0.1.0-py3-none-any.whl
| Download URL | meteogis-0.1.0-py3-none-any.whl |
|---|---|
| Size | 24.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
248a15eeebff12d3e6037c759e8d47812b30c4f839832ee6f575e200445d77d0
|
|
BLAKE2b-256 checksum How to use checksums |
ca79932493c2a6e795f31c939764b45c7cef2f0e3bafcb21fa634567dfbff81e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.1
|
Security for meteogis 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.