GribApiDotNet / GribApi.NET

A powerful .NET library for reading and writing GRIB 1 and 2 files
Apache License 2.0
54 stars 28 forks source link

Is there any method for interpolating data? #53

Closed guilhermecgs closed 7 years ago

guilhermecgs commented 7 years ago

I need to get wind and temperature from altitudes ranging from 1000 ft to 42000 ft

I know the grib2 (GFS) only have data for specific "isobaricInhPa" pressure, that does not correspond exactly to the altitude I want.

Is there any method in this library (or do you recommend another library) that does the interpolation?

0x1mason commented 7 years ago

I don't think so, though I don't use the project anymore. @jnyrup or @silv2015 may have a better idea.

jnyrup commented 7 years ago

Hi @guilhermecgs: Have a look at https://en.wikipedia.org/wiki/International_Standard_Atmosphere. It describes how altitude is a function of pressure and temperature and how different atmospheric layers has different lapse rates (change in temperature per distance). http://en.citizendium.org/wiki/Earth's_atmosphere#Pressure_profile_of_the_atmosphere describes two equations to calculate the altitude depending on which atmospheric layer you're in.

Three other resources I have found useful: http://code7700.com/pdfs/icao_doc_7488_standard_atmosphere.pdf has reference tables http://www.spaceagecontrol.com/pm/uploads/Main.Freepubs/nasa-rp-1046.pdf http://www.hochwarth.com/misc/AviationCalculator.html

0x1mason commented 7 years ago

Closing due to inactivity. Post again if you have any questions