Skip to main content

Download meteorological data for the General Lake Model

Project description

GLM-met

A Python package for downloading meteorological data and processing it to formats required for running the GLM model and other water balance models.

GLM

GLM is a 1-dimensional lake water balance and stratification model. It is coupled with a powerful ecological modelling library to also support simulations of lake water quality and ecosystems processes.

GLM is suitable for a wide range of natural and engineered lakes, including shallow (well-mixed) and deep (stratified) systems. The model has been successfully applied to systems from the scale of individual ponds and wetlands to the scale of Great Lakes.

For more information about running GLM please see the model website's scientific basis description and the GLM workbook.

The GLM model is available as an executable for Linux (Ubuntu), MacOS, and Windows. It is actively developed by the Aquatic EcoDynamics research group at The University of Western Australia.

Install

pip install glm-met

Use

Import the glm-met package into a Python program and use to download meteorological data from a supported data provider.

The following Jupyter notebook can be opened on Google Colab to demonstrate how glm-met can be used to download meteorological data from NASA POWER's API:

Open In Colab
import os
import glm_met.nasa_power.nasa_power as nasa_power

# initialise a Power object
# the object attributes are set to:
# - query the NASA POWER API 
# - query for hourly met data from 2020 to 2022
# - query a location in Western Australia

power = nasa_power.Power(
    location=(116.6, -32.17), 
    date_range=("20200101", "20221231"), 
    met_data=None,
    glm_met_data=None,
    parameters=None,
)

# make a call to the NASA POWER API
# download requested data and store as DataFrame
# in the `power.met_data.data` attribute
power.get_variables(request_settings=None)

# convert downloaded data to GLM format
power.convert_to_glm()

# write downloaded data to disk
power.write_glm_met(path=os.getcwd(), zip_f=False, fname="met.csv")

Data Providers

glm-met provides a base class that can be extended to support a range of meteorological data providers.

SILO

SILO is a database of daily, pre-processed Australian climate data from 1889 to the present day. The product is hosted by the Queensland Department of Environment and Science (DES) and is based on observational data from the Bureau of Meteorology and other providers. It is made available under the Creative Commons Attribution 4.0 International (CC BY 4.0) licence.

glm-met retrieves SILO data from the patched point dataset (weather station data) and the drill down (point-like data extracted from a gridded product).

NASA POWER

NASA Prediction of Worldwide Energy Resources (POWER) provides solar and meteorological data available at monthly, daily, and hourly time steps via the NASA POWER Data Services API. The NASA POWER project is funded by NASA's Applied Science Program and the data is available from the 1980s until near real time. The solar radiation data is derived from several remote sensing-based products at a 1.0° grid cell spatial resolution. The meteoroloical data is based on GMAO MERRA-2 reanalysis and assimilation of observations data at a 0.5° grid cell spatial resolution.

The hourly data from NASA POWER is available from 2001. Currently, glm-met provides tools to retrieve hourly data from the NASA POWER API.

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

glm-met-0.0.7.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

glm_met-0.0.7-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file glm-met-0.0.7.tar.gz.

File metadata

  • Download URL: glm-met-0.0.7.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for glm-met-0.0.7.tar.gz
Algorithm Hash digest
SHA256 981308248c8c502a87b10c816cc12fec8f8619d41bb46191739e1f57ec22ddb9
MD5 9d835a7acb424c1e3c085be3e7e76dac
BLAKE2b-256 0a748234e8a9801b8dd0a9453498532cbde0d813bced0c6fea239f19e8520484

See more details on using hashes here.

File details

Details for the file glm_met-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: glm_met-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for glm_met-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2548225702ef25f3a47f3c3f16bf71d04748d19edf8f051250e0424337283d59
MD5 d75c9e3506e64052fd73e2cc6e8da695
BLAKE2b-256 2095cfec8ec3736ceb5137f4c6ddf97a6bad7575ba34ff069b0d19b40c29d8f3

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