X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 10 Sep 2013 04:45 AM by  anon
Problems with nodata-values in floating point raster
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
10 Sep 2013 04:45 AM
    Hello, I have a problem with a raster in ENVI. To explain the problem, let's assume I have 2 raster (same extent and cell size, TIFF, integer, 8 bit, nodata-values 255). With those raster, I can work perfectly well in ENVI. Then I perform some raster math in ArcGIS: raster3 = float(raster1) / float(raster2) [pseudocode] The resulting raster3 is floating point, 32 bit, nodata-values -3.40282346639e+038, and everything is displayed perfectly well in ArcGIS. However, when I display this raster3 in ENVI, it shows nodata-values as black, and everything else as white. Quick stats produce this: Basic Stats Min Max Mean Stdev Band 1 ********************** 0.593220 ********************** ********************** Histogram DN Npts Total Percent Acc Pct Band 1 ********************** 195584 195584 4.3629 4.3629 Bin=******* ********************** 0 195584 0.0000 4.3629 ********************** 0 195584 0.0000 4.3629 ********************** 0 195584 0.0000 4.3629 ********************** 0 195584 0.0000 4.3629 ********************** 0 195584 0.0000 4.3629 ********************** 0 195584 0.0000 4.3629 [...] ********************** 0 195584 0.0000 4.3629 0.000000 4287316 4482900 95.6371 100.0000 Is it right to assume that ENVI doesn't understand nodata-values in floating point raster? How could I solve this problem? Thanks for all answers! :)

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    10 Sep 2013 07:56 AM
    Are you using ENVI 5? If so, you can make those values transparent by going to Edit ENVI Header->Edit Attributes and setting the 'data ignore value' to the background value: -3.40282346639e+038 This does mean the file should be in ENVI format but ArcGIS can import/export ENVI files now. ENVI doesn't really have a concept of a 'no data' value like ArcGIS and all values are 'valid'. To exclude background in processing or statistics, you need to create a mask of the background and use it as input to the process.
    You are not authorized to post a reply.