Skip to main content

DOI License geovista Binder

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.10
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 GitHub repository: URaster Example Data on GitHub. Please refer to the README in the data repository for details on the datasets and how to use them.

If you want to run the example notebook in this repository, the input data will be automatically downloaded from the data repository when you run the notebook.

If you want to run the example Python code in this repository, you then need to download the input data from the data repository and update the file paths in the code accordingly.

📚 Documentation

📊 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.

Metadata

Release files for uraster 0.1.8

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

Source distribution (sdist)

Source distribution for uraster 0.1.8
File Size Uploaded
uraster-0.1.8.tar.gz 65.8 kB Details

Built distribution (wheel)

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

Total release size: 130.0 kB

Release files / uraster-0.1.8.tar.gz

Download URL uraster-0.1.8.tar.gz
Size 65.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a4714aad7d3ba1d8ac4c979d7b204b0c5808dff33d0200ee619872e05e1e0967
BLAKE2b-256 checksum
How to use checksums
e05cfad040e94c9fc74495cf954107440f0c93fe9fc35a7755b99e4f09bbd8f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / uraster-0.1.8-py3-none-any.whl

Download URL uraster-0.1.8-py3-none-any.whl
Size 64.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc1bae586b5853717ffc13833f4b4d5f5cf0111e7cbbb2663d9d560d09d376f3
BLAKE2b-256 checksum
How to use checksums
bafd9473a155038a121e22215c40c5e43eb7f090a94b3e04454b8b27b3133501
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.0

2 release files

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