# Default Palette includes:
# Most classes of the "Brazilian Vegetation Manual" (IBGE,2001)
# IPCC AFOLU, TerraClass project, IGBP Discover, Copernicus Global Land Cover

# Basic palette for Amazonia and Cerrado natural veg is based on "Greens" palette expanded to 18 colors
# colors_nat_18 <- grDevices::colorRampPalette(RColorBrewer::brewer.pal(9, "Greens"))(18)

# Palette for Caatinga is based on "BuGn" palette expanded to 15 colors
# colors_caatinga <- grDevices::colorRampPalette(RColorBrewer::brewer.pal(9,"BuGn"))(15)

# Planted Forest (Silviculture) and Pasture are represented by shades of mixed "BuGn"
# colors_mixed <- grDevices::colorRampPalette(RColorBrewer::brewer.pal(9, "BuGn"))(18)

# Palette for temporary crops is ColorBrewer "YlOrBr" expanded to 18 colors
# colors_agro <- grDevices::colorRampPalette(RColorBrewer::brewer.pal(9, "YlOrBr"))(18)

# Palette for permanent crops is low end of ColorBrewer "Reds" expanded to 18 colors
# colors_perm_agric <- grDevices::colorRampPalette(RColorBrewer::brewer.pal(9, "Reds"))(18)

# Palette for deforestation and degradation is "RdPu" expanded to 18 colors
# colors_def_deg <- grDevices::colorRampPalette(RColorBrewer::brewer.pal(9, "RdPu"))(18)

# Palette for wetlands and similar is "YlGnBu" expanded to 18 colors
# colors_water <- grDevices::colorRampPalette(RColorBrewer::brewer.pal(9, "YlGnBu"))(18)

colors:
    # Natural Vegetation ------------------
    # Boreal Forest : color 17 of "Greens-18"
    Evergreen_Needleleaf_Forest  : "#005723"
    # Forest: color 14 of "Greens-18"
    Forest                      : "#1E8742"
    Floresta                    : "#1E8742"
    Formacao_Florestal          : "#1E8742"
    Floresta_Ombrofila_Densa    : "#1E8742"
    Floresta_Tropical_Fluvial   : "#1E8742"
    Floresta_Ombrofila_Mista    : "#1E8742"
    Evergreen_Broadleaf_Forest  : "#1E8742"
    Closed_Forests              : "#1E8742"
    # Dense Woodlands and similar:  color 12 of "Greens-18"
    Cerradao                    : "#3BA558"
    Savana_Florestada           : "#3BA558"
    Dense_Woodland              : "#3BA558"
    Dense_Tree_Savanna          : "#3BA558"
    Formacao_Savanica           : "#3BA558"
    Woody_Savannas              : "#3BA558"
    Floresta_Ombrofila_Aberta   : "#3BA558"
    Mata_Araucaria              : "#3BA558"
    Floresta_Estacional         : "#3BA558"
    Campinarana_Florestada      : "#3BA558"
    Campinarana_Arborizada      : "#3BA558"
    # Mixed Forest - color 10 of "Greens-18"
    Mixed_Forest                : "#68BE70"
    # Savanna and Cerrado:  color 9 of "Greens-18"
    Savanna                     : "#7EC87E"
    Savannas                    : "#7EC87E"
    Cerrado                     : "#7EC87E"
    Savana_Arborizada           : "#7EC87E"
    Cerrado_Strictu_Sensu       : "#7EC87E"
    Cerrado_Tipico              : "#7EC87E"
    # Savana Parque and similar:  color 6 of "Greens-18"
    Savanna_Parkland            : "#B9E3B2"
    Savana_Parque               : "#B9E3B2"
    Campo_Cerrado               : "#B9E3B2"
    Formacao_Campestre          : "#B9E3B2"
    Araguaia                    : "#B9E3B2"
    NatNonForested              : "#B9E3B2"
    Natual_Nao_Florestado       : "#B9E3B2"
    Natural_Non_Forested        : "#B9E3B2"
    NonForest                   : "#B9E3B2"
    NaoFloresta                 : "#B9E3B2"
    Non_Forest                  : "#B9E3B2"
    Nao_Floresta                : "#B9E3B2"
    Campinarana_Arbustiva       : "#B9E3B2"
    Closed_Shrublands           : "#B9E3B2"
    Formacoes_Nao_Florestais    : "#B9E3B2"
    # Grasslands:  color 5 of "Greens-18"
    Grasslands                  : "#CAEAC3"
    Grass                       : "#CAEAC3"
    Estepe                      : "#CAEAC3"
    Steppe                      : "#CAEAC3"
    Herbaceous_Vegetation       : "#CAEAC3"
    # Cerrado Rupestre and Rocky Savanna: color 4 of "Greens-18"
    # Also Natural Non Vegetated
    Savana_Gramineo_Lenhosa     : "#E6F5E1"
    Campinarana_Gramineo_Lenhosa : "#E6F5E1"
    Cerrado_Rupestre            : "#E6F5E1"
    Rocky_Savanna               : "#E6F5E1"
    Shrublands                  : "#E6F5E1"
    Scrublands                  : "#E6F5E1"
    Shrubland                   : "#E6F5E1"
    Scrubland                   : "#E6F5E1"
    Open_Shrublands             : "#E6F5E1"
    # Barren or Sparsely Vegetated: color 2 of "Greens-18"
    NatNonVegetated             : "#EEF8EB"
    Natural_Sem_Vegetacao       : "#EEF8EB"
    NatNaoVegetado              : "#EEF8EB"
    Natural_Nao_Vegetado        : "#EEF8EB"
    Barren                      : "#EEF8EB"
    Sparsely_Vegetated          : "#EEF8EB"
    Bare_Sparse_Vegetation      : "#EEF8EB"
    Afloramento_Rochoso         : "#EEF8EB"

    # Savana Estépica (Caatinga) classes uses "BuGn-15"
    # Savana Estepica Florestada : class 8 of "BuGn-15"
    Savana_Estepica_Florestada  : "#66C2A4"
    Deciduous_Needleleaf_Forest  : "#66C2A4"
    # Savana Estepica Arborizada : class 6 of "BuGn-15"
    Caatinga                    : "#A0DACD"
    Savana_Estepica_Arborizada  : "#A0DACD"
    Deciduous_Broadleaf_Forest  : "#66C2A4"
    Deciduous_Forest            : "#66C2A4"
    # Savana Estepica Parque    : class 5 of "BuGn-15"
    Savana_Estepica_Parque      : "#BDE6DD"
    # Savana Estepica Gramineo_Lenhosa    : class 4 of "BuGn-15"
    Savana_Estepica_Gramineo_Lenhosa : "#D3EEEB"

    # Mixed Classes - Secondary Vegetaton, Pasture and Silviculture
    # Use a mixture of Green and Blue to indicate human action
    # Secondary Vegetation : class 12 of "BuGn-18"
    Secondary_Vegetation        : "#3BA76D"
    Vegetacao_Secundaria        : "#3BA76D"
    Veg_Sec                     : "#3BA76D"
    # Silviculture and Planted Forest: color 9 of "BuGn-18"
    Silviculture                : "#72C7AC"
    Planted_Forest              : "#72C7AC"
    Silvicultura                : "#72C7AC"
    Floresta_Plantada           : "#72C7AC"
    Eucalyptus                  : "#72C7AC"
    # Pasture:  color 5 of "BuGn-18"
    Pasture                     : "#CEEDE8"
    Pastagem                    : "#CEEDE8"
    # Pastagem Cultivada Arbustiva - color 6
    Pastagem_Cultivada_Arbustiva: "#BAE4DB"
    # Pastagem Cultivada Herbacea - color 3
    Pastagem_Cultivada_Herbacea: "#E6F5F9"


    # Cropland Pasture mixture: color 4 of "YlOrBr-18"
    Mosaico_Agricultura_Pastagem: "#FEEEAA"

    # Temporary Agricuture uses "YlOrBr-18" palette
    # Cropland: color 10
    Cropland                    : "#F98F24"
    Agricultura                 : "#F98F24"
    Agricultura_Temporaria      : "#F98F24"
    Lavoura_Temporaria          : "#F98F24"
    Agri_Temp                   : "#F98F24"
    Agricultura_Anual           : "#F98F24"
    Temp_Crop                   : "#F98F24"
    Temporary_Crop              : "#F98F24"
    # Agricultura 1 ciclo uses color 6
    Agricultura_1_ciclo         : "#FED879"
    Agric_1_ciclo               : "#FED879"
    Crop_1_cycle                : "#FED879"
    # Agricultura_2_ciclos uses color 11
    Agric_2_ciclos              : "#F17C1A"
    Agricultura_2_ciclos        : "#F17C1A"

    # Wheat uses color 1 of "YlOrBr-18"
    Wheat                       : "#FFFFE5"
    Trigo                       : "#FFFFE5"
    # Hay uses color 2 of "YlOrBr-18"
    Hay                         : "#FFFBD1"
    Feno                        : "#FFFBD1"
    # Soy_Fallow uses color 4
    Soy_Fallow                  : "#FEEEAA"
    Soy                         : "#FEEEAA"
    Soybean                     : "#FEEEAA"
    Soybeans                    : "#FEEEAA"
    Soja                        : "#FEEEAA"
    Soja_Pousio                 : "#FEEEAA"
    # Soy_Sunflower uses color 6
    Soy_Sunflower               : "#FED879"
    Soja_Girassol               : "#FED879"
    # Soy_Millet uses color 7
    Soy_Millet                  : "#FEC95A"
    Soja_Milheto                : "#FEC95A"
    # Soy_Sorghum uses color 7
    Soy_Sorghum                 : "#FEC95A"
    Soja_Sorgo                  : "#FEC95A"
    # Soy_Corn uses color 10
    Soy_Corn                    : "#F98F24"
    Soja_Milho                  : "#F98F24"
    # Soy_Cotton uses color 12
    Soy_Cotton                  : "#E66910"
    Soja_Algodao                : "#E66910"
    # Cotton: color 13 of "YlOrBr-18"
    Cotton                      : "#D75808"
    Fallow_Cotton               : "#D75808"
    Millet_Cotton               : "#D75808"
    Algodao                     : "#D75808"
    Pousio_Algodao              : "#D75808"
    # Sorghum and Millet use color 14 of "YlOrBr-18"
    Sorghum                     : "#C64902"
    Sorgo                       : "#C64902"
    Millet                      : "#C64902"
    Milheto                     : "#C64902"
    # Corn uses color 15 of "YlOrBr-18"
    Corn                        : "#AE3D03"
    Milho                       : "#AE3D03"
    Maize                       : "#AE3D03"
    # Beans uses color 17 of "YlOrBr-18"
    Beans                       : "#7E2C05"
    Feijao                      : "#7E2C05"

    # Permanent Agriculture classes: low end of "Reds-18"
    # Permanent Agriculture proper: color 8 of "Reds-18"
    Permanent_Agriculture       : "#FB8666"
    Agricultura_Permanente      : "#FB8666"
    Agricultura_Perene          : "#FB8666"
    Lavoura_Perene              : "#FB8666"
    Cultura_Agricola_Perene     : "#FB8666"
    # Coffee uses color 8 of "YlOrBr-18"
    Coffee                      : "#FB8666"
    Cafe                        : "#FB8666"
    # Semi-perenial crops
    # Sugarcane uses color 5 of "Reds-18"
    Semi_Perenial_Crop          : "#FCBFA6"
    Cultura_Agricola_Semiperene : "#FCBFA6"
    Sugarcane                   : "#FCBFA6"
    Cana                        : "#FCBFA6"
    Cana_de_Acucar              : "#FCBFA6"

    # Deforestation, Degradation, Mining use "RdPu-18"
    # Deforestation uses color 13 of "RdPu-18" palette
    Deforestation               : "#BE1386"
    Desmatamento                : "#BE1386"
    # Degradation uses color 9 of "RdPu-18" palette
    Degradation                 : "#F774A5"
    Degradacao                  : "#F774A5"
    # Mining uses color 5 of "RdPu-18" palette
    Mining                      : "#FCC8C3"
    Mineracao                   : "#FCC8C3"

    # Water related classes use "YlGnBu-18"
    # Mangue (Mangroves) use class 5
    Mangue                      : "#CBEAB3"
    Mangrove                    : "#CBEAB3"
    Apicum                      : "#CBEAB3"
    # Restinga = use class 7
    Restinga_Arborizada         : "#8BD1B9"
    # Wetlands: color 9 of "YlGnBu-18"
    Wetlands                    : "#4FBBC1"
    Permanent_Wetlands          : "#4FBBC1"
    Herbacious_Wetland          : "#4FBBC1"
    Campo_Alagado               : "#4FBBC1"
    Area_Pantanosa              : "#4FBBC1"
    # Water:  color 12 of the "YlGnBu-18"
    Water                       : "#1D87BB"

    # Mosaic classes use color 2 of "YlGn-9" Brewer palette
    Mosaico_Ocupacoes           : "#F7FCB9"
    Cropland_Natural_Vegetation_Mosaic : "#F7FCB9"

    # Urban Areas use color 9 of the "RdGy-11" palette
    Urban_Area                  : "#878787"
    Urbano                      : "#878787"
    Area_Urbana                 : "#878787"
    Urban                       : "#878787"
    Area_Urbanizada             : "#878787"
    Urban_And_Built-Up          : "#878787"
    # Dunes: color 7 of the "PRGn-11"
    Dunas                       : "#F7F7F7"
    Dunes                       : "#F7F7F7"
    # No Class uses color 2 of the "Greys-9" palette
    No_Class                    : "#F0F0F0"
    Nao_Classificado            : "#F0F0F0"
    Unclassified                : "#F0F0F0"
    Sem_Classe                  : "#F0F0F0"
    Uncultivated                : "#F0F0F0"
    Uncultivated_Soil           : "#F0F0F0"
    Conversion_Area             : "#F0F0F0"
    No_Samples                  : "#F0F0F0"
    Area_Nao_Observada          : "#F0F0F0"
    Nao_Observado               : "#F0F0F0"
