Meteomatics Weather API Connector

This package contains routines to query meteorological and maritime data from the Meteomatics Weather API.
Updated 1 Jun 2023

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Accessing weather, ocean or environmental data should be simple: Meteomatics provides a REST-full Weather API to global historical, current, forecast and climate data. This includes derived data from different centers (GFS, ECMWF, UK MetOffice, Env. Canada etc...), radar data, satellite images, weather stations, lightning data, digital elevation model data, ocean and maritime data. Moreover, you can also retrieve derived parameters like wind power and solar power data and forecasts for any given location.
The API provides time series as well as spatial gridded data. The latter is also offered through a WMS/WFS-compatible interface. This package includes some examples to enable a quick start when dealing with this API.
An extensive online documentation is available through .

Cite As

Martin Fengler (2024). Meteomatics Weather API Connector (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: xml2struct

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!


Version Published Release Notes

Smaller changes to the documentation because of the move from datenum to datetime

- Major change: switching the interfaces from datenum to datetime
- Smaller bug fixes

Minor bug fixes around query limitations.

Removed dependency to Mapping toolbox

Added function to query satellite and radar images from Weather API

- improved error handling

- added a live script demo
- improved documentation

- removed some typos

- Improved error handling
- changed from webread to basic HTTP communication

Removed unnecessary files.

Minor changes/updates to become compatible with more recent MATLAB versions.

Simplified access to query time series and gridded data. Added scripts to:
- query weather data for a set of geolocations,
- query weather station data in a given domain.

Introduced bug fixes due to changes in webread. Changes due to new API licensing mechanism.

Force webread to use txt option.

Bug fix in time series query for Matlab version <=9.0.

Bug fix for Matlab 2017b

Bug fix in tmp variable for Matlab Version 9.0.

Fixed a bug with Matlab versions newer than 2017.

Change to BSD license.