Changeset 1936 in lmdz_wrf for trunk/tools/drawing_tools.py


Ignore:
Timestamp:
Jul 16, 2018, 6:29:38 PM (6 years ago)
Author:
lfita
Message:

Getting the right colors for LANDUSE_INDEX for MODIS modified NOAH

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r1935 r1936  
    6969
    7070# MODIFIED_IGBP_MODIS_NOAH land types
    71 modigbpmodisnoahcolors = {1: ['Evergreen Needleleaf Forest', 'g', (0.8, 0.9, 0.8, 1.)], \
    72 2: ['Evergreen Broadleaf Forest', 'g', (0.85, 0.8, 0.85, 1.)], \
    73 3: ['Deciduous Needleleaf Forest', 'g', (0.75, 0.8, 0.75, 1.)], \
    74 4: ['Deciduous Broadleaf Forest', 'g', (0.77, 0.8, 0.77, 1.)], \
    75 5: ['Mixed Forests', 'g', (0.7, 0.9, 0.8, 1.)], \
    76 6: ['Closed Shrublands', 'g', (0.6, 0.75, 0.6, 1.)], \
    77 7: ['Open Shrublands', 'g', (0.65, 0.75, 0.65, 1.)], \
    78 8: ['Woody Savannas', 'g', (0.35, 0.7, 0.35, 1.)], \
    79 9: ['Savannas', 'g', (0.30, 0.7, 0.30, 1.)], \
     71modigbpmodisnoahcolors = {1: ['Evergreen Needleleaf Forest', 'g', (0.2, 0.9, 0.2, 1.)], \
     722: ['Evergreen Broadleaf Forest', 'g', (0.15, 0.8, 0.15, 1.)], \
     733: ['Deciduous Needleleaf Forest', 'g', (0.10, 0.8, 0.10, 1.)], \
     744: ['Deciduous Broadleaf Forest', 'g', (0.17, 0.8, 0.17, 1.)], \
     755: ['Mixed Forests', 'g', (0.7, 0.9, 0.1, 1.)], \
     766: ['Closed Shrublands', 'g', (0.6, 0.75, 0.1, 1.)], \
     777: ['Open Shrublands', 'g', (0.65, 0.75, 0.3, 1.)], \
     788: ['Woody Savannas', 'g', (0.75, 0.35, 0.1, 1.)], \
     799: ['Savannas', 'g', (0.70, 0.3, 0.10, 1.)], \
    808010: ['Grasslands', 'g', (0.85, 0.9, 0.85, 1.)], \
    81 11: ['Permanent wetlands', 'g', (0.65, 0.65, 0.8, 1.)], \
     8111: ['Permanent wetlands', 'g', (0.25, 0.25, 0.6, 1.)], \
    828212: ['Croplands', 'g', (0.80, 0.9, 0.80, 1.)], \
    83 13: ['Urban and Built-Up', 'k', (0.09, 0.09, 0.09, 1.)], \
     8313: ['Urban and Built-Up', 'k', (0.2, 0.2, 0.2, 1.)], \
    848414: ['cropland/natural vegetation mosaic', 'g', (0.70, 0.9, 0.70, 1.)], \
    858515: ['Snow and Ice', 'w', (0.90, 0.9, 0.90, 1.)], \
    86 16: ['Barren or Sparsely Vegetated', 'w', (0.20, 0.6, 0.20, 1.)], \
    87 17: ['Water', 'g', (0.1, 0.1, 0.99, 1.)], \
    88 18: ['Wooded Tundra', 'g', (0.7, 0.7, 0.1, 1.)], \
    89 19: ['Mixed Tundra', 'g', (0.65, 0.65, 0.1, 1.)], \
    90 20: ['Barren Tundra', 'g', (0.45, 0.45, 0.1, 1.)], \
     8616: ['Barren or Sparsely Vegetated', 'w', (0.90, 0.6, 0.20, 1.)], \
     8717: ['Water', 'g', (0.2, 0.89, 0.89, 1.)], \
     8818: ['Wooded Tundra', 'g', (0.7, 0.3, 0.1, 1.)], \
     8919: ['Mixed Tundra', 'g', (0.65, 0.25, 0.1, 1.)], \
     9020: ['Barren Tundra', 'g', (0.45, 0.05, 0.1, 1.)], \
    919121: ['Unassigned', 'w', (0.05, 0.05, 0.05, 1.)], \
    929222: ['Unassigned', 'w', (0.05, 0.05, 0.05, 1.)], \
     
    999929: ['Unassigned', 'w', (0.05, 0.05, 0.05, 1.)], \
    10010030: ['Unassigned', 'w', (0.05, 0.05, 0.05, 1.)], \
    101 31: ['Low Intensity Residential', 'k', (0.10, 0.1, 0.1, 1.)], \
    102 32: ['High Intensity Residential', 'k', (0.05, 0.05, 0.05, 1.)], \
    103 33: ['Industrial or Commercial', 'k', (0.15, 0.15, 0.15, 1.)]}
     10131: ['Low Intensity Residential', 'k', (0.30, 0.3, 0.3, 1.)], \
     10232: ['High Intensity Residential', 'k', (0.15, 0.15, 0.15, 1.)], \
     10333: ['Industrial or Commercial', 'k', (0.25, 0.25, 0.25, 1.)]}
    104104
    105105ncolorsauto = ['r', 'g', 'b', 'c', 'm', 'y', 'k', 'w', \
Note: See TracChangeset for help on using the changeset viewer.