LocDB Module Climate

Goals
Typically, a climate table shows some specific values through the 12 months of a year. This could be values for the max. temperature, daily avr. temperature, amount of rain, wind strength, sunshine hours/day and others.

The maintenance part on the ldb: wiki provides tables with data input fields and unit selector for various kinds of climatic 12-months-data. Also, there are (javascript based) links to add new tables or delete existing ones.

The application part used by the content wikis (de:, it: etc.) provides templates for displaying the climatic tables and charts.

Table format
An example table for temperatures might look like this:

Daytime temperature in : [del]

Source and reliability

All number table fields are HTML input fields that allow editing the data. The unit selector is an HTML select element that can be turned on °C or °F. The values of the table data entries are converted by javascript when turning the unit calculator.

The yearly average should be blank if all monthly data are given. However, it might often happen that monthly data are not available, so better enter a yearly average rather than nothing at all.

Depending on the kind of climatic data (temperature, wind velocity, rain), the table might have more or less rows.

The second table provides an HTML input element src-input for the data source, an HTML select element for the data's reliability and an HTML textarea for a short comment about the data, its source and its reliability.

The [del] link deletes the table via javascript. A completely empty table will also be deleted when saving the module in case javascript is disabled.

Adding new tables
At the end of the module's section, right below the actual climatic tables, there is an extra subsection for adding new tables. It might look like this:

Add new table for:  [add]

where the data-type-selector is an HTML select element that offers predefined kinds of climatic tables. When hitting the [add] link, a new table will be added by javascript. The non-js versions can show the newly created table only after having saved and reloaded the module.

The number of rows and its labelling depends on the data-type chosen for the new table.