Skip to content
Snippets Groups Projects
Commit 1bebd784 authored by Niklas Selke's avatar Niklas Selke
Browse files

Reformatted the 'constants.py' file for better readability.

parent 70166e78
Branches
Tags
1 merge request!5Modified the test for the 'value_count' statistic. Now all available sampling...
......@@ -10,40 +10,106 @@ RSTAGS - mapping of aggregation type to resampling tag
"""
ALLOWED_SAMPLING_VALUES = [
"daily", "monthly", "seasonal", "vegseason", "summer", "xsummer", "annual"
"daily",
"monthly",
"seasonal",
"vegseason",
"summer",
"xsummer",
"annual"
]
STATISTICS_LIST = [
"aot40", "average_values", "avgdma8epax", "dark_aot40", "dark_avg",
"data_capture", "daylight_aot40", "daylight_avg", "daytime_avg",
"diurnal_cycle", "dma8epa", "dma8epa_strict", "dma8epax",
"dma8epax_strict", "dma8eu", "dma8eu_strict", "drmdmax1h", "m7_avg",
"max1h_values", "maximum", "median", "minimum", "nighttime_avg", "nvgt050",
"nvgt060", "nvgt070", "nvgt080", "nvgt090", "nvgt100", "nvgt120",
"nvgtall", "perc05", "perc10", "perc25", "perc75", "perc90", "perc95",
"perc98", "perc99", "percentiles1", "percentiles2", "somo10",
"somo10_strict", "somo35", "somo35_strict", "standard_deviation",
"value_count", "w126", "w126_24h", "w90"
"aot40",
"average_values",
"avgdma8epax",
"dark_aot40",
"dark_avg",
"data_capture",
"daylight_aot40",
"daylight_avg",
"daytime_avg",
"diurnal_cycle",
"dma8epa",
"dma8epa_strict",
"dma8epax",
"dma8epax_strict",
"dma8eu",
"dma8eu_strict",
"drmdmax1h",
"m7_avg",
"max1h_values",
"maximum",
"median",
"minimum",
"nighttime_avg",
"nvgt050",
"nvgt060",
"nvgt070",
"nvgt080",
"nvgt090",
"nvgt100",
"nvgt120",
"nvgtall",
"perc05",
"perc10",
"perc25",
"perc75",
"perc90",
"perc95",
"perc98",
"perc99",
"percentiles1",
"percentiles2",
"somo10",
"somo10_strict",
"somo35",
"somo35_strict",
"standard_deviation",
"value_count",
"w126",
"w126_24h",
"w90"
]
CLIMATIC_ZONE = {
-1: "undefined", 0: "unclassified", 1: "warm temperate moist",
2: "warm temperate dry", 3: "cool temperate moist",
4: "cool temperate dry", 5: "polar moist", 6: "polar dry",
7: "boreal moist", 8: "boreal dry", 9: "tropical montane",
10: "tropical wet", 11: "tropical moist", 12: "tropical dry"
-1: "undefined",
0: "unclassified",
1: "warm temperate moist",
2: "warm temperate dry",
3: "cool temperate moist",
4: "cool temperate dry",
5: "polar moist",
6: "polar dry",
7: "boreal moist",
8: "boreal dry",
9: "tropical montane",
10: "tropical wet",
11: "tropical moist",
12: "tropical dry"
}
SEASON_DICT = {
"DJF": [12, 1, 2], "MAM": [3, 4, 5], "JJA": [6, 7, 8], "SON": [9, 10, 11],
"NH-Summer": [4, 5, 6, 7, 8, 9], "SH-Summer": [10, 11, 12, 1, 2, 3],
"DJF": [12, 1, 2],
"MAM": [3, 4, 5],
"JJA": [6, 7, 8],
"SON": [9, 10, 11],
"NH-Summer": [4, 5, 6, 7, 8, 9],
"SH-Summer": [10, 11, 12, 1, 2, 3],
"NH-XSummer": [3, 4, 5, 6, 7, 8, 9],
"SH-XSummer": [9, 10, 11, 12, 1, 2, 3], "wheat-boreal_moist-NH": [6, 7, 8],
"SH-XSummer": [9, 10, 11, 12, 1, 2, 3],
"wheat-boreal_moist-NH": [6, 7, 8],
"wheat-boreal_dry-NH": [6, 7, 8],
"wheat-cool_temperate_moist-NH": [4, 5, 6],
"wheat-cool_temperate_dry-NH": [4, 5, 6],
"wheat-warm_temperate_moist-NH": [3, 4, 5],
"wheat-warm_temperate_dry-NH": [3, 4, 5],
"wheat-tropical_montane-NH": [1, 2, 3], "wheat-tropical_wet-NH": [1, 2, 3],
"wheat-tropical_moist-NH": [1, 2, 3], "wheat-tropical_dry-NH": [1, 2, 3],
"wheat-tropical_moist-SH": [7, 8, 9], "wheat-tropical_dry-SH": [8, 9, 10],
"wheat-tropical_montane-NH": [1, 2, 3],
"wheat-tropical_wet-NH": [1, 2, 3],
"wheat-tropical_moist-NH": [1, 2, 3],
"wheat-tropical_dry-NH": [1, 2, 3],
"wheat-tropical_moist-SH": [7, 8, 9],
"wheat-tropical_dry-SH": [8, 9, 10],
"wheat-warm_temperate_moist-SH": [8, 9, 10],
"wheat-warm_temperate_dry-SH": [8, 9, 10],
"wheat-cool_temperate_moist_le30-SH": [2, 3, 4],
......@@ -54,19 +120,41 @@ SEASON_DICT = {
"rice-cool_temperate_dry-NH": [5, 6, 7],
"rice-warm_temperate_moist-NH": [6, 7, 8],
"rice-warm_temperate_dry-NH": [6, 7, 8],
"rice-tropical_moist-NH": [7, 8, 9], "rice-tropical_montane-NH": [7, 8, 9],
"rice-tropical_wet-NH": [7, 8, 9], "rice-tropical_dry-NH": [8, 9, 10],
"rice-tropical_moist-SH": [12, 1, 2], "rice-tropical_wet-SH": [12, 1, 2],
"rice-tropical_moist-NH": [7, 8, 9],
"rice-tropical_montane-NH": [7, 8, 9],
"rice-tropical_wet-NH": [7, 8, 9],
"rice-tropical_dry-NH": [8, 9, 10],
"rice-tropical_moist-SH": [12, 1, 2],
"rice-tropical_wet-SH": [12, 1, 2],
"rice-tropical_dry-SH": [1, 2, 3],
"rice-warm_temperate_moist-SH": [11, 12, 1],
"rice-warm_temperate_dry-SH": [1, 2, 3],
"rice-cool_temperate_moist-SH": [12, 1, 2],
"rice-cool_temperate_dry-SH": [12, 1, 2], "Jan": [1], "Feb": [2],
"Mar": [3], "Apr": [4], "May": [5], "Jun": [6], "Jul": [7], "Aug": [8],
"Sep": [9], "Oct": [10], "Nov": [11], "Dec": [12]
"rice-cool_temperate_dry-SH": [12, 1, 2],
"Jan": [1],
"Feb": [2],
"Mar": [3],
"Apr": [4],
"May": [5],
"Jun": [6],
"Jul": [7],
"Aug": [8],
"Sep": [9],
"Oct": [10],
"Nov": [11],
"Dec": [12]
}
ALLOWED_CROPS_VALUES = ["rice", "wheat"]
ALLOWED_CROPS_VALUES = [
"rice",
"wheat"
]
RSTAGS = {
"daily": "D", "monthly": "MS", "seasonal": "AS", "summer": "AS",
"xsummer": "AS", "annual": "AS"
"daily": "D",
"monthly": "MS",
"seasonal": "AS",
"summer": "AS",
"xsummer": "AS",
"annual": "AS"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment