Metar via SetWeatherObservation(): Visibility layers

Discuss on the SimConnect SDK can be used by programmers to write add-on components for Prepar3D
Locked
DevSim
Posts: 141
Joined: Thu Jul 07, 2011 12:45 pm

Post by DevSim »

Hi P3D Team,



I'm not sure weather this should go into the SimConnect or Weather forum, but anyhow, here it is.



Setting the METAR via SimConnect_WeatherSetObservation(), I try to have the visibility set. The learning center says:



Prepar3D® extension:

[...]

Format is &BXXXX&DYYYY



XXXX - base of visibility layer in meters

YYYY - depth of visibility layer in meters



It doesn't say, from where the base is measured. My METAR string looks like this:



GLOB METAR 0123 000000KT&D1524NG 0100M&B0000&D5000



That means I have a visibility of 100m from the base at 0m with a depth of 5000m. However, hovering out at apx 12500 ft (3810m), the visibility resorts to an indefinite value.



Any ideas what I'm missing here?



My goals is to have multiple visibility layers, but if they aren't accurately displayed, I'm lost.



Thanks,

DevSim



DevSim
Posts: 141
Joined: Thu Jul 07, 2011 12:45 pm

Post by DevSim »

Observation:



If I add 1500m to the depth of the layer going from 0000 to any depth, it's correct. Subsequent layers above are consistent with the base and depth provided.



Very strange.
DevSim
Posts: 141
Joined: Thu Jul 07, 2011 12:45 pm

Post by DevSim »

I would appreciate it, if this statement/workaround could be verified (or of course, denied) quickly by LM.



Thanks,

DevSim
Locked