Changeset 2754 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Nov 12, 2019, 2:58:16 PM (5 years ago)
Author:
lfita
Message:

Fixing new colors for land-use

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r2753 r2754  
    4343# USGS land types
    4444oldusgscolors = {1: ['Urban land', 'k', (0.8, 0.8, 0.8, 1.)],                        \
    45   2:'Agriculture', 'g', (0.1, 0.9, 0., 1.)],                                         \
    46   3:'Range-grassland', 'g', (0., 1., 0.5, 1.)],                                      \
    47   4: 'Deciduous forest', 'g', (0., 0.4, 0., 1.)],                                    \
    48   5: 'Coniferous forest', 'g', (0., 0.6, 0., 1.)],                                   \
    49   6: 'Mixed forest and wet land', 'g', (0., 0.8, 0., 1.)],                           \
    50   7: 'Water', 'b', (0.1, 0.1, 1., 1.)],                                              \
    51   8: 'Marsh or wet land', 'g', (0., 0.8, 0., 1.)],                                   \
    52   9: 'Desert', 'y', (0.95, 0.95, 0., 1.)],                                           \
    53   10: 'Tundra', 'g', (0.65, 0.25, 0.1, 1.)],                                         \
    54   11: 'Permanent ice', 'w', (0.95, 0.95, 0.95, 1.)],                                 \
    55   12: 'Tropical or subtropical forest', 'g', (0., 0.4, 0., 1.)],                     \
    56   13: 'Savannah', 'g', (0.70, 0.3, 0.10, 1.)]}
     45  2: ['Agriculture', 'g', (0.1, 0.9, 0., 1.)],                                       \
     46  3: ['Range-grassland', 'g', (0., 1., 0.5, 1.)],                                    \
     47  4: ['Deciduous forest', 'g', (0., 0.4, 0., 1.)],                                   \
     48  5: ['Coniferous forest', 'g', (0., 0.6, 0., 1.)],                                  \
     49  6: ['Mixed forest and wet land', 'g', (0., 0.8, 0., 1.)],                          \
     50  7: ['Water', 'b', (0.1, 0.1, 1., 1.)],                                             \
     51  8: ['Marsh or wet land', 'g', (0., 0.8, 0., 1.)],                                  \
     52  9: ['Desert', 'y', (0.95, 0.95, 0., 1.)],                                          \
     53  10: ['Tundra', 'g', (0.65, 0.25, 0.1, 1.)],                                        \
     54  11: ['Permanent ice', 'w', (0.95, 0.95, 0.95, 1.)],                                \
     55  12: ['Tropical or subtropical forest', 'g', (0., 0.4, 0., 1.)],                    \
     56  13: ['Savannah', 'g', (0.70, 0.3, 0.10, 1.)]}
    5757
    5858usgscolors = {1: ['Urban and Built-Up Land', 'k', (0.8, 0.8, 0.8, 1.)], \
     
    126126
    127127# SiB
    128 sibcolors = {1: 'Evergreen Broadleaf Trees', 'g', (0.15, 0.8, 0.15, 1.)],            \
    129   2: 'Broadleaf Deciduous Trees', 'g', (0.17, 0.8, 0.17, 1.)],                       \
    130   3: 'Deciduous and Evergreen Trees', 'g', (0.7, 0.9, 0.1, 1.)],                     \
    131   4: 'Evergreen Needleleaf Trees', 'g', (0., 0.6, 0., 1.)],                          \
    132   5: 'Deciduous Needleleaf Trees', 'g', (0.10, 0.8, 0.10, 1.)],                      \
    133   6: 'Ground Cover with Trees and Shrubs', 'g', (0.6, 0.75, 0.1, 1.)],               \
    134   7: 'Groundcover Only', 'g', (0.70, 0.3, 0.10, 1.)],                                \
    135   8: 'Broadleaf Shrubs with Perennial Ground Cover', 'g', (0.65, 0.75, 0.3, 1.)],    \
    136   9: 'Broadleaf Shrubs with Bare Soil', 'w', (0.90, 0.6, 0.20, 1.)],                 \
    137   10: 'Groundcover with Dwarf Trees and Shrubs', 'g', (0.65, 0.75, 0.3, 1.)],        \
    138   11: 'Bare Soil', 'k', (0.30, 0.3, 0.3, 1.)],                                       \
    139   12: 'Agriculture or C3 Grassland', 'g', (0.85, 0.9, 0.85, 1.)],                    \
    140   13: 'Persistent Wetland', 'g', (0., 0.8, 0., 1.)],                                 \
    141   14: 'Dry Coastal Complexes', 'k', (0.7, 0.7, 0.7, 1.)],                            \
    142   15: 'Water', 'b', (0.2, 0.89, 0.89, 1.)],                                          \
    143   16: 'Ice Cap and Glacier', 'w', (0.90, 0.9, 0.90, 1.)]}
     128sibcolors = {1: ['Evergreen Broadleaf Trees', 'g', (0.15, 0.8, 0.15, 1.)],           \
     129  2: ['Broadleaf Deciduous Trees', 'g', (0.17, 0.8, 0.17, 1.)],                      \
     130  3: ['Deciduous and Evergreen Trees', 'g', (0.7, 0.9, 0.1, 1.)],                    \
     131  4: ['Evergreen Needleleaf Trees', 'g', (0., 0.6, 0., 1.)],                         \
     132  5: ['Deciduous Needleleaf Trees', 'g', (0.10, 0.8, 0.10, 1.)],                     \
     133  6: ['Ground Cover with Trees and Shrubs', 'g', (0.6, 0.75, 0.1, 1.)],              \
     134  7: ['Groundcover Only', 'g', (0.70, 0.3, 0.10, 1.)],                               \
     135  8: ['Broadleaf Shrubs with Perennial Ground Cover', 'g', (0.65, 0.75, 0.3, 1.)],   \
     136  9: ['Broadleaf Shrubs with Bare Soil', 'w', (0.90, 0.6, 0.20, 1.)],                \
     137  10: ['Groundcover with Dwarf Trees and Shrubs', 'g', (0.65, 0.75, 0.3, 1.)],       \
     138  11: ['Bare Soil', 'k', (0.30, 0.3, 0.3, 1.)],                                      \
     139  12: ['Agriculture or C3 Grassland', 'g', (0.85, 0.9, 0.85, 1.)],                   \
     140  13: ['Persistent Wetland', 'g', (0., 0.8, 0., 1.)],                                \
     141  14: ['Dry Coastal Complexes', 'k', (0.7, 0.7, 0.7, 1.)],                           \
     142  15: ['Water', 'b', (0.2, 0.89, 0.89, 1.)],                                         \
     143  16: ['Ice Cap and Glacier', 'w', (0.90, 0.9, 0.90, 1.)]}
    144144
    145145ncolorsauto = ['r', 'g', 'b', 'c', 'm', 'y', 'k', 'w', \
Note: See TracChangeset for help on using the changeset viewer.