Difference between revisions of "Module:Climate/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Erutuon
(may as well integrate everything into template)
blackwiki>Erutuon
Line 53: Line 53:
 
|14.1 14.7 15.6 16.8 18.2 20.2 22.6 23 22.3 20.1 17.2 14.6
 
|14.1 14.7 15.6 16.8 18.2 20.2 22.6 23 22.3 20.1 17.2 14.6
 
|82 87 61 26 6 2 0<!-- actually given as "---" --> 1 7 12 32 62 }}
 
|82 87 61 26 6 2 0<!-- actually given as "---" --> 1 7 12 32 62 }}
 +
* {{#invoke:Climate|example
 +
|location=Rangpur, India
 +
    |url=https://en.climate-data.org/location/4997/
 +
    |17.3 19.5 23.7 27.5 27.8 28.2 28.7 29 28.7 26.6 22.4 18.9
 +
|9 12 26 78 291 481 461 352 315 154 10 3 }}
 
* {{#invoke:Climate|example
 
* {{#invoke:Climate|example
 
|location= New York, New York
 
|location= New York, New York
Line 154: Line 159:
 
|yes}}
 
|yes}}
 
<!--
 
<!--
* [ ]: {{#invoke:Climate|example
+
* {{#invoke:Climate|example
 +
|location=
 +
|url=
 +
|
 
|
 
|
| }}
+
    }}
 
-->
 
-->
  

Revision as of 22:02, 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