Skip to main content

Flexible, portable, and efficient geospatial evaluations for a variety of data.

Reason this release was yanked:

Testing not intended for use

Project description

alt text

Build and TestCoverage

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

alt text

crosstab_table

alt text

metric_table

alt text

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gval-0.1.1a0.tar.gz (46.9 kB view details)

Uploaded Source

Built Distribution

gval-0.1.1a0-py3-none-any.whl (52.5 kB view details)

Uploaded Python 3

File details

Details for the file gval-0.1.1a0.tar.gz.

File metadata

  • Download URL: gval-0.1.1a0.tar.gz
  • Upload date:
  • Size: 46.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for gval-0.1.1a0.tar.gz
Algorithm Hash digest
SHA256 9775c4505a1c733ed57074c661bc8cb00c62dbda5d9851ecdf30d045a69c9bff
MD5 ea7398c5d92082e4e7ec6e0420d19d24
BLAKE2b-256 cfad0bf6b1a2ae9d412a76b71ed715f40dce6d9bb42d5366e29686e69000e17a

See more details on using hashes here.

File details

Details for the file gval-0.1.1a0-py3-none-any.whl.

File metadata

  • Download URL: gval-0.1.1a0-py3-none-any.whl
  • Upload date:
  • Size: 52.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for gval-0.1.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 51bb2367984802519ff6ddba4586009c66b5177e73a4ceaaa1c304b8cd1d22f8
MD5 6e98bd9a3e1b9f090e7353ea766eb465
BLAKE2b-256 d7756e2e31d6c798690f413e53aacc10d910112008c7c78d9b47d9b6e1d1b68c

See more details on using hashes here.

Supported by

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