Run Raster calculator in Model builder

8496
7
02-20-2016 05:16 PM
nikche_ya
New Contributor

Hi,

I want to run raster calculator in Model Builder but I want to add multiple data set and run he same formula.

Can anyone guide me,

Thanks

Nik

0 Kudos
7 Replies
AjitkumarBabar
Occasional Contributor II

Hi Bik,

In the model builder we have inbuilt iteration functionality where we can call the rasters in the workspace.

Go through the link;

Examples of using iterators in ModelBuilder—Tools | ArcGIS for Desktop

Iteration using ModelBuilder in ArcGIS 10 - YouTube

nikche_ya
New Contributor

Hi,

Thanks, but I don't know how to add the formula.

Because for example formula is NIR -R

So, in raster calculator which NIR and R need to choose because it is many images?

I am so sorry if I am not understand. I still stuck in this.

Thanks,

Nik

0 Kudos
AjitkumarBabar
Occasional Contributor II

Hi,

The band (as images specified by you) specification like bandwidth depends upon sensor. What is your data source? For example like landsat, liss,spot etc...

this might help you;

Band Combinations

The Many Band Combinations of Landsat 8

Satellites and sensors - IRS-1C (Indian Remote Sensing)

0 Kudos
nikche_ya
New Contributor

Hi,

my sensor is MCA 6 with 6 bands

So if in one folder which data will be chosen since the data in one group.

This is the example for one image, I am successfully did:

Inline image 1

But the problem now how to do the same using iterate Rasters?

Thanks,

0 Kudos
nikche_ya
New Contributor

Hi,

my sensor is MCA 6 with 6 bands

So if in one folder which data will be chosen since the data in one group.

This is the example for one image, I am successfully did:

But the problem now how to do the same using iterate Rasters?

Thanks,

0 Kudos
AjitkumarBabar
Occasional Contributor II

Step one: Make a model

Step two: Search for "Raster Calculator" in the search window (usually on the left side of the ArcMap Window)

Step three: drag the tool into the model builder box

Step four: double-click the tool and input your equations

Bonus: Use the Iterate function to loop through multiple rasters

I found this on this link;

arcgis desktop - Use of Raster Calculator in ModelBuilder - Geographic Information Systems Stack Exc...

0 Kudos
AjitkumarBabar
Occasional Contributor II

hi,

Go through this also,

Batch raster calculator?

Model.png

0 Kudos