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 #84259 is a reply to message #84257] Fri, 10 May 2013 04:06 Go to previous messageGo to previous message
alchemymetalworks is currently offline  alchemymetalworks
Messages: 3
Registered: May 2013
Junior Member
On Thursday, May 9, 2013 9:35:38 PM UTC-5, David Fanning wrote:
> I get the idea. I just don't get what you mean when you say
>
> "if a value...". *What* value? In what image? How do you intend
>
> to get started on this problem?


Sorry, I misunderstood what part was confusing. Maybe I'm not using the right terms (I need IDL for Dummies). The 'values' I'm referring to are the class assignments (which are in numerical format in ENVI) that range from 1 through 15 (1 is soybeans, 2 is corn, 3 is idle grassland, etc.). The classes (values) are the same for all the classes in each map but the locations of the individual pixels in each map with those values/classes can vary.

So I already have 4 maps that are classified with the same 'number' scheme (I think of it kinda like a large array, but not sure if that's technically the correct term) and I want to 'merge' them by designating which map's class assignment (what I was calling the value) takes priority. In reading through what I can find on the internet in regards to IDL coding, 'if/then' and 'case' statements kinda sounded like what I needed, but I can't figure it out, and neither of them seems exactly right.

I want to create a set of assignment 'rules' to establish the pixel values in the final (initially blank) output map. Something like 'if the target value is 1 (soybeans) refer to map 1 (good for soybeans), on the 'final' map give all pixels that share the same location information with soybeans (value 1) pixels from map 1 a value of 1 to indicate soybeans. And then continue this for each class, indicating the class number and the map that I want to use as the 'rule'.

I have been able to figure out how to write a bit of code that looks at all 4 maps, compares the pixel 'values' and indicates which ones match/don't match across all 4 maps, which is a nice little victory for me, but I'd really prefer to set the priority decision rules and create a merged map. Another idea down the road (if I could figure out IDL) would be to look at all 4 maps, if the values match across all 4 assign that value, if the values don't match across all 4 then use a set of priority rules, etc. But...baby steps...

Does that make it clearer or am I just making no sense whatsoever? I (thankfully) have other classification and/or software options I can explore if I can't figure this out in the allotted time, but I'd really like to compare a couple of different 'final' maps and see how the different techniques compare from an accuracy standpoint on the type of landscape I'm working on.
[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:13:13 PDT 2025

Total time taken to generate the page: 0.00466 seconds