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

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.

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.0.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: gridwxcomp-0.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 770102b6b93fcb853d5a828e23b18a7af2e5eccca8a582303a66846c0c2f018d
MD5 0e7b91d244f7a7936d3b0b9114e62770
BLAKE2b-256 5c55e78366c41727ba8470fd6af7b21de01f8a8b1c6ac4451953c61d97521d47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gridwxcomp-0.2.0-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.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fd7d8f90055f2f00f024d0a37fe21903fe84d16cb96788a12f4e2458cc250631
MD5 b1d14dcc7bc7d39b6ac7de86855312b8
BLAKE2b-256 665b8264c75521c81ae4af7adaa993cc44e974ed2d0bf71e6e63225b21a3b26d

See more details on using hashes here.

Supported by

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