I could probably build the XML->C->SimConnect interface for you. Your choices for getting 4096 distinct values into an XML gauge are probably limited to L:Vars or the storage module I just put together.
Here is the abridged blurb from the SDK on the cloud state structure:
SimConnect_WeatherRequestCloudState
The SimConnect_WeatherRequestCloudState function requests cloud density information on a given area.
Syntax
HRESULT SimConnect_WeatherRequestCloudState(
HANDLE hSimConnect,
SIMCONNECT_DATA_REQUEST_ID RequestID,
float minLat,
float minLon,
float minAlt,
float maxLat,
float maxLon,
float maxAlt,
DWORD dwFlags = 0
);
Parameters
hSimConnect
[in] Handle to a SimConnect object.
RequestID
[in] Specifies the client-defined request ID.
minLat
[in] Specifies the minimum latitude of the required area. This should simply be the lower of the two latitude numbers.
minLon
[in] Specifies the minimum longitude of the required area. This should simply be the lower of the two longitude numbers.
minAlt
[in] Specifies the minimum altitude of the required area, in feet.
maxLat
[in] Specifies the maximum latitude of the required area.
maxLon
[in] Specifies the maximum longitude of the required area.
maxAlt
[in] Specifies the maximum altitude of the required area, in feet.
dwFlags
[in, optional] Double word containing any flags. Reserved for future use.
Remarks:
The main purpose of this function is to enable weather radar.
If the call is successful, the cloud state information will be returned in a SIMCONNECT_RECV_CLOUD_STATE structure. This structure will contain a two dimensional array of byte data. The array will be 64 x 64 bytes in size, and each byte will contain a value indicating the cloud density for each cell. A value of zero would mean no clouds, to a maximum of 255. The area defined in this call is divided into 64 by 64 cells, so the size of each cell will be determined by the values given for the parameters above. Note that the entire World's weather is not simulated all the time, but only a region around the user aircraf, with a radius of approximately 128 kilometers, is modeled at any one time. A request for cloud data outside this region will simply return zeros.
The defined area can cross the Equator or the Greenwich Meridian, but it cannot cross the Poles or the International Date Line.
Doug