X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 21 May 2014 01:02 AM by  anon
Reading a DEM [TDX]
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
21 May 2014 01:02 AM
    Hi there, i'm pretty new to IDL and got a question regarding DEM processing in IDL. I have a dataset of TDX DEMs and want to manipulate certain areas. When i open the DEM (.ras file) in ENVI it is no problem but there i can't do the stuff i want to process. So, how do i read a DEM (.ras) into IDL? As for now i use READ_BINARY with the correct DATA_DIMS but all i got was a really jibberish image? Any help would be appreciated and thanks in advance! UPDATE: Ok so i think my problem is somewhere else. The imported data is roughly a 9000x10000 array. So if the data is imported correctly, what would be the best way to print it? Right now i use a window with the same size of the array and the tvscl procedure to display the data. UPDATE2: So i adjusted some things in the data dims, data type and used the image procedure instead of the tvscl. I got an image that is much more reasonable; still not perfect but i'm getting there. SOLVED

    Deleted User



    New Member


    Posts:
    New Member


    --
    06 Jun 2014 11:59 AM
    If you are able to open the using ENVI, maybe you can us the ENVI's OpenRaster method to get the data into IDL. For example: nv = envi(/HEADLESS) test_rast = nv.OpenRaster('C:\Program Files\Exelis\ENVI51\data\qb_boulder_msi') test_fid = EnviRasterToFID(test_rast) envi_file_query, test_fid, dims=dims data = ENVI_GET_DATA(DIMS=dims,POS=0L,FID=test_fid) i = image(data)

    Deleted User



    New Member


    Posts:
    New Member


    --
    12 Jun 2014 01:50 AM
    Perfect, thank you!
    You are not authorized to post a reply.