comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Newbie to IDL needs help :)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Newbie to IDL needs help :) [message #84267 is a reply to message #84266] Thu, 09 May 2013 15:44 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
alchemymetalworks@gmail.com writes:

> Ok, this is probably simple and I'm just missing something obvious.

Yeah, probably. ;-)

> I essentially have 4 maps that were created in ENVI (remote sensing software, if anyone's familiar with it). The maps are the exact same size/pixel count. Each pixel in each map is assigned a value from 1 - 15 based on the land cover that is (assumed)present. I want to create a composite map from these 4, using a set of rules:
>
> -if the value is the same in all the maps, keep that value in the final output map

OK.

> -if the value is 1, 2, 4-9, or 13 use the pixels with that value from map 1
> -if the value is 3, 8, 12, 14, or 15 use the pixels with that value
from map 2
> -if the value is 10 use the pixels with that value from map 3
> -if the value is 11 use the pixels with that value from map 4
> -if a pixel meets several of these criteria (for example, pixel P is value 1 in map 1 and value 10 in map 3)I want to designate which map should take priority.

What "value" are you talking about when you say "if the value"? Are you
talking about a value in a particular image?

I think you are having trouble writing the algorithm (assuming it CAN be
written, which seems doubtful to me at the moment) because you can't say
in words that are free from ambiguity what it is you actually want.

Your last criteria seems to me to contradict all that has come before,
but maybe I just don't know what "if the value" means.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to use mpfit fitting routine
Next Topic: Re: how to use mpfit fitting routine

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:09:42 PDT 2025

Total time taken to generate the page: 0.00423 seconds