A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

gridwxcomp

A package for comparing weather station data to gridded weather data that are hosted on Google Earth Engine.
https://github.com/WSWUP/gridwxcomp

Category: Atmosphere
Sub Category: Meteorological Observation and Forecast

Keywords

bias-correction climate data gridded spatial-analysis weather

Last synced: about 7 hours ago
JSON representation

Repository metadata

Comparison of weather station and gridded climate datasets

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 metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 7 days ago

Total Commits: 272
Total Committers: 4
Avg Commits per committer: 68.0
Development Distribution Score (DDS): 0.125

Commits in past year: 73
Committers in past year: 2
Avg Commits per committer in past year: 36.5
Development Distribution Score (DDS) in past year: 0.068

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:


Issue and Pull Request metadata

Last synced: 2 days ago

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 request: 2
Bot issues: 0
Bot pull requests: 3

Past year issues: 2
Past year pull requests: 2
Past year average time to close issues: 3 days
Past year average time to close pull requests: 26 days
Past year issue authors: 2
Past year pull request authors: 2
Past year average comments per issue: 0.5
Past year average comments per pull request: 0.5
Past year merged pull request: 2
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/WSWUP/gridwxcomp

Top Issue Authors

  • cpearson1 (11)
  • JohnVolk (5)
  • jhuntington (2)
  • amygalanter (2)
  • ThomasOtt314 (1)
  • hwilkie-usgs (1)
  • yagciali2002 (1)
  • dvalters (1)
  • dmcevoy (1)

Top Pull Request Authors

  • dependabot[bot] (3)
  • cwdunkerly (1)
  • JohnVolk (1)

Top Issue Labels

  • enhancement (1)
  • bug (1)
  • wontfix (1)

Top Pull Request Labels

  • dependencies (3)

Package metadata

pypi.org: gridwxcomp

Compare meterological station data to gridded data

  • Homepage: https://github.com/WSWUP/gridwxcomp
  • Documentation: https://gridwxcomp.readthedocs.io/
  • Licenses: Apache
  • Latest release: 0.2.1 (published 4 months ago)
  • Last Synced: 2025-04-25T18:32:07.600Z (1 day ago)
  • Versions: 35
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 1,375 Last month
  • Rankings:
    • Dependent packages count: 10.052%
    • Forks count: 13.288%
    • Stargazers count: 15.188%
    • Downloads: 17.912%
    • Average: 24.76%
    • Dependent repos count: 67.358%
  • Maintainers (1)

Dependencies

requirements.txt pypi
  • Fiona ==1.8.13
  • GDAL ==3.0.4
  • Shapely ==1.7.0
  • Shapely ==1.6.4
  • 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
gridwxcomp/env/environment.yml conda
  • bokeh >=1
  • click >=7
  • fiona >=1.7.13
  • gdal
  • libgdal >=2.3
  • netcdf4
  • numpy >=1.15
  • openpyxl
  • pandas >=0.24
  • pip
  • python >=3.7
  • rasterstats >=0.13.0
  • refet >=0.3.7
  • scipy >=1.1.0
  • shapely 1.6.4.*
  • xarray
  • xlrd >=1.2.0

Score: 11.74872459554233