Difference between revisions of "Module:Climate/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Erutuon
(Undid revision 848877506 by Erutuon (talk): that's gotta be handled internally)
blackwiki>Erutuon
Line 188: Line 188:
 
|−11.4 −10 −7.2 −1.8 3.8 8.2 10.7 9.6 5.1 −1.7 −8.4 −10.4
 
|−11.4 −10 −7.2 −1.8 3.8 8.2 10.7 9.6 5.1 −1.7 −8.4 −10.4
 
     |19  18.5  15.5  11.9  19.3  24.4  46.5  82.6  75.7  51.8  29.7  28.4}}
 
     |19  18.5  15.5  11.9  19.3  24.4  46.5  82.6  75.7  51.8  29.7  28.4}}
 +
* {{#invoke:Climate|example
 +
|location=Brian Head, Utah
 +
|url=https://www.wrcc.dri.edu/cgi-bin/cliMAIN.pl?ut0900
 +
|highs=29.7 31.9 37.8 43.4 53.2 64.6 70.4 68.8 60.4 47.4 35.1 28.6
 +
|lows=10.0 10.7 14.5 19.3 27.3 35.4 41.5 42.0 33.9 24.2 15.0 9.7
 +
    |precip=3.77 3.97 3.99 3.53 1.42 1.13 2.14 2.66 2.17 3.11 2.67 3.03
 +
    |temp_unit=F
 +
    |precip_unit=inch}}
 
<!--
 
<!--
 
* {{#invoke:Climate|example
 
* {{#invoke:Climate|example

Revision as of 08:05, 11 July 2018

Usage

Exports a function that calculates the Köppen climate classification of monthly average temperature and precipitation data in degrees Celsius and millimeters, based on the formulas described in the Wikipedia article.

Function

|Koeppen_template=
Parameters:
|1=, |2=
Temperatures and precipitation figures (12, one per month), separated by any characters that are not digits (0-9), hyphen-minuses (-), or periods (.).
|3=yes
Indicates that the data is from a location in the Southern Hemisphere. The default is the Northern Hemisphere. This is used to determine the high-sun and low-sun halves of the year.
|alt_CD=
Use -3 °C as the dividing line between C and D climates. The default is 0 °C.
|alt_hk=
Cold semi-arid and arid climates (last letter k) have mean annual temperatures below 18 °C. The default is that they have at least one month below 0 °C.
|alt_w=
Dry-winter climates (last letter w) have more than 70% of precipitation in high-sun half of year. Default is that wettest summer month has ten times as much precipitation as driest winter month.

Examples