Select to view content in your preferred language

Combine on two rasters with different cell size

13746
14
07-15-2015 12:54 PM
DitlevReventlow
Deactivated User

Hey everyone.

I have used the tool combine on two datasets that did not have the same spatial resolution. I can see that "Combine" has chosen the bigger cell size as the output raster spatial resolution.

How has combine calculated the output raster value for the raster that had the small cell size? I cant see anything about it in the combine tool help.

Thank you very much.

Best regards

Ditlev Reventlow

0 Kudos
14 Replies
IanMurray
Honored Contributor

Hi Ditlev,

I'm not sure which resampling method it would use(I would assume Nearest Neighbor, but ArcGIS has several other resampling options, including Majority, Bilinear and Cubic, and as you said there is no tool documentation for which is being used).  If you want to guarantee which method is being used, I would recommend Resampling the smaller resolution raster first to the size of the larger resolution with the resampling method of your choice, then combining your rasters.

ArcGIS Help 10.1

DitlevReventlow
Deactivated User

Thank you for this Ian, The problem is that I have already done the analysis, so I have to write the consequences and implications of this. I guess though that a solution could be to try the different resampling methods on the finer raster and see if one of them gives the same result as combine.

0 Kudos
DitlevReventlow
Deactivated User

Nope, this doesn't work, because although the cell size is the same, the position of the cell in the "new resampled file" and the combined file is different. Therefore, it will not be the same smaller cells that the two coarser raster datasets are derived from. Hope there is another solution to solving this problem.

0 Kudos
SteveLynch
Esri Regular Contributor
DanPatterson_Retired
MVP Emeritus

Follow Steve Lynch's advise and when you are using tools in ArcToolbox, there is the oft-ignored Environments button in the lower right of the dialog.  That is where you should set all your raster parameters prior to running any tool.  Do not assume that once you have set something ... OR  ... you have set some of them somewhere else, that they will be retained and/or used.  The rule is...if it isn't set, then a default will be used and a default is only as good as your data are perfect.  You need to specify the extent, cell size and snap raster to align the cell edges...explicitly.

DitlevReventlow
Deactivated User

Great, thank you Dan and Steve. I tried all the different resampling method, except form majority, and none of them created the same number.

The reason why I havent tested the majority method is because when I do the resampling with majority there is no output raster afterwards. I have tried it several times and each time the same. How can this be that majority doesn't work like the other resampling methods?

Also Is it possible that the "combine" tool uses another resampling method than the 4 options in the "resample" tool?

0 Kudos
DanPatterson_Retired
MVP Emeritus

Why not just go with the cell size of the finer grid  by setting the cell size, Cell Size (Environment setting)—Help | ArcGIS for Desktop , the extent and snap raster as suggested by Steve.  Then do the combine.  There is no interpolation, no aggregation ... just the bigger cell sized raster gets chopped into smaller bits to match the smaller cell sized raster... Of course this recommendation is contingent upon knowing what you are working with and what you intend to do it since ANY kind of combine operation interpretation is contingent upon a full understanding of the inputs and the processes that they were subjected to...  And screen grabs of what you are combining would help since the spatial arrangement of the 'things' may prompt further recommendations.

DitlevReventlow
Deactivated User

Thank you Dan. The thing is that I have already done it and there is no time to redo it, even though this would obvious be the best. I know it should have been the bigger raster that should have been resampled to the cell size of the smaller raster.

Therefore, I just need to be aware of the consequences of the way that I have used combine (not using the "resample" tool, but having "combine" do the resampling process using the bigger cell size as output raster").

The importance is what combine has done in this process. Is there really no way to figure this out?

0 Kudos
DanPatterson_Retired
MVP Emeritus

The consequences of aggregating to a coarser scale/cell size, is the loss of information.

The consequences of producing a smaller cell size by cell division is an increase in the count per class, but not as a percentage of the total.

The consequences of using any 'filter'...mean, majority, minority etc etc ... well it depends...

at worst, representation 'issues/errors' ie 3x3 window ==>

average of 100,1,1,2,2,1,1,1,1  Hmmmmm?

majority of  ............................   not bad for this one but can't say it is good for all

etc

The consequences of interpolation, depend upon the nature of the data, its values and spatial arrangement and the interpolation method used.  There are guidelines...but people tend to do ... "guidelines = fact" so I won't give any and recommend that you examine the results of the methods and make a decision based upon your results.