[Thread Prev][Thread Next][Index]

[las_users] Map Scale and Palettes.



Hello LAS users,

I'm trying to create a plot for Surface Scene Type data that is made up of 18 biomes.  I'd like to do two things:

1.  How can I map dataset values to specific colors?  The problem I'm seeing is that when I have a good palette for the entire region(global) zoomed out, the color changes for smaller regions... for example, if I use the blue_brown palette, the water bodies are blue from a macro view but once you zoom into a smaller area, the color changes to brown.  I'd like it to stay blue.  I've tried creating my own palette surface_scene.spk to address this:

Surface_scene.spk

RGB_Mapping By_level
 
! Level    Red  Green   Blue
      1  51.0   153.0    0.0
      2  51.0   204.0    0.0
      3  51.0   255.0    0.0
      4 102.0   255.0    0.0
      5 102.0   204.0    0.0
      6 102.0   153.0    0.0
      7  51.0   102.0    0.0 
      8 102.0   102.0    0.0
      9  51.0   255.0   51.0
     10  51.0   153.0   51.0
     11  51.0   204.0  204.0
     12 102.0   153.0  102.0
     13 255.0     0.0  102.0
     14 102.0   204.0  153.0
     15 255.0   255.0  255.0
     16 102.0    0.0    0.0
     17   0.0    0.0  255.0
     18 204.0   255.0  255.0
     19 204.0   255.0  255.0
     20 204.0   255.0  255.0
However, it seems that the rgb values are percents rather than hard rgb values so I'm getting out of bounds errors when I run a plot.  Has anyone had success with doing this?

2.  On this same dataset, there are 1-18 distinct biomes.  When I create a plot, I see values that range from 7.5 to 20.5 on the map scale.  Is it possible to fix the map scale values to show a precise range?  In this case 1-18, there are no decimal values in the dataset but the map scale image has 7.5, 8.0, 8.5... 

Maybe both of these issues can be solved with the same fix.  If anyone has guidance on this, I would greatly appreciate hearing from you!  Thanks in advance!

Regards,

Daniel Oostra
Science Systems and Applications, Inc.
NASA/LaRC Atmospheric Sciences Data Center
2 South Wright Street
Hampton, VA 23681-2199
Ph: 757.864.6157
daniel.h.oostra@xxxxxxxx




[Thread Prev][Thread Next][Index]


Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement