Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
SimTX Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
SimTX API v24/Packets/WeatherMapResponse
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{SimTX API v24 navigation}} {{SimTX packet v24 | name = WeatherMapResponse | id = 14 | hex = 0x0E | direction = s2c | session = [[SimTX API v24/Control session|Control]] | size = Variable | permission = None | answers = [[SimTX API v24/Packets/WeatherMapRequest|WeatherMapRequest]] | group = control }} '''WeatherMapResponse''' returns the raster requested by a [[SimTX API v24/Packets/WeatherMapRequest|WeatherMapRequest]], together with a summary of the weather at the centre of the area. == Layout == {| class="wikitable" ! Field !! Type !! Description |- | <code>packetId</code> || <code>u8</code> || Always <code>14</code>. |- | <code>validTimeEpochMillis</code> || <code>i64</code> || Simulated time the data is valid for, Unix milliseconds. |- | <code>type</code> || <code>UTF</code> || Map type, as requested. |- | <code>southLatitudeDeg</code> || <code>f64</code> || Southern edge. |- | <code>northLatitudeDeg</code> || <code>f64</code> || Northern edge. |- | <code>westLongitudeDeg</code> || <code>f64</code> || Western edge, normalised to (β180, 180]. |- | <code>eastLongitudeDeg</code> || <code>f64</code> || Eastern edge, normalised to (β180, 180]. |- | <code>width</code> || <code>i32</code> || Raster columns. |- | <code>height</code> || <code>i32</code> || Raster rows. |- | <code>valueCount</code> || <code>i32</code> || Always <code>width Γ height</code>. |- | <code>values</code> || <code>valueCount Γ f32</code> || Values in the unit of the map type, row by row. |- | <code>surfaceTemperatureCelsius</code> || <code>f32</code> || At the centre: surface temperature. |- | <code>surfacePressureHpa</code> || <code>f32</code> || At the centre: surface pressure. |- | <code>surfaceRelativeHumidityPercent</code> || <code>f32</code> || At the centre: relative humidity. |- | <code>surfaceWindMetersPerSecond</code> || <code>f32</code> || At the centre: wind speed. |- | <code>maximumRainRateMillimetersPerHour</code> || <code>f32</code> || At the centre: highest rain rate in the column. |- | <code>maximumCloudWaterGramsPerCubicMeter</code> || <code>f32</code> || At the centre: highest cloud water content in the column. |- | <code>capeJoulesPerKilogram</code> || <code>f32</code> || At the centre: convective available potential energy. |- | <code>lightningFlashesPerMinute</code> || <code>f32</code> || At the centre: lightning rate. |- | <code>ductType</code> || <code>UTF</code> || Type of the strongest duct at the centre, or <code>NONE</code>. |- | <code>ductBaseMeters</code> || <code>f32</code> || Duct base height. NaN when there is no duct. |- | <code>ductTopMeters</code> || <code>f32</code> || Duct top height. NaN when there is no duct. |- | <code>ductStrengthMUnits</code> || <code>f32</code> || Duct strength. 0 when there is no duct. |- | <code>ductGradientMUnitsPerKilometer</code> || <code>f32</code> || Steepest modified-refractivity gradient in the duct. NaN when there is no duct. |} == Raster layout == Values are stored row-major (<code>index = row Γ width + column</code>). Unlike the coverage map, they are sampled at grid '''nodes''' that include the edges of the area: <syntaxhighlight lang="text"> latitude = north β (north β south) Γ row / (height β 1) longitude = west + (east β west ) Γ column / (width β 1) </syntaxhighlight> Row 0 is the northern edge and the last row the southern edge; columns run west to east. North and south are clamped to Β±90Β°. When the area crosses the antimeridian, <code>westLongitudeDeg</code> is greater than <code>eastLongitudeDeg</code>; add 360Β° to the eastern edge before interpolating. For a 360Β° span the two edges are equal. Raster values are always finite. The summary fields may contain NaN as described above. {{SimTX API v24 navbox}} [[Category:SimTX API v24]]
Summary:
Please note that all contributions to SimTX Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
SimTX Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:SimTX API v24 navbox
(
edit
)
Template:SimTX API v24 navigation
(
edit
)
Template:SimTX packet v24
(
edit
)