climatedata


Description

Holds montly average climate data such as rainfall, temperature or cloud cover. This is based on locations rather than accessions like most of the other tables in Germinate.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id INT 10 null

Primary id for this table. This uniquely identifies the row.

climate_id INT 10 0
climates.id climatedata_ibfk_2C

Foreign key to climates (climates.id).

location_id INT 10 0
locations.id climatedata_ibfk_3C

Foreign key to locations (locations.id).

climate_value DOUBLE 64,10 null

Value for the specific climate attribute. These are monthly averages and not daily. Monthly data is required for the current Germinate climate viisualizations and interface.

dataset_id INT 10 null
datasets.id climatedata_ibfk_1C

Foreign key to datasets (datasets.id).

recording_date DATETIME 26 null

The date at which this data point was recorded.

old_recording_date VARCHAR 32 null

The month that the data was recorded. This uses an integer to represent the month (1-12).

created_on DATETIME 26 CURRENT_TIMESTAMP

When the record was created.

updated_on TIMESTAMP 26 CURRENT_TIMESTAMP

When the record was updated. This may be different from the created on date if subsequent changes have been made to the underlying record.

Indexes

Constraint Name Type Sort Column(s)
PRIMARY Primary key Asc id
climate_id Performance Asc climate_id
climate_location_id Performance Asc/Asc climate_id + location_id
climate_query_index Performance Asc/Asc/Asc/Asc/Asc climate_id + location_id + recording_date + dataset_id + climate_value
dataset_id Performance Asc dataset_id
location_id Performance Asc location_id
recording_date_climate_calue Performance Asc/Asc old_recording_date + climate_value

Relationships