Changeset 1603 in lmdz_wrf for trunk/tools/drawing_tools.py
- Timestamp:
- Aug 10, 2017, 5:19:00 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing_tools.py
r1589 r1603 30 30 colorsauto = ['#FF0000', '#00FF00', '#0000FF', '#FF00FF', '#00FFFF', '#FFAA00', \ 31 31 '#AA0000', '#00AA00', '#0000AA', '#AA00AA', '#00AAAA', '#AA3200', '#AA0032', \ 32 '#32AA00', '#3200AA', '#00AA32', '#0032AA'] 32 '#32AA00', '#3200AA', '#00AA32', '#0032AA', '#32FF00', '#3200FF', '#0032FF', \ 33 '#FF3200', '#FF0032', '#00FF32', '#323200', '#320032', '#003232'] 34 35 # USGS land types 36 usgscolors = {1: ['Urban and Built-Up Land', 'k', (0.8, 0.8, 0.8, 1.)], \ 37 2: ['Dryland Cropland and Pasture', 'y', (0.2, 0.9, 0., 1.)], \ 38 3: ['Irrigated Cropland and Pasture', 'g', (0.1, 0.9, 0., 1.)], \ 39 4: ['Mixed Dryland/Irrigated Cropland and Pasture', 'g', (0.15, 0.9, 0., 1.)], \ 40 5: ['Cropland/Grassland Mosaic', 'y', (0.1, 0.9, 0.1, 1.)], \ 41 6: ['Cropland/Woodland Mosaic', 'y', (0.3, 0.9, 0., 1.)], \ 42 7: ['Grassland', 'g', (0., 1., 0.5, 1.)], \ 43 8: ['Shrubland', 'y', (0.5, 0.6, 0., 1.)], \ 44 9: ['Mixed Shrubland/Grassland', 'y', (0.3, 0.7, 0., 1.)], \ 45 10: ['Savanna', 'y', (0.6, 0.6, 0., 1.)], \ 46 11: ['Deciduous Broadleaf Forest', 'g', (0., 0.4, 0., 1.)], \ 47 12: ['Deciduous Needleleaf Forest', 'g', (0., 0.5, 0., 1.)], \ 48 13: ['Evergreen Broadleaf Forest', 'g', (0., 0.55, 0., 1.)], \ 49 14: ['Evergreen Needleleaf Forest', 'g', (0., 0.6, 0., 1.)], \ 50 15: ['Mixed Forest', 'g', (0., 0.57, 0., 1.)], \ 51 16: ['Water Bodies', 'b', (0.1, 0.1, 1., 1.)], \ 52 17: ['Herbaceous Wetland', 'b', (0.1, 0.1, 1., 1.)], \ 53 18: ['Wooded Wetland', 'g', (0., 0.8, 0., 1.)], \ 54 19: ['Barren or Sparsely Vegetated', 'c', (0.8, 0.6, 0., 1.)], \ 55 20: ['Herbaceous Tundra', 'c', (0.6, 0.9, 0., 1.)], \ 56 21: ['Wooded Tundra', 'c', (0.7, 0.9, 0., 1.)], \ 57 22: ['Mixed Tundra', 'c', (0.65, 0.9, 0., 1.)], \ 58 23: ['Bare Ground Tundra', 'c', (0.9, 0.5, 0., 1.)], \ 59 24: ['Snow or Ice', 'w', (0.95, 0.95, 0.95, 1.)], \ 60 25: ['Playa', 'y', (0.95, 0.95, 0., 1.)], \ 61 26: ['Lava', 'y', (0.95, 0.1, 0.1, 1.)], \ 62 27: ['White Sand', 'y', (0.9, 0.9, 0.7, 1.)], \ 63 28: ['Unassigned', 'k', (0.05, 0.05, 0.05, 1.)], \ 64 29: ['Unassigned', 'k', (0.1, 0.1, 0.1, 1.)], \ 65 30: ['Unassigned', 'k', (0.15, 0.15, 0.15, 1.)], \ 66 31: ['Low Intensity Residential', 'k', (0.5, 0.5, 0.5, 1.)], \ 67 32: ['High Intensity Residential', 'k', (0.7, 0.7, 0.7, 1.)], \ 68 33: ['Industrial or Commercial', 'k', (0.9, 0.9, 0.9, 1.)]} 69 70 ncolorsauto = ['r', 'g', 'b', 'c', 'm', 'y', 'k', 'w', \ 71 'r', 'g', 'b', 'c', 'm', 'y', 'k', 'w', \ 72 'r', 'g', 'b', 'c', 'm', 'y', 'k', 'w', \ 73 'r', 'g', 'b', 'c', 'm', 'y', 'k', 'w',] 74 75 rgbacolorsauto = [(1.,0.,0.,1.), (0.,1.,0.,1.), (0.,0.,1.,1.), (1.,0.,1.,1.), \ 76 (0.,1.,1.,1.), (1.,0.,1.,1.), (1., 0.5, 0., 1.), (0.5, 0., 0., 1.), \ 77 (0., 0.5, 0., 1.), (0., 0., 0.5, 1.), (0.5, 0., 0.5, 1.), (0., 0.5, 0.5, 1.), \ 78 (0.5, 0.25, 0., 1.), (0.5, 0., 0.25, 1.), (0.25, 0.5, 0., 1.), (0.25, 0., 0.5, 1.),\ 79 (0., 0.5, 0.25, 1.), (0., 0.25, 0.5, 1.), (0.5, 1., 0., 1.), (0.5, 0., 1., 1.), \ 80 (0., 0.5, 1., 1.), (1., 0.25, 0., 1.), (1., 0., 0.25, 1.), (0., 1., 0.25, 1.), \ 81 (0.25, 0.25, 0., 1.), (0.25, 0., 0.25, 1.), (0., 0.25, 0.25, 1.)] 33 82 pointkindsauto = ['.', 'x', '+', '*', '|', '_', '1', '2', '3', '4', 'o', '<', '>', \ 34 83 'v', '^', 's', 'D', 'p' ,'h' ,'H']
Note: See TracChangeset
for help on using the changeset viewer.