2

I have time-series data (rasters) from which I need to calculate the direction of change (increase, no change or decrease) for every pixel from one time-step to the next. I further need an output where an increase is assigned a value of +1, no change is assigned a 0 and a decrease is assigned a value of -1 in the output raster. Not sure how I should go about this as I have thus far not been successful. Please help.

2
1

here is what you can do for a single raster :

Con ("raster1" == "raster2", 0, Con("raster1" < "raster2" , 1 , -1) )  

now for your time series, you will need to loop on all bands. But the code will depend on the software used.

1
  • Thank you radouxju. I tried the suggested expression but the output raster still didn't meet my expected result. You did however send me in the right direction and I finally ended up using the expression: Con("raster2">"raster1",1,Con("raster2"<"raster1",-1,0)). Working in ArcGIS 10.1. – Yolandi Mar 5 '14 at 14:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.