Re: [Flightgear-devel] Pressure errors in FGEnvironment

2002-06-05 Thread Tony Peden
On Wed, 2002-06-05 at 14:15, Christian Mayer wrote: > Tony Peden wrote: > > > > > PS: As the air pressure curve is similar to the > > > e-function (e^altitude) > > > it's nowhere linear and thus badly approximated by a > > > table... > > > > Depends on how many points are in the table. > > Yes.

Re: [Flightgear-devel] Pressure errors in FGEnvironment

2002-06-05 Thread Christian Mayer
Tony Peden wrote: > > > PS: As the air pressure curve is similar to the > > e-function (e^altitude) > > it's nowhere linear and thus badly approximated by a > > table... > > Depends on how many points are in the table. Yes. You can solve all problems with raw iron... I don't know how feelable

Re: [Flightgear-devel] Pressure errors in FGEnvironment

2002-06-05 Thread Tony Peden
--- Christian Mayer <[EMAIL PROTECTED]> wrote: > David Megginson wrote: > > > > Christian Mayer writes: > > > > > As I wrote before, there's a function in the > WeatherCM code that > > > calculates the air pressure based on the air > pressure at a given > > > altitude and at a given teperatu

Re: [Flightgear-devel] Pressure errors in FGEnvironment

2002-06-05 Thread Christian Mayer
David Megginson wrote: > > Christian Mayer writes: > > > As I wrote before, there's a function in the WeatherCM code that > > calculates the air pressure based on the air pressure at a given > > altitude and at a given teperature profile. It is based on the well > > known (but incorrect) bar

re: [Flightgear-devel] Pressure errors in FGEnvironment

2002-06-05 Thread David Megginson
Andy Ross writes: > Nonetheless, I think I found the problem. In converting the YASim > table to the new format, its values were re-encoded as deltas from sea > level conditions, with sea level pressure defined as 29.92 inches of > mercury. I've fixed that now -- everything is encoded as fa

Re: [Flightgear-devel] Pressure errors in FGEnvironment

2002-06-05 Thread David Megginson
Christian Mayer writes: > As I wrote before, there's a function in the WeatherCM code that > calculates the air pressure based on the air pressure at a given > altitude and at a given teperature profile. It is based on the well > known (but incorrect) baryometric (SP?) formula but doesn't suf

Re: [Flightgear-devel] Pressure errors in FGEnvironment

2002-05-31 Thread Christian Mayer
Andy Ross wrote: > > David Megginson wrote: > > The idea is that users should be able to set any reasonable sea-level > > pressure and see reasonable behaviour -- that's why I set the tables > > up with deltas rather than absolute values. I can see, now, how that > > would be a problem at higher

Re: [Flightgear-devel] Pressure errors in FGEnvironment

2002-05-31 Thread David Megginson
Andy Ross writes: > Actually, I'm fairly certain that high altitude phenomena tend to > "smooth out" pressure differences down below, so in fact the relative > difference between pressures at the flight levels should actually be > less than that at sea level. Maybe you could try a factor tha

Re: [Flightgear-devel] Pressure errors in FGEnvironment

2002-05-31 Thread Andy Ross
David Megginson wrote: > The idea is that users should be able to set any reasonable sea-level > pressure and see reasonable behaviour -- that's why I set the tables > up with deltas rather than absolute values. I can see, now, how that > would be a problem at higher altitudes, but what should we

re: [Flightgear-devel] Pressure errors in FGEnvironment

2002-05-31 Thread David Megginson
Andy Ross writes: > Nonetheless, I think I found the problem. In converting the YASim > table to the new format, its values were re-encoded as deltas from sea > level conditions, with sea level pressure defined as 29.92 inches of > mercury. But in the FGEnvironment constructor, I see the fo