Flexible, portable, and efficient geospatial evaluations for a variety of data.
Project description
GVAL (pronounced "g-val") is a high-level Python framework to evaluate the skill of geospatial datasets by comparing candidates to benchmark maps producing agreement maps and metrics.
GVAL is intended to work on raster and vector files as xarray and geopandas objects, respectively. Abilities to prepare or homogenize maps for comparison are included. The comparisons are based on scoring philosophies for three statistical data types including categorical, continuous, and probabilistic.
See the full documentation here.
WARNING:
- Our current public API and output formats are likely to change in the future.
- Software is provided "AS-IS" without any guarantees. Please QA/QC your metrics carefully until this project matures.
Installation
General Use
To use this package:
pip install gval
Or for bleeding edge updates install from the repository:
pip install 'git+https://github.com/NOAA-OWP/gval'
Using GVAL
An example of running the entire process for two-class categorical rasters with one function using minimal arguments is demonstrated below:
import gval
import rioxarray as rxr
candidate = rxr.open_rasterio('candidate_map_two_class_categorical.tif', mask_and_scale=True)
benchmark = rxr.open_rasterio('benchmark_map_two_class_categorical.tif', mask_and_scale=True)
(agreement_map,
crosstab_table,
metric_table) = candidate.gval.categorical_compare(benchmark,
positive_categories=[2],
negative_categories=[0, 1])
Outputs
agreement_map
crosstab_table
metric_table
For more details on how to use this software, check out this notebook tutorial.
Contributing
Guidelines for contributing to this repository can be found at CONTRIBUTING.
Citation
Please cite our work if using this package. See 'cite this repository' in the about section on GitHub or refer to CITATION.cff
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gval-0.2.2.tar.gz
.
File metadata
- Download URL: gval-0.2.2.tar.gz
- Upload date:
- Size: 59.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65d0e97434f04a472eaabfdee7ce8f748cd9de8ea7a7ae0eee174f4c04b76e63 |
|
MD5 | bde83e91b96c3947fca0d783575be7a0 |
|
BLAKE2b-256 | d7367600e70162a30ba0d8de3abdc540080221f8ed1640c6ac1c4c84e960dc20 |
File details
Details for the file gval-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: gval-0.2.2-py3-none-any.whl
- Upload date:
- Size: 64.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 838009cd6a5c9c653f4f06bf17094b29782e97760c8d86032bad2594eccb3656 |
|
MD5 | 2897e8b876375fb1dded13ea95e7eeec |
|
BLAKE2b-256 | cf06169e2dd4a80849b01a5fb58f50be7d11e714ef8d3727689fd6766e604138 |