meteomatics

Crates.iometeomatics
lib.rsmeteomatics
version0.2.2
sourcesrc
created_at2022-06-21 12:12:35.630431
updated_at2022-07-08 11:40:53.008465
descriptionQuery weather and climate data from the Meteomatics API (https://www.meteomatics.com/en/)
homepagehttps://www.meteomatics.com/en/
repositoryhttps://github.com/meteomatics/rust-connector-api
max_upload_size
id610190
size172,453
Meteomatics (meteomatics)

documentation

README

Rust Connector for the Meteomatics API

logo Rust

rust-connector-api

Meteomatics provides a REST-style API to retrieve historic, current, and forecast data globally. This includes model data and observational data in time series and areal formats. Areal formats are also offered through a WMS/WFS-compatible interface. Geographic and time series data can be combined in certain file formats, such as NetCDF.

Simply add the meteomatics crate to the dependencies of your project.

For a start we recommend to inspect and play with the examples.

  • Change to the meteomatics directory using cd meteomatics
  • Open and inspect the documentation for the connector cargo doc --lib --no-deps --open
  • Open and inspect the documentation for the examples cargo doc --examples --no-deps --open
  • cargo run --example 00_timeseries
  • cargo run --example 01_pivoted_grid
  • cargo run --example 02_unpivoted_grid

For developers

  • create a file called .env inside the repository root and add:
METEOMATICS_USER=your_username
METEOMATICS_PW=your_password
  • Change to the meteomatics directory using cd meteomatics
  • Run the various tests using cargo test

Notes

  • Tested on rustc 1.60.0 and rustc 1.61.0.
Commit count: 145

cargo fmt