model_builder_tutorial_using_arcgis_for_averaging
model_builder_tutorial_using_arcgis_for_averaging
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
db3ee.tif%" == 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
3ee.tif%"/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)
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;
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.
You can also use Spatial Analysis Tools -> Extraction -> Extract by Mask
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.
Removing Unwanted things from Legend (extracted_mask, value, etc. from the legend)