X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 21 Jan 2015 01:37 AM by  anon
Band Math - Round up cell values
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
21 Jan 2015 01:37 AM
    Hello, Is there an operator/function in band math that will allow me to round up to a particular decimal place? The file in question is a Rapideye ToA reflectance image. I'd ideally like to get it to 3 decimal places so eventually I could multiply the image by 1000 (to save disc space). Any help would be much appreciated. Many thanks, James.

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    21 Jan 2015 09:01 AM
    There is no specific routine in IDL or ENVI to do this but there are some discussions on the IDL newsgroup on how it can be accomplished. Here are a couple of examples: https://groups.google.com/forum/#!top... http://objectmix.com/idl-pvwave/16884...

    Deleted User



    New Member


    Posts:
    New Member


    --
    22 Jan 2015 08:37 AM
    Thanks for the reply. However, my license server doesn't allow me to use IDL. I opted for a work around to get my desired result using band math within ENVI. uint(round (b1 * 1000)) James
    You are not authorized to post a reply.