Module:Climate/doc
MyWikiBiz, Author Your Legacy — Friday November 01, 2024
Jump to navigationJump to searchThis is the documentation page for Module:Climate
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
- Template:Para
- Parameters:
- Template:Para, Template:Para
- Temperatures and precipitation figures (12, one per month), separated by any characters that are not digits (0-9), hyphen-minuses (-), or periods (.).
- Template:Para
- 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.
- Template:Para
- Use -3 °C as the dividing line between C and D climates. The default is 0 °C.
- Template:Para
- 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.
- Template:Para
- 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
- Key West: Aw
- Lagos, Nigeria: Aw
- Cheyenne: BSk
- Leh, India: BWk
- Lima: BWh
- Phoenix: BWh
- Los Angeles, California: Csa
- Rangpur, India: Cwa
- New York, New York: Cfa
- Issaguen, Morocco: Csb
- Maseru, Lesotho: Cwb
- Boone, North Carolina: Cfb
- Quito: Cfb
- La Paz, Bolivia: Cwc
- Balmaceda: Csc
- Sutu Khasa, Bolivia: Cwc
- Ushuaia: Cfc
- Seoul: Dwa
- Arak, Iran: Dsa
- Denver: Dfa
- South Lake Tahoe: Dsb
- Vladivostok: Dwb
- St. Petersburg: Dfb
- Anchorage: Dsc
- Khatgal, Mongolia: Dwc
- Fairbanks: Dfc
- Mount Washington, New Hampshire: ET
- Nagqu, Tibet: ET
- Alert: ET
- McMurdo Sound: EF
- El Alto, Bolivia: ET
- Anchorage: Dsc
- Brian Head, Utah: Dsc