Difference between revisions of "Module:Climate/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Erutuon
blackwiki>Erutuon
(woops)
Line 91: Line 91:
 
|20 20 30 50 80 80 80 60 40 30 20 30
 
|20 20 30 50 80 80 80 60 40 30 20 30
 
|yes}}
 
|yes}}
 +
* {{#invoke:Climate|example
 +
|location=Sutu Khasa, Bolivia
 +
|url=https://en.climate-data.org/location/988483/
 +
|10.2 9.8 9.7 7.6 6.4 4.3 4.5 5.9 7.9 9.9 11.4 11.1
 +
|129 85 69 14 7 3 1 2 9 21 37 72
 +
    |yes}}
 
* {{#invoke:Climate|example
 
* {{#invoke:Climate|example
 
|location=Ushuaia
 
|location=Ushuaia

Revision as of 22:32, 27 June 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 (.).
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 a minimum monthly average temperature 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