- Timestamp:
- Nov 12, 2019, 2:49:56 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing_tools.py
r2751 r2753 42 42 43 43 # USGS land types 44 oldusgscolors = {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 44 58 usgscolors = {1: ['Urban and Built-Up Land', 'k', (0.8, 0.8, 0.8, 1.)], \ 45 59 2: ['Dryland Cropland and Pasture', 'y', (0.2, 0.9, 0., 1.)], \ … … 93 107 15: ['Snow and Ice', 'w', (0.90, 0.9, 0.90, 1.)], \ 94 108 16: ['Barren or Sparsely Vegetated', 'w', (0.90, 0.6, 0.20, 1.)], \ 95 17: ['Water', ' g', (0.2, 0.89, 0.89, 1.)], \109 17: ['Water', 'b', (0.2, 0.89, 0.89, 1.)], \ 96 110 18: ['Wooded Tundra', 'g', (0.7, 0.3, 0.1, 1.)], \ 97 111 19: ['Mixed Tundra', 'g', (0.65, 0.25, 0.1, 1.)], \ … … 111 125 33: ['Industrial or Commercial', 'k', (0.25, 0.25, 0.25, 1.)]} 112 126 127 # 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.)]} 144 113 145 ncolorsauto = ['r', 'g', 'b', 'c', 'm', 'y', 'k', 'w', \ 114 146 'r', 'g', 'b', 'c', 'm', 'y', 'k', 'w', \ … … 116 148 'r', 'g', 'b', 'c', 'm', 'y', 'k', 'w',] 117 149 118 rgbacolorsauto = [(1.,0.,0.,1.), (0.,1.,0.,1.), (0.,0.,1.,1.), (1.,0.,1.,1.), 150 rgbacolorsauto = [(1.,0.,0.,1.), (0.,1.,0.,1.), (0.,0.,1.,1.), (1.,0.,1.,1.), \ 119 151 (0.,1.,1.,1.), (1.,0.,1.,1.), (1., 0.5, 0., 1.), (0.5, 0., 0., 1.), \ 120 152 (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.