Changeset 2753 in lmdz_wrf for trunk


Ignore:
Timestamp:
Nov 12, 2019, 2:49:56 PM (6 years ago)
Author:
lfita
Message:

Adding new land-use colorations: 'oldUSGS', 'SiB'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r2751 r2753  
    4242
    4343# USGS land types
     44oldusgscolors = {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.)]}
     57
    4458usgscolors = {1: ['Urban and Built-Up Land', 'k', (0.8, 0.8, 0.8, 1.)], \
    45592: ['Dryland Cropland and Pasture', 'y', (0.2, 0.9, 0., 1.)], \
     
    9310715: ['Snow and Ice', 'w', (0.90, 0.9, 0.90, 1.)], \
    9410816: ['Barren or Sparsely Vegetated', 'w', (0.90, 0.6, 0.20, 1.)], \
    95 17: ['Water', 'g', (0.2, 0.89, 0.89, 1.)], \
     10917: ['Water', 'b', (0.2, 0.89, 0.89, 1.)], \
    9611018: ['Wooded Tundra', 'g', (0.7, 0.3, 0.1, 1.)], \
    9711119: ['Mixed Tundra', 'g', (0.65, 0.25, 0.1, 1.)], \
     
    11112533: ['Industrial or Commercial', 'k', (0.25, 0.25, 0.25, 1.)]}
    112126
     127# SiB
     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.)]}
     144
    113145ncolorsauto = ['r', 'g', 'b', 'c', 'm', 'y', 'k', 'w', \
    114146  'r', 'g', 'b', 'c', 'm', 'y', 'k', 'w', \
     
    116148  'r', 'g', 'b', 'c', 'm', 'y', 'k', 'w',]
    117149
    118 rgbacolorsauto = [(1.,0.,0.,1.), (0.,1.,0.,1.), (0.,0.,1.,1.), (1.,0.,1.,1.),         \
     150rgbacolorsauto = [(1.,0.,0.,1.), (0.,1.,0.,1.), (0.,0.,1.,1.), (1.,0.,1.,1.),        \
    119151  (0.,1.,1.,1.), (1.,0.,1.,1.), (1., 0.5, 0., 1.), (0.5, 0., 0., 1.),                \
    120152  (0., 0.5, 0., 1.), (0., 0., 0.5, 1.), (0.5, 0., 0.5, 1.),  (0., 0.5, 0.5, 1.),     \
Note: See TracChangeset for help on using the changeset viewer.