# Dictionaries for MapBiomas Collection 3 processing
# Legend URL: https://storage.googleapis.com/mapbiomas/legenda/Download_codigos_da_legenda_3.0_rev1.pdf


# Year - raster band
year_band = {1985: 1,
             1986: 2,
             1987: 3,
             1988: 4,
             1989: 5,
             1990: 6,
             1991: 7,
             1992: 8,
             1993: 9,
             1994: 10,
             1995: 11,
             1996: 12,
             1997: 13,
             1998: 14,
             1999: 15,
             2000: 16,
             2001: 17,
             2002: 18,
             2003: 19,
             2004: 20,
             2005: 21,
             2006: 22,
             2007: 23,
             2008: 24,
             2009: 25,
             2010: 26,
             2011: 27,
             2012: 28,
             2013: 29,
             2014: 30,
             2015: 31,
             2016: 32,
             2017: 33}

# Land cover class code - hex color code
code_color = {0: '#FFFFFF',
              1: '#4B8740',
              2: '#00482B',
              3: '#88B04B',
              4: '#E3ECA6',
              5: '#FF7913',
              6: 'black',
              7: 'black',
              8: 'black',
              9: '#67645A',
              10: '#9B9B5B',
              11: '#B3B17B',
              12: '#BEA437',
              13: '#BDB369',
              14: '#DDB614',
              15: '#C68F65',
              16: 'black',
              17: 'black',
              18: '#FEB236',
              19: '#FDD757',
              20: '#FAE053',
              21: '#D2B04C',
              22: '#A49E9E',
              23: '#F0EC74',
              24: '#525A5B',
              25: '#9E9CA9',
              26: '#05C3DE',
              27: '#D9D9D6',
              28: 'black',
              29: '#867E74',
              30: '#623B2A',
              31: '#C3DDD6',
              32: '#F1E8DF',
              33: '#58C9D4'}

# Hex color code - land cover class label
hex_labels = {'white': 'no data',
              '#4B8740': 'forest',
              '#00482B': 'natural forest',
              '#88B04B': 'forest formations',
              '#E3ECA6': 'savanna formations',
              '#FF7913': 'mangrove',
              'black': '-',
              'black': '-',
              'black': '-',
              '#67645A': 'forest plantations',
              '#9B9B5B': 'non-forest natural formations',
              '#B3B17B': 'wetlands',
              '#BEA437': 'grassland formations',
              '#BDB369': 'other non-natural formations',
              '#DDB614': 'farming',
              '#C68F65': 'pasture',
              'black': '-',
              'black': '-',
              '#FEB236': 'agriculture',
              '#FDD757': 'annual and perennial crop',
              '#FAE053': 'semi-perennial crop',
              '#D2B04C': 'mosaic of agriculture and pasture',
              '#A49E9E': 'non-vegetated area',
              '#F0EC74': 'beach and dunes',
              '#525A5B': 'urban infrastructure',
              '#9E9CA9': 'other non-vegetated area',
              '#05C3DE': 'water',
              '#D9D9D6': 'non-observed',
              'black': '',
              '#867E74': 'rocky outcrop',
              '#623B2A': 'mining',
              '#C3DDD6': 'aquaculture',
              '#F1E8DF': 'salt flat',
              '#58C9D4': 'rivers, lakes, oceans'}

# Land cover class code - land cover class label
code_label = {'0': 'no data',
              '1': 'forest',
              '2': 'natural forest',
              '3': 'forest formations',
              '4': 'savanna formations',
              '5': 'mangrove',
              '6': '-',
              '7': '-',
              '8': '-',
              '9': 'forest plantations',
              '10': 'non-forest natural formations',
              '11': 'wetlands',
              '12': 'grassland formations',
              '13': 'other non-natural formations',
              '14': 'farming',
              '15': 'pasture',
              '16': '-',
              '17': '-',
              '18': 'agriculture',
              '19': 'annual and perennial crop',
              '20': 'semi-perennial crop',
              '21': 'mosaic of agriculture and pasture',
              '22': 'non-vegetated area',
              '23': 'beach and dunes',
              '24': 'urban infrastructure',
              '25': 'other non-vegetated area',
              '26': 'water',
              '27': 'non-observed',
              '28': '-',
              '29': 'rocky outcrop',
              '30': 'mining',
              '31': 'aquaculture',
              '32': 'salt flat',
              '33': 'rivers, lakes, oceans'}

# Dictionaries for MapBiomas Collection 3 processing
# Legend URL: https://storage.googleapis.com/mapbiomas/legenda/Download_codigos_da_legenda_3.0_rev1.pdf


# Year - raster band
year_band = {1985: 1,
             1986: 2,
             1987: 3,
             1988: 4,
             1989: 5,
             1990: 6,
             1991: 7,
             1992: 8,
             1993: 9,
             1994: 10,
             1995: 11,
             1996: 12,
             1997: 13,
             1998: 14,
             1999: 15,
             2000: 16,
             2001: 17,
             2002: 18,
             2003: 19,
             2004: 20,
             2005: 21,
             2006: 22,
             2007: 23,
             2008: 24,
             2009: 25,
             2010: 26,
             2011: 27,
             2012: 28,
             2013: 29,
             2014: 30,
             2015: 31,
             2016: 32,
             2017: 33}

# Land cover class code - hex color code
code_color = {0: '#FFFFFF',
              1: '#4B8740',
              2: '#00482B',
              3: '#88B04B',
              4: '#E3ECA6',
              5: '#FF7913',
              6: 'black',
              7: 'black',
              8: 'black',
              9: '#67645A',
              10: '#9B9B5B',
              11: '#B3B17B',
              12: '#BEA437',
              13: '#BDB369',
              14: '#DDB614',
              15: '#C68F65',
              16: 'black',
              17: 'black',
              18: '#FEB236',
              19: '#FDD757',
              20: '#FAE053',
              21: '#D2B04C',
              22: '#A49E9E',
              23: '#F0EC74',
              24: '#525A5B',
              25: '#9E9CA9',
              26: '#05C3DE',
              27: '#D9D9D6',
              28: 'black',
              29: '#867E74',
              30: '#623B2A',
              31: '#C3DDD6',
              32: '#F1E8DF',
              33: '#58C9D4'}

# Hex color code - land cover class label
hex_labels = {'white': 'no data',
              '#4B8740': 'forest',
              '#00482B': 'natural forest',
              '#88B04B': 'forest formations',
              '#E3ECA6': 'savanna formations',
              '#FF7913': 'mangrove',
              'black': '-',
              'black': '-',
              'black': '-',
              '#67645A': 'forest plantations',
              '#9B9B5B': 'non-forest natural formations',
              '#B3B17B': 'wetlands',
              '#BEA437': 'grassland formations',
              '#BDB369': 'other non-natural formations',
              '#DDB614': 'farming',
              '#C68F65': 'pasture',
              'black': '-',
              'black': '-',
              '#FEB236': 'agriculture',
              '#FDD757': 'annual and perennial crop',
              '#FAE053': 'semi-perennial crop',
              '#D2B04C': 'mosaic of agriculture and pasture',
              '#A49E9E': 'non-vegetated area',
              '#F0EC74': 'beach and dunes',
              '#525A5B': 'urban infrastructure',
              '#9E9CA9': 'other non-vegetated area',
              '#05C3DE': 'water',
              '#D9D9D6': 'non-observed',
              'black': '',
              '#867E74': 'rocky outcrop',
              '#623B2A': 'mining',
              '#C3DDD6': 'aquaculture',
              '#F1E8DF': 'salt flat',
              '#58C9D4': 'rivers, lakes, oceans'}

# Land cover class code - land cover class label
code_label = {'0': 'no data',
              '1': 'forest',
              '2': 'natural forest',
              '3': 'forest formations',
              '4': 'savanna formations',
              '5': 'mangrove',
              '6': '-',
              '7': '-',
              '8': '-',
              '9': 'forest plantations',
              '10': 'non-forest natural formations',
              '11': 'wetlands',
              '12': 'grassland formations',
              '13': 'other non-natural formations',
              '14': 'farming',
              '15': 'pasture',
              '16': '-',
              '17': '-',
              '18': 'agriculture',
              '19': 'annual and perennial crop',
              '20': 'semi-perennial crop',
              '21': 'mosaic of agriculture and pasture',
              '22': 'non-vegetated area',
              '23': 'beach and dunes',
              '24': 'urban infrastructure',
              '25': 'other non-vegetated area',
              '26': 'water',
              '27': 'non-observed',
              '28': '-',
              '29': 'rocky outcrop',
              '30': 'mining',
              '31': 'aquaculture',
              '32': 'salt flat',
              '33': 'rivers, lakes, oceans'}

# Dictionaries for MapBiomas Collection 3 processing # Legend URL: https://storage.googleapis.com/mapbiomas/legenda/Download_codigos_da_legenda_3.0_rev1.pdf # Year - raster band # Land cover class code - hex color code # Hex color code - land cover class label # Land cover class code - land cover class label