How to read and plot SM-DAS-2 and SM-DAS-3 Grib filesThe SM-DAS-2 and SM-DAS-3 products are provided in GRIB-1 format, on a reduced Gaussian grid at the resolution T799 and T1279, corresponding to 25 km and 16 km respectively. There are several tools available to read and plot grib files. Three applications and examples are provided to read and plot data from grib files: 1 Use GRIB API to extract time series over specific sites We recommend to use the GRIB API software to read grib files. GRIB API can be downloaded from the ECMWF GRIB API web page. It needs to be used under Linux or UNIX systems. For example if your SM-DAS-2 grib file is named SM-DAS-2_2009122700.grib, the command to extract data from the four nearest grid points from latitude YLAT and longitude XLON is: A more comprehensive script (and readme file) is given here with GRIB API to extract time series over four test sites. The example contains 3 directories: 2 Use Metview-python and other python libraries for reading and plotting
For any further information about using metview-python to read and plot SM-DAS-2/SM-DAS-3, please contact David.Fairbairn@ecmwf.int. 3. Using Matlab Matlab is no longer supported at ECMWF. However, it is possible to read GRIB files using Matlab, which can be used on Unix, Linux and Windows systems. The library can be downloaded from read_grib_1.5.tar.gz . Tools to read SM-DAS-2 from matlab are available at example_readgrib.rar. |