Posts

Handling data in Lambert Conformal Conic projections

6 Jun 2017

I want to extract a time series of wind forecast values for a specific location from a GRIB file issued by Met Eireann as part of the MERA reanalysis project. In a previous post I listed several software tools for interrogating GRIB files. For various reasons, I wasn't able to persuade any of those tools to do what I needed.

NASA GISS' Panoply viewer was useful for visualisation, and it does have a facility for bulk export of data to CSV files. However, as the files are exported as "flat" CSV, they are very large. Furthermore, without knowing the details of how the CSV files are structured, the file layout is difficult to interpret. There is the additional problem of georeferencing the exported data to given latitude/longitude pairs, as the values are exported on the model's Easting-Northing grid.

Before going further, some details of the MERA dataset are relevant: the projection is Lambert Conic Conformal. The GRIB file format is GRIB-1. The data are provided on an x-y (Easting-Northing) grid.

I wrote some Matlab routines based on the formulae provided in [1] and [2] to calculate latitudes and longitudes for the MERA grid cells for the Lambert Conformal Conic projection (code available on github). I could use those to find the co-ordinates of MERA grid cells corresponding to the latitude and longitude of particular locations of interest. But I still wasn't able to extract the data from the GRIB file even when the grid cell co-ordinates were known. CDO appears to have difficulty with Lambert Conformal Conic projections. The NCL tools could not be persuaded to extract data.

In the end, following a tip from Met Eireann, I turned to the GRIB_API provided by ECMWF. Some useful command-line tools are provided with the API package and I was able to use these to query and "slice and dice" the MERA GRIB files. I'll provide the details in another post. [1] European Petroleum Survey Group. Guidance Note Number 7 on "POSC literature pertaining to Coordinate Conversions and Transformations including Formulas", pp. 17-18. [2] US Geological Survey Professional Paper 1394, "Map projections -a working manual". Snyder, J. P. (1987) pp. 107-108.

Electricity and Environment Laboratory

Renewable energy and land-atmosphere interactions research

Top