Skip to main content

A Python package for unstructured raster processing and remapping

Project description

DOI PyPI version License

URaster: Structured Raster to Unstructured Mesh

Overview

URaster is a Python package to convert structured raster datasets into unstructured mesh structure, designed to bridge the gap between structured raster datasets and unstructured mesh-based hydrologic and land surface models. It leverages GDAL/OGR for robust data handling.

✨ Core Features

  • GDAL-Native Vector Handling: Uses the standard GDAL/OGR engine for defining unstructured mesh cells, and performing projection-aware geospatial operations. It also support mesh cells that cross the International Date Line (IDL).

  • Standard Vector I/O: Instead of directly operating on various mesh standards, it utilizes standard geographic information system vector formats (e.g., GeoJSON) for mesh operations, ensuring broad compatibility. It supports transformation APIs between existing meshes and standard vector formats.

  • Projection-Aware Operations: Handles (raster dateaset) map projection differences to ensure accurate aggregation of raster values within each polygon.

  • Interactive GeoVista API: Offers simple functions to visualize the input and the output vector layers on a 3D sphere.

Static visualization of the unstructured mesh on a sphere using GeoVista: Unstructured Mesh Visualization

Animated visualization of the unstructured raster on a sphere using GeoVista: Unstructured Raster Visualization

💻 Installation

URaster requires GDAL for vector handling and GeoVista (which relies on PyVista/VTK) for 3D visualization.

⚠️ GDAL Note: Installing GDAL's Python bindings can be complex via pip due to platform dependencies. We strongly recommend using Conda for a stable installation of GDAL and all dependencies.

Install via Conda (Recommended)

# Create a new conda environment (recommended)
conda create -n uraster-env python=3.9
conda activate uraster-env

# Install uraster and all dependencies via conda
conda install -c conda-forge uraster

🚀 Quick Start

Quickstart documentation

Example datasets are provided through the Zenodo repository: URaster Example Data on Zenodo

## 📚 Documentation

- [API Reference](https://uraster.readthedocs.io/en/latest/api.html)

## 📊 Supported Formats

- **Mesh formats**: GeoJSON, Shapefile, any OGR-supported vector format
- **Raster formats**: GeoTIFF, NetCDF, HDF5, any GDAL-supported raster format
- **Output formats**: Vectors (with computed statistics), PNG/JPG (visualizations), MP4/GIF (animations)

## 🙏 Acknowledgments

The model described in this repository was supported by the following:

* the U.S. Department of Energy Office of Science Biological and Environmental Research through the Earth System Development program as part of the Energy Exascale Earth System Model (E3SM) project.

* the Earth System Model Development and Regional and Global Model Analysis program areas of the U.S. Department of Energy, Office of Science, Biological and Environmental Research program as part of the multi-program, collaborative Integrated Coastal Modeling (ICoM) project.

* the Earth System Model Development and Regional and Global Model Analysis program areas of the U.S. Department of Energy, Office of Science, Biological and Environmental Research program as part of the multi-program, collaborative Interdisciplinary Research for Arctic Coastal Environments (InteRFACE) project.

A portion of this research was performed using PNNL Research Computing at Pacific Northwest National Laboratory.

PNNL is operated for DOE by Battelle Memorial Institute under contract DE-AC05-76RL01830.

## 🤝 Contributing & License

We welcome contributions! Please open an issue or submit a pull request on the GitHub repository.

**uraster** is distributed under the BSD 3-Clause License.

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

uraster-0.1.5.tar.gz (61.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uraster-0.1.5-py3-none-any.whl (58.7 kB view details)

Uploaded Python 3

File details

Details for the file uraster-0.1.5.tar.gz.

File metadata

  • Download URL: uraster-0.1.5.tar.gz
  • Upload date:
  • Size: 61.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for uraster-0.1.5.tar.gz
Algorithm Hash digest
SHA256 cbf1b801ff6ae154b54ddaf58561ab17d82e43170cff237a16fbabeab86acf85
MD5 8c43b07a6a9d1e6c231d8c3269dfebd5
BLAKE2b-256 ce82f3305dc61d8ac23ffb7c26f6c54852c4fa4c29610d5f92a52f8d1c051262

See more details on using hashes here.

File details

Details for the file uraster-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: uraster-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 58.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for uraster-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3ad66c412b87833eb6facad2b81bb9df3fbb1d75ca68e53e9f4c8f66e41ae332
MD5 cacf1dff1de08ecfcb0662426ba3ec77
BLAKE2b-256 fccd7ac2a8c3b09b2186e0eff5b0a1a763955deabe6aa7364b1b95f55ce91dce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page