Skip to main content

gridwxcomp

Build Documentation Status Downloads per month PyPI version


A package for comparing weather station data to gridded weather data that are hosted on Google Earth Engine. Major functionality includes:

  • parsing of multiple weather stations and weather variables and metadata

  • downloading point data from gridded datasets on Google Earth Engine at weather station locations

  • temporal pairing of station and gridded data

  • unit handling and automated conversions

  • calculation of mean bias ratios between station and gridded data and related statistics

  • performing spatial mapping and interpolation of bias ratios with multiple options

  • calculation of residuals between spatially interpolated bias ratios and those computed at station locations

  • building geo-referenced vector and raster data of spatially interpolated and point data

  • zonal averaging of spatially interpolated bias results using a fishnet grid

  • interactive graphics (time series, scatter, and bar charts) comparing station and gridded data

Bias ratios calculated by gridwxcomp can be used to correct bias of grid to station data based on the properties of the stations. For example, monthly humidity ratios between station and grid for stations within agricultural settings can be used to estimate grid bias relative to agricultural locations.

gridwxcomp has been used to create monthly bias ratios of gridMET reference evapotranspiration (ETo) data relative to ETo calculated at irrigated weather stations. The bias ratios were subsequently interpolated and used to correct gridMET ETo which is a key scaling flux for most of the remote sensing models that are part of the OpenET platform.

Documentation

Online documentation

Installation

Currently we recommend using the provided conda environment file to install gridwxcomp and its dependencies in a virtual environment. Download the environment.yml file and then install and activate it. If you don’t have conda get it here. To install dependencies in a virtual environment run

$ conda env create -f environment.yml

To activate the environment before using gridwxcomp run

$ conda activate gridwxcomp

Optionally, install using pip,

$ pip install gridwxcomp

Due to dependency conflicts you may have issues directly installing with pip before activating the conda environment.

Alternatively, or if there are installation issues, you can manually install. First activate the gridwxcomp conda environment (above). Next, clone or download the package from GitHub or PyPI and then install locally with pip in “editable” mode. For example with cloning,

$ git clone https://github.com/WSWUP/gridwxcomp.git
$ cd gridwxcomp

If you are experiencing errors on installing the gridwxcomp conda environment above with dependencies. For example, if the Shapely package is not installing from the enironment.yml file, remove it or modify it from the “setup.py” file in the install requirements section before you install gridwxcomp from source with:

$ pip install -e .

More help with installation issues related to dependency conflicts can be found in the gridwxcomp issues on GitHub, be sure to check the closed issues as well.

Metadata

Release files for gridwxcomp 0.2.0

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

Source distribution (sdist)

Source distribution for gridwxcomp 0.2.0
File Size Uploaded
gridwxcomp-0.2.0.tar.gz 1.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for gridwxcomp 0.2.0
File Interpreter ABI Platform
gridwxcomp-0.2.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 3.8 MB

Release files / gridwxcomp-0.2.0.tar.gz

Download URL gridwxcomp-0.2.0.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
770102b6b93fcb853d5a828e23b18a7af2e5eccca8a582303a66846c0c2f018d
BLAKE2b-256 checksum
How to use checksums
5c55e78366c41727ba8470fd6af7b21de01f8a8b1c6ac4451953c61d97521d47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.5

Release files / gridwxcomp-0.2.0-py2.py3-none-any.whl

Download URL gridwxcomp-0.2.0-py2.py3-none-any.whl
Size 1.9 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
fd7d8f90055f2f00f024d0a37fe21903fe84d16cb96788a12f4e2458cc250631
BLAKE2b-256 checksum
How to use checksums
665b8264c75521c81ae4af7adaa993cc44e974ed2d0bf71e6e63225b21a3b26d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.5
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