X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 23 Jun 2008 09:53 AM by  anon
IDL and ERDAS floating point difference
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
23 Jun 2008 09:53 AM
    Hi all, I have a few images in floating point format from ERDAS Imagine and i intend to perform some operations on them using IDL. When i open the images in ENVI, there seems to be no problem. However, in a script i write in IDL, the output looks bizzare and looks nothing like what i expect. As a test, i converted my images into float again using band math in ENVI, ran the IDL script, and the output looks normal. The same images which as supposed to be of the same data types (floating point) yield different displays. The output when ERDAS (.img) float format is used looks like a bunch of tiles in a very linear fashion and is not the correct display of my study area. I want to know if any of you have an idea whether there is a difference between floating points images created in ERDAS or ENVI/ IDL ? Thanks.

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    23 Jun 2008 09:53 AM
    I don't think it is an issue with the floating point data type but rather the internal tiling in an ERDAS Imagine file. The blocking is discussed in this document: http://home.gdal.org/proj...magine/iau_docu0.pdf ENVI's readers take into account the blocking which is why it looks 'normal' when displayed. You might instead consider letting ENVI do this work for you. Programmatically read in the file via ENVI_OPEN_DATA_FILE and then read the data into a variable for processing in IDL.
    You are not authorized to post a reply.