07-20-2009 04:02 PM
I am looking for a more efficient way to take a numeric input and generate a html color code that is compatible with Google Earth color codes. The included example works sort of, but is slow...it seems to need a delay between writing to and reading from the color ramp. Full codesseem to be of the form
oobbggrr
where oo is an 8-bit opacity (00-FF)
bb is an 8-bit blue code (00-FF)
gg is an 8-bit green code (00-FF)
and rr is an 8-bit red code (00-FF)
Any suggestions?
Solved! Go to Solution.
07-20-2009 04:59 PM - edited 07-20-2009 05:01 PM
07-21-2009 08:42 AM
Thank you for looking at this.
OK, to add some more detail...
Given an arbitrary color map or color table (in this case represented by array of scale marker values), I would like to convert a numeric input ("Value" in my example) into a kml color code. The other two numeric inputs in my example are simply the minimum and maximum of an array of values, used to scale the input to a number between 0 and 100.
A simplified version of the vi is attached.
07-21-2009 10:15 AM
07-21-2009 10:30 AM
Thank you and Kudos!
Is there a more efficient way to do this that you can think of?
This seemed pretty kludgey when I coded it, but could not come up with anything better. Your method is a significant improvement, but it seems like there should be something built in to do this (must be done when labview creates intensity plots or color ramps, anyway.
Thanks again, and will post as solved after today. Just curious about any other possible solutions.
- John
07-21-2009 11:59 AM
07-21-2009 12:23 PM
My goal is to create an intensity plot using google earth. Basically I have a file with longititude, latitude, and amplitude and want to create a color-coded bar graph on the surface of the earth. I want to use LabView features as much as possible...and since they have an intensity plot already...I want to make it roughly similar.
I have the basics written, but the color must be a function of amplitude. And I need some efficient way to include the color map if I decide to change the mapping (or someone else decides to change it)