Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/WSWUP/gridwxcomp
Comparison of weather station and gridded climate datasets
https://github.com/WSWUP/gridwxcomp
Last synced: 3 months ago
JSON representation
Comparison of weather station and gridded climate datasets
- Host: GitHub
- URL: https://github.com/WSWUP/gridwxcomp
- Owner: WSWUP
- License: apache-2.0
- Created: 2019-02-01T18:26:16.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-22T19:16:15.000Z (6 months ago)
- Last Synced: 2024-05-22T19:47:42.664Z (6 months ago)
- Language: Python
- Homepage: https://wswup.github.io/gridwxcomp/
- Size: 59.2 MB
- Stars: 14
- Watchers: 6
- Forks: 7
- Open Issues: 6
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGE_LOG.rst
- License: LICENSE.txt
Awesome Lists containing this project
- open-sustainable-technology - gridwxcomp - A package for comparing weather station data to gridded weather data that are hosted on Google Earth Engine. (Atmosphere / Meteorological Observation and Forecast)
README
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 dataBias 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 gridwxcompIf 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.
.. |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/