X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 24 Jun 2015 04:07 AM by  anon
exporting only data values to IDL variable in a previously masked band
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
24 Jun 2015 04:07 AM
    I am trying to export a subset of a band to an IDL variable.The band has data and 0.00000 values as nodata (the band was previously masked).How can I export only the data values to the variable?Or...is there any other way this can be done?Thanks

    Zachary Norman



    Basic Member


    Posts:173
    Basic Member


    --
    24 Jun 2015 08:55 AM
    Hello, There is a tool for exporting to an IDL variable. On the following link, go to the section labeled "Export to IDL Variable" to see a description of how to do this. http://www.exelisvis.com/...anageRasterData.html Alternatively, you could use the ENVI API to open the raster in IDL and there you can directly make an IDL array which is the appropriate size to contain your values. (http://www.exelisvis.com/...aster__GetData.html) In either case, the output arrays will need to be rectangular and cannot exactly fit your masked data if it is an odd shape.

    Deleted User



    New Member


    Posts:
    New Member


    --
    24 Jun 2015 10:37 PM
    Thanks a lot Zach.Later found out that setting nodata value as 0.00000 was a very bad idea. I am having much more freedom and ease with it set as NaN.
    You are not authorized to post a reply.