Skip to content
Prev 17094 / 29559 Next

Raster crosstab output: -1 values?

Hi Lyndon,

Thanks for your suggestions - I'll have to look into this some more. To be
honest I did the resampling and reprojecting in ArcGIS, since it was taking
forever in R. I think I'll go back and redo this in R to try to eliminate
the possibility that this is what's introducing the '-1' values. 

Thanks again,
Megan

-----Original Message-----
From: Lyndon Estes [mailto:lyndon.estes at gmail.com] 
Sent: Friday, 21 December 2012 2:01 AM
To: Megan Evans
Cc: r-sig-geo
Subject: Re: [R-sig-Geo] Raster crosstab output: -1 values?

Hi Megan,

Can you give some steps on how you prepared the data before stacking?
Was there any resampling, reprojecting, etc. involved in your forest cover
layer?  I have had similar results with rasters in the past where NA values
were represented by negative numbers.  What might have happened is a
relatively large negative number (in absolute terms) was resampled down to a
small one (in absolute terms) with the default setting at bilinear, e.g.

resample(x)

But that's just a guess without knowing your processing steps.

Best, Lyndon
On Wed, Dec 19, 2012 at 6:03 PM, Megan Evans <megan.evans at anu.edu.au> wrote:
data.
insights!
D:/Analysis/R/Data/sttiles/forest_v8_72_11/stsg50.grd
D:/Analysis/R/Data/lutentiles/forest_v8_72_11/lutensg50.grd
63
316999241
17902798
15961
12
334230
396970
0