X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 26 May 2015 05:50 AM by  anon
summing pixel values for a raster file
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
26 May 2015 05:50 AM
    Hello, I have a raster file where each pixel value represents the volume of a feature across a landscape. I want to find the total volume of the feature in my study region. So I would like to sum every pixel value in the raster file and have a single value which represents the total volume. Is there anyway of doing this in ENVI? Thanks in advance!

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    26 May 2015 11:38 AM
    If you want to sum all of the pixel values in a band of data, the result is a single value in this case and not a raster. I don't believe ENVI has a tool to do this specifically but you can export your data to IDL (using Export to IDL variable) and then use IDL's TOTAL function: print, TOTAL(data) which will print out the sum of all the pixels in the band. Is this what you are looking to do?

    Deleted User



    New Member


    Posts:
    New Member


    --
    27 May 2015 08:59 AM
    Yes, that's what I'm looking to do. Thanks for your help!
    You are not authorized to post a reply.