Skip to main content

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)
  • 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, and fiona may 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 functions
  • src/meteogis/raster/ — raster processing helpers
  • src/meteogis/vector/ — vector geometry operations
  • src/meteogis/io/ — read/write helpers for geospatial data

Contributing

Contributions are welcome.

  1. Fork the repository
  2. Create a feature branch
  3. Add or update tests and documentation
  4. Submit a pull request

License

This project is licensed under the MIT License.

Author

David Akinduyile — thatpythonguy96@gmail.com

Metadata

Release files for meteogis 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meteogis 1.0.0
File Size Uploaded Provenance Actions
meteogis-1.0.0.tar.gz 19.7 kB Without provenance Details for meteogis-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for meteogis 1.0.0
File Interpreter ABI Platform Actions
meteogis-1.0.0-py3-none-any.whl Python 3 none any Details for meteogis-1.0.0-py3-none-any.whl

Total release size: 43.8 kB

Release files / meteogis-1.0.0.tar.gz

Download URL meteogis-1.0.0.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5c4a1d5fb2ce3046f4d7f4d7ff0f7550ed36c6952e6e40229739253e2f48a7ce
BLAKE2b-256 checksum
How to use checksums
5c9ef4ae1319b39bda04a1a2d5dde0c736a473b5847bf93ef9f9a456e6cbab6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.1

Release files / meteogis-1.0.0-py3-none-any.whl

Download URL meteogis-1.0.0-py3-none-any.whl
Size 24.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9fa3d9f37226a85bd6d55014d3fe886740fcd1c199003411aac6ee67e5b9347
BLAKE2b-256 checksum
How to use checksums
1517bfb0b824d39e76bea443d7ebca440e8976676952ead18fdda0a66dbb3de5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.1

Security for meteogis 1.0.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page