gridwxcomp

gridwxcomp: A Python package to evaluate and interpolate biases between station and gridded weather data - Published in JOSS (2025)

https://github.com/wswup/gridwxcomp

Science Score: 98.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 6 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org
  • Committers with academic emails
    1 of 4 committers (25.0%) from academic institutions
  • Institutional organization owner
    Organization wswup has institutional domain (www.dri.edu)
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords

bias-correction climate data gridded spatial-analysis weather

Scientific Fields

Mathematics Computer Science - 40% confidence
Last synced: 4 months ago · JSON representation

Repository

Comparison of weather station and gridded climate datasets

Basic Info
Statistics
  • Stars: 20
  • Watchers: 5
  • Forks: 8
  • Open Issues: 3
  • Releases: 6
Topics
bias-correction climate data gridded spatial-analysis weather
Created almost 7 years ago · Last pushed 11 months ago
Metadata Files
Readme Changelog License

README.rst

gridwxcomp
==========

|Build| |Documentation Status| |Downloads per month| |PyPI version| |JOSS|

-----------

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 

.. code-block:: bash

    $ conda env create -f environment.yml

To activate the environment before using ``gridwxcomp`` run

.. code-block:: bash

    $ conda activate gridwxcomp

After installing all the dependencies using conda, install ``gridwxcomp`` using `pip `_,

.. code-block:: bash

    $ pip install gridwxcomp

Due to dependency conflicts you may have issues directly installing with pip before activating the conda environment. This is because the package includes several modules that are not pure Python such as GDAL and pyproj which seem to be better handled by conda. 

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,

.. code-block:: bash

    $ 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:

.. code-block:: bash

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

How to contribute
-----------------
We welcome contributions, big or small, from the community to ``gridwxcomp``! Please review our `Contribution and community guidelines `_ for more information. 

How to cite
-----------
If you use ``gridwxcomp`` for research or published works, please use the following citation: 

Volk et al., (2025). *gridwxcomp: A Python package to evaluate and interpolate biases between station and gridded weather data*. Journal of Open Source Software, 10(105), 7178. https://doi.org/10.21105/joss.07178


.. |Build| image:: https://github.com/WSWUP/gridwxcomp/actions/workflows/gridwxcomp_tests.yml/badge.svg
   :target: https://github.com/WSWUP/gridwxcomp/actions

.. |Downloads per month| image:: https://img.shields.io/pypi/dm/gridwxcomp.svg
   :target: https://pypi.python.org/pypi/gridwxcomp/

.. |Documentation Status| image:: https://img.shields.io/website-up-down-green-red/http/shields.io.svg
   :target: https://wswup.github.io/gridwxcomp/

.. |PyPI version| image:: https://img.shields.io/pypi/v/gridwxcomp.svg
   :target: https://pypi.python.org/pypi/gridwxcomp/

.. |JOSS| image:: https://joss.theoj.org/papers/10.21105/joss.07178/status.svg
   :target: https://doi.org/10.21105/joss.07178

Owner

  • Name: Western States Water Use Program (WSWUP)
  • Login: WSWUP
  • Kind: organization
  • Location: Reno, NV

WSWUP housed at the Desert Research Institute aims to advance crop and open water use estimates through observations and open modeling tools

JOSS Publication

gridwxcomp: A Python package to evaluate and interpolate biases between station and gridded weather data
Published
January 20, 2025
Volume 10, Issue 105, Page 7178
Authors
John M. Volk ORCID
Desert Research Institute, Reno, USA
Christian Dunkerly ORCID
Desert Research Institute, Reno, USA
Christopher Pearson
Desert Research Institute, Reno, USA
Charles G. Morton
Desert Research Institute, Reno, USA
Justin L. Huntington
Desert Research Institute, Reno, USA
Editor
Hugo Ledoux ORCID
Tags
hydrology interpolation weather station meteorology Google Earth Engine

GitHub Events

Total
  • Create event: 1
  • Release event: 1
  • Issues event: 2
  • Watch event: 5
  • Issue comment event: 1
  • Push event: 10
  • Pull request event: 2
  • Fork event: 1
Last Year
  • Create event: 1
  • Release event: 1
  • Issues event: 2
  • Watch event: 5
  • Issue comment event: 1
  • Push event: 10
  • Pull request event: 2
  • Fork event: 1

Committers

Last synced: 4 months ago

All Time
  • Total Commits: 272
  • Total Committers: 4
  • Avg Commits per committer: 68.0
  • Development Distribution Score (DDS): 0.125
Past Year
  • Commits: 14
  • Committers: 2
  • Avg Commits per committer: 7.0
  • Development Distribution Score (DDS): 0.214
Top Committers
Name Email Commits
John Volk j****8@g****m 238
Chris Pearson c****n@d****u 26
Christian Dunkerly 2****y 7
Christian Dunkerly c****n@c****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 25
  • Total pull requests: 5
  • Average time to close issues: 5 months
  • Average time to close pull requests: 26 days
  • Total issue authors: 9
  • Total pull request authors: 3
  • Average comments per issue: 1.08
  • Average comments per pull request: 0.2
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 3
Past Year
  • Issues: 2
  • Pull requests: 1
  • Average time to close issues: 3 days
  • Average time to close pull requests: about 10 hours
  • Issue authors: 2
  • Pull request authors: 1
  • Average comments per issue: 0.5
  • Average comments per pull request: 1.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • cpearson1 (11)
  • JohnVolk (5)
  • jhuntington (2)
  • amygalanter (2)
  • ThomasOtt314 (1)
  • hwilkie-usgs (1)
  • yagciali2002 (1)
  • dvalters (1)
  • dmcevoy (1)
Pull Request Authors
  • dependabot[bot] (6)
  • cwdunkerly (2)
  • JohnVolk (2)
Top Labels
Issue Labels
enhancement (1) bug (1) wontfix (1)
Pull Request Labels
dependencies (6)

Packages

  • Total packages: 3
  • Total downloads:
    • pypi 42 last-month
  • Total dependent packages: 0
    (may contain duplicates)
  • Total dependent repositories: 0
    (may contain duplicates)
  • Total versions: 43
  • Total maintainers: 1
proxy.golang.org: github.com/WSWUP/gridwxcomp
  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.4%
Average: 5.6%
Dependent repos count: 5.8%
Last synced: 4 months ago
proxy.golang.org: github.com/wswup/gridwxcomp
  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.4%
Average: 5.6%
Dependent repos count: 5.8%
Last synced: 4 months ago
pypi.org: gridwxcomp

Compare meterological station data to gridded data

  • Versions: 35
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 42 Last month
Rankings
Dependent packages count: 10.1%
Forks count: 13.3%
Stargazers count: 15.2%
Downloads: 17.9%
Average: 24.8%
Dependent repos count: 67.4%
Maintainers (1)
Last synced: 4 months ago

Dependencies

requirements.txt pypi
  • Fiona ==1.8.13
  • GDAL ==3.0.4
  • Shapely ==1.6.4
  • Shapely ==1.7.0
  • bokeh ==2.4.3
  • click ==7.1.2
  • numpy ==1.21.6
  • pandas ==1.3.5
  • pytest ==7.4.4
  • rasterio ==1.1.5
  • rasterstats ==0.19.0
  • refet ==0.4.2
  • scipy ==1.7.3
  • setuptools ==59.8.0
  • xarray ==0.20.2
setup.py pypi
.github/workflows/gridwxcomp_tests.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v3 composite
  • google-github-actions/auth v2 composite
docs/requirements.txt pypi
  • sphinx <7.0
gridwxcomp/env/environment.yml pypi