Monday, March 12, 2007

Smoothing GRIB Data

In order to minimize the size of the data that come back from the GRIB requests, I am working on some smoothing feature for the GRIB viewer. This intends to render a smoothed view of the GRIB files, even if the cells are bigger than 1 degree by 1 degree. This smoothing can also happen along the time dimension, from one GRIB layer to another, which would allow a better routing.
The idea is to determine the four closest GRIB points, and smooth the wind speed and direction, geographically, and along time, in case the GRIB has several frames, and you request the wind data between two frames. On the right is a first test of such a smoothing. The red are the GRIB data, the blue are calculated by the smoothing algorithm.

No comments: