82 lines
2.0 KiB
Python
82 lines
2.0 KiB
Python
import os
|
|
|
|
directory = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
GEODATA = os.path.join(directory, 'geodata')
|
|
ECOREGIONS = os.path.join(GEODATA, 'ecoregions', 'single-parts.shp')
|
|
ELEVATION = os.path.join(GEODATA, 'srtm', 'topo30-180.tif')
|
|
TEMP = os.path.join(GEODATA, 'air_temp')
|
|
PRECIP = os.path.join(GEODATA, 'precipitation')
|
|
|
|
MIN_YEAR = 1900
|
|
MAX_YEAR = 2017
|
|
|
|
SEASONS = ['winter', 'spring', 'summer', 'autumn']
|
|
WINTER_MONTHS = ['december', 'january', 'february']
|
|
SPRING_MONTHS = ['march', 'april', 'may']
|
|
SUMMER_MONTHS = ['june', 'july', 'august']
|
|
AUTUMN_MONTHS = ['september', 'november', 'october']
|
|
|
|
INPUTS = ['elevation', 'distance_to_water', 'latitude']
|
|
OUTPUT = 'biome_num'
|
|
|
|
BIOMES = [
|
|
{
|
|
'name': 'Tropical & Subtropical Moist Broadleaf Forests',
|
|
'color': '#016936',
|
|
},
|
|
{
|
|
'name': 'Tropical & Subtropical Dry Broadleaf Forests',
|
|
'color': '#B2D127',
|
|
},
|
|
{
|
|
'name': 'Tropical & Subtropical Coniferous Forests',
|
|
'color': '#77CC00',
|
|
},
|
|
{
|
|
'name': 'Temperate Broadleaf & Mixed Forests',
|
|
'color': '#99C500',
|
|
},
|
|
{
|
|
'name': 'Temperate Conifer Forests',
|
|
'color': '#B6CC00',
|
|
},
|
|
{
|
|
'name': 'Boreal Forests/Taiga',
|
|
'color': '#00C5B5',
|
|
},
|
|
{
|
|
'name': 'Tropical & Subtropical Grasslands, Savannas & Shrublands',
|
|
'color': '#EFFF00',
|
|
},
|
|
{
|
|
'name': 'Temperate Grasslands, Savannas & Shrublands',
|
|
'color': '#FFEE00',
|
|
},
|
|
{
|
|
'name': 'Flooded Grasslands & Savannas',
|
|
'color': '#009BFF',
|
|
},
|
|
{
|
|
'name': 'Montane Grasslands & Shrublands',
|
|
'color': '#A0ADBA',
|
|
},
|
|
{
|
|
'name': 'Tundra',
|
|
'color': '#5C62FF',
|
|
},
|
|
{
|
|
'name': 'Mediterranean Forests, Woodlands & Scrub',
|
|
'color': '#00850F',
|
|
},
|
|
{
|
|
'name': 'Deserts & Xeric Shrublands',
|
|
'color': '#FF9E1F',
|
|
},
|
|
{
|
|
'name': 'Mangroves',
|
|
'color': '#FF1F97'
|
|
}
|
|
]
|
|
|