Skip to main content

Compare meterological station data to gridded data

Project description

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

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

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

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

How to contribute

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

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

gridwxcomp-0.2.1.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gridwxcomp-0.2.1-py2.py3-none-any.whl (1.9 MB view details)

Uploaded Python 2Python 3

File details

Details for the file gridwxcomp-0.2.1.tar.gz.

File metadata

  • Download URL: gridwxcomp-0.2.1.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for gridwxcomp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f7c158dbfc7d9415e20e98decdb1a9878b94fea6e51ea1cc8a3fbf8adfeaec10
MD5 1005e2ae549458d25502325a877dde6f
BLAKE2b-256 dfa07bf15b64c7f57d6f69a765b23e4df989df2482bcd91b4069930153d34621

See more details on using hashes here.

File details

Details for the file gridwxcomp-0.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: gridwxcomp-0.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for gridwxcomp-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ccbf3740d287d675fa073853a52b98ff5bef2a34bd25e511c6b2d78908a9f7c8
MD5 882d46d6061ff0bfd32a3eb92baded35
BLAKE2b-256 3a38ecc0cf951caafb6b3724a84f8195d7cbb0ae448856c334c197ed9a8316b2

See more details on using hashes here.

Supported by

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