Skip to main content

MeteoGIS

MeteoGIS 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.1

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.1
File Size Uploaded Provenance Actions
meteogis-1.0.1.tar.gz 19.7 kB Without provenance Details for meteogis-1.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 43.9 kB

Release files / meteogis-1.0.1.tar.gz

Download URL meteogis-1.0.1.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d596741c7b1801fe74f0f39bdff9f21b0970a7c9e2af7ae81877b71c02b7e754
BLAKE2b-256 checksum
How to use checksums
ec209e50ec61ede29a9d9195a96cf9aaf80f3b811192248c6864edf0aa7b027c
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.1-py3-none-any.whl

Download URL meteogis-1.0.1-py3-none-any.whl
Size 24.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5af69e5a5db2b44e22924000150729b9fae78cd7052bf8ae4a5bb1f1958ff53c
BLAKE2b-256 checksum
How to use checksums
715177f2d79d21a2fbb18a7ef2e6b290f78f8fb5f5b5a7aae6ada5eb82070167
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.1

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