GRIB_1_Viewer

Version 1.0.0 (64.5 MB) by John
This is an application written in MATLAB that can read GRIB1 files and visualize meteorological parameters.
80 Downloads
Updated 31 Mar 2023

GRIB1 Viewer

A MATLAB Application for Visualizing Meteorological Parameters

Example Image

This is an application written in MATLAB that can read GRIB1 files and visualize meteorological parameters. Due to size constraints, this application only includes map data for Europe.

Usage

The purpose of this application is to provide an easy way to visualize meteorological parameters from GRIB1 files. To use the application, open the main MATLAB script called "Grib_1_viewer.m" and run it. When the script is executed, it will open a graphical user interface (GUI) that allows you to visualize the contents of the GRIB1 files. This application has been tested on both Windows 10 64 and Linux platforms. If you want to use the application on Linux, you will need to alter the "Grib_1_viewer.m" file by replacing the backslashes "" with forward slashes "/" and copying it to the appropriate Linux folder.

The INPUT_GRIB directory is a required component of the application, as it contains sub-folders that represent different models. Each sub-folder must contain files with the same projection in order for them to be read correctly. Additionally, the GRIB files within the sub-folders must have a ".grb" extension (e.g. "test.grb") in order to be recognized by the application. Finally, the "stations.xls" file is also a required component to allow for point stations to be plotted during the first load. This application has been tested with MATLAB versions 16b and 17a.

After the main GUI window has opened, you need to manually select the corresponding sub-directory, which refers to the specific "model", from the upper left corner of GUI.

Code Modifications and Future Work

This application uses C code for MEX files, which has been modified to export the output to a text file in the filesystem and then read the text file back into MATLAB. This was done as a temporary solution until further work can be done to properly modify the code to assign the data to a matrix inside MATLAB. Future work for this application can include modifying the code to read GRIB2 files using nctoolbox. Currently, the application only supports GRIB1 files due to limitations with the code. By extending the capabilities of the application to read GRIB2 files, users can expand the range of data that can be visualized.

Data

This application requires GRIB edition 1 data to function properly. Due to size limitations, the application only includes data for a specific region. The application can visualize data in several projections, including regular lat-lon, Lambert, and rotated lat-lon. However, orthographic projection is not currently supported. All of the previously mentioned projections will be visualized in the regular lat-lon projection.

Credits

This application uses code and tools from the following sources:

nctoolbox by B. Schlining, R. Signell, A. Crosby, Github repository (https://github.com/nctoolbox/nctoolbox)

export_fig by Oliver Woodford and Yair Altman, GitHub repository (https://github.com/altmany/export_fig/releases/tag/v3.34)

Efficient GRIB1 data reader by Shugong Wang, MATLAB Central File Exchange (https://www.mathworks.com/matlabcentral/fileexchange/53705-efficient-grib1-data-reader)

Wind barb plotter by Nicholas, MATLAB Central File Exchange (https://www.mathworks.com/matlabcentral/fileexchange/33851-wind-barb-plotter)

MY_XTICKLABELS by Pekka Kumpulainen, MATLAB Central File Exchange (https://www.mathworks.com/matlabcentral/fileexchange/19059-my_xticklabels)

maximize by Oliver Woodford, MATLAB Central File Exchange (https://www.mathworks.com/matlabcentral/fileexchange/25471-maximize)

Purpose

This application is designed to offer an uncomplicated method for visualizing meteorological parameters for scientific purposes, such as publishing in scientific journals. The code is flexible and can be adapted to function in various regions.

Cite As

John (2024). GRIB_1_Viewer (https://github.com/i-samos/GRIB_1_Viewer/releases/tag/v1.0.0), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.