X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 18 Sep 2006 06:00 AM by  anon
How to get the z-profile code?
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
18 Sep 2006 06:00 AM
    Hello, I have created by my own code three files from some envi routine in my disk(derived from satellite image). These files are quite large (like x, y, t; ex:500,500,365). My question is :how is possible to retrive information from each pixel like the z profile tool from menu in envi? Is it possible to see the code used by this tool(z-profile)? Because, if a have data from one pixel location for every dates, and from three file I can do a multi plot, with some change between the axis of the graph. Or more especially, I know that I can do the following: Use WHILE !MOUSE.BUTTON NE 4 DO BEGIN to begin my loop ; Get all the display numbers and ; check to make sure at least one ; display is present. ; display = envi_get_display_numbers() if (display[0] eq -1) then return ; ; Print out the location of the ; current pixel for each display disp_get_location, display[i], xloc, yloc And from here the best way to retrieve information from my file saved into my disk is to use envi_get_slice but I am sure it is not the more simple. Here I can do my plot. Does anybody can help me? Anybody have a similar code than Z-profile? Best Jerome Metral Institut for Reasearch and Development

    Deleted User



    New Member


    Posts:
    New Member


    --
    18 Sep 2006 06:00 AM
    The only documented and supported routine that will allow you to retrieve the full spectrum for a pixel is envi_get_slice. You'd have to set the starting and ending pixel addresses to the same value for the routine to only return the spectrum for one pixel.
    You are not authorized to post a reply.