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

Home » Public Forums » archive » Newbie to IDL needs help :)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Newbie to IDL needs help :) [message #84268] Thu, 09 May 2013 15:25
alchemymetalworks is currently offline  alchemymetalworks
Messages: 3
Registered: May 2013
Junior Member
Ok, this is probably simple and I'm just missing something obvious. I'm basically trying to self-teach myself some IDL to complete a project at work, and since I've spent the last 2 days fighting the urge to throw my keyboard through my monitor I decided to put aside my pride and beg for help from the masses/experts... so here goes...

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
-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.

The goal is to ultimately have a single output with all pixels classified (again) as 1-15 based on the preferred map(s), if that makes sense. And I'm stumped... I know what I want to do, but I can't figure out how to tell the computer to do it... Any help/guidance would be greatly appreciated.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL Workbench & jumping back to STOP/breakpoints
Next Topic: Re: Debugging a widget program (someone else's)

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

Current Time: Wed Oct 08 11:39:54 PDT 2025

Total time taken to generate the page: 0.00501 seconds