Model Builder tutorial for soil moisture average
Open ArcMap and select Geoprocessing->ModelBuilder as shown below
You will get ModelBuilder another window. Select Iterator->Rasters as shown below
You will get the following window:
Later Select ArcToolbox
At the right side, you will get the following menu. Go to Spatial Analyst Tools -> Map Alegbra->Raster
Calculator as shown below:
Drag Raster Calculator to Model builder window. You will get the following
You need to collect output of Raster Calculator files into Output Values of Collect
Select Insert->Model Only Tools -> Collect Values. You will get the following window
To take the mean of all the files, you need to get Cell Statistics as given below
Draw the cell statistics to Model builder. You will get the following
You need to Provide Input files and output files, mask file (india map) and also link various tasks.
1) Click on Iterate Rasters and give the following information (directory where your file contains)
Apply and press OK
2) Next Press Raster Calculator and prepare equation in the following way or copy and paste
SetNull(("%AMSR_E_L3_DailyLand_V06_20030101_Ascending_Land_Grid_A_Soil_Moisture_b7f
[Link]%" == 9999) |
("%AMSR_E_L3_DailyLand_V06_20030101_Ascending_Land_Grid_A_Soil_Moisture_b7fdb3ee.ti
f%" == -
9999),"%AMSR_E_L3_DailyLand_V06_20030101_Ascending_Land_Grid_A_Soil_Moisture_b7fdb
[Link]%"/10.0) divide by 10 used as calibration or scale factor
Use only calculator button with mouse (do not enter with keyboard)
Also select %Name% as output (it is like variable)
3) Click on rastercalc and change it as %Name%
4)
5) You need to make connection by clicking the Connect button on model
After clicking Connect button, use mouse to draw an arrow from %Name% to Collect Values and
select as Input.
6) Similarly, you draw connection from Output Values to Cell Statistic While drawing arrows; you
please select Input Raster option. You will get the following
Change Cell Statistics output;
Do not forget to give extension (tif) to the file
monthly_mean. Otherwise, you will get grid
file which is not compatible for clipping.
7) Run the modeler for getting mean of month values (see below red circle and click on that)
For further use of this modeler, you can save the file in your name and send to me for verification.
Display monthly_mean.tif file and overlay India map
You can drag monthly_mean.tif file in ArcInfo and overlay India_update.shp file by clicking (+)
in main menu (red circle). You will get as below.
Clipping or Masking to get only Indian map region.
ArcToolbox->Raster->Raster Processing->Clip
You can also use Spatial Analysis Tools -> Extraction -> Extract by Mask
Output is open automatically.
After opening, overlay India_Update map. To see both Indian states and soil moisture map, you need to
right click (red circle) and select no fill or hallow.
Giving colors to soil moisture
Right click on the raster file (left layer menu) and select Properties.
Provide graduated colour (red to blue) using the symbology option in Arc map. (see below)
Add the layout, north arrow and scale bar.
View->Layout View
Reduce the borders by dragging and right click and select full extent to make it centre.
Adding lat/long and grids
Right click on the map and select properties, you will get the following
Click on New Grid and select 5 degree internval
Removing grid lines and keeping Lat/long labels in bigger size.
Select now properties (shown in blue) and change
Label font size Selection
Adding soil moisture color label
Main menu Insert-> Legend
Move India_updated from Legend Items by clicking the symbol < (red circle)
Removing Unwanted things from Legend (extracted_mask, value, etc. from the legend)
Right click on the legend in the map and select Properties
Change Apply to all labels to Apply to Layer name and select. Change color black to No
color. Similarly Class heading also to no color.
Later General -> Show off
Changing Width and Height
Right Click on the legend and properties and then “Layout”
By changing Patch Gap, you can keep label text very close to color bar
Label Font Change
The final map with scale and north arrow should be like this