analyzing seasonal changes with functions | arcgis resources

8
Analyzing Seasonal Changes with Functions | ArcGIS Resources http://blogs.esri.com/esri/arcgis/2013/09/06/analyzing-seasonal-changes-with-functions/[9/26/2013 6:18:57 PM] Home Communities Help Blog Forums Videos by kevin_butler on September 6, 2013 Analyzing Seasonal Changes with Functions This Blog Sign in Subscribe to the RSS Feed Comments RSS Technical Communities 3D GIS (84) Analysis & Geoprocessing (196) ArcGIS Online (539) Developer (349) Editing (131) Geodata (179) Imagery (225) Mapping (427) Mobile (143) Python (35) Services (597) Story Maps (22) Web (151) Industry Communities ArcGIS Online Sign In Often we difference two images to see where change has occurred, and usually that’s a pretty decent approach. I came across this paper recently that had a simple, but effective approach for measuring the change in vegetation over a season. By differencing a late summer and spring image, converting that to z-scores, and then differencing the first year’s z-scores from the second, the researchers were able to analyze seasonal changes. They were working on Landsat data in the southwestern U.S. For the sake of being different, I’m going to show you how to do this using the MODIS EVI product for central China. I recommend renaming the rasters from the MODIS naming convention into something meaningful for you. To start, I have 4 raster datasets, one for the fall and spring of 2000 and 2013. The equation for calculating z-scores for each year is: (Fall2013 – Spring 2013) – μ(Fall2013 – Spring2013) σ(Fall2013 – Spring2013) Because everything is parentheses is the same, another way to think of this is: A – μA σA

Upload: mizzakee

Post on 10-Dec-2015

219 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Analyzing Seasonal Changes with Functions | ArcGIS Resources

Analyzing Seasonal Changes with Functions | ArcGIS Resources

http://blogs.esri.com/esri/arcgis/2013/09/06/analyzing-seasonal-changes-with-functions/[9/26/2013 6:18:57 PM]

Home Communities Help Blog Forums Videos

by kevin_butler on September 6, 2013

Analyzing Seasonal Changes with Functions This Blog

Sign in

Subscribe to the RSS Feed

Comments RSS

Technical Communities

3D GIS (84)

Analysis & Geoprocessing(196)

ArcGIS Online (539)

Developer (349)

Editing (131)

Geodata (179)

Imagery (225)

Mapping (427)

Mobile (143)

Python (35)

Services (597)

Story Maps (22)

Web (151)

Industry Communities

ArcGIS Online Sign In

Often we difference two images to see where change has occurred, and usually that’s a pretty decentapproach. I came across this paper recently that had a simple, but effective approach for measuring thechange in vegetation over a season. By differencing a late summer and spring image, converting that toz-scores, and then differencing the first year’s z-scores from the second, the researchers were able toanalyze seasonal changes. They were working on Landsat data in the southwestern U.S. For the sakeof being different, I’m going to show you how to do this using the MODIS EVI product for central China. Irecommend renaming the rasters from the MODIS naming convention into something meaningful for you.To start, I have 4 raster datasets, one for the fall and spring of 2000 and 2013. The equation forcalculating z-scores for each year is:

(Fall2013 – Spring 2013) – µ(Fall2013 – Spring2013)σ(Fall2013 – Spring2013)

Because everything is parentheses is the same, another way to think of this is:

A – µAσA

Page 2: Analyzing Seasonal Changes with Functions | ArcGIS Resources

Analyzing Seasonal Changes with Functions | ArcGIS Resources

http://blogs.esri.com/esri/arcgis/2013/09/06/analyzing-seasonal-changes-with-functions/[9/26/2013 6:18:57 PM]

App Developers (15)

Community Maps (98)

Defense (75)

Electric & Gas (27)

Hydro (121)

Local Government (153)

Location Analytics (336)

National Government (23)

Oceans & Maritime (35)

Public Safety (92)

State Government (24)

Telecommunications (39)

Transportation (25)

Water Utilities (185)

Step 1: Year 2 minus Year 1

I can do all of the workflow in the Image Analysis Window, using functions. When working with theFunction Editor, you have to work from the top, and move down, and the first step you implement is thelast step in your analysis, so in this case it will be a minus operation because I will be subtracting theyear 2000 z-scores from the 2013. Start with one of the rasters (it doesn’t matter which one, but keeptrack of which one it is) and right click to insert an arithmetic function. The operation should be minus. Ilike to keep my workflows clean, so I tend to rename every step. I called this y2-y1. This will be yourmain branch. From here on out, every operation you implement in the first branch will be mirrored in theother. The only difference will be that the functions in the second branch will run on different datasets.

Page 3: Analyzing Seasonal Changes with Functions | ArcGIS Resources

Analyzing Seasonal Changes with Functions | ArcGIS Resources

http://blogs.esri.com/esri/arcgis/2013/09/06/analyzing-seasonal-changes-with-functions/[9/26/2013 6:18:57 PM]

Recent Posts

Refreshing dynamic layersautomatically

“Real Time” Story Map MapTours

ArcGIS Online Geocodingand Routing ServicesChanging Soon: Updateyour ArcGIS for Local &State GovernmentApplications

Using photos stored inArcGIS Online

Sync with Feature Servicesin ArcPad 10.2

Tags

.NET AnnouncementArcGIS.com ArcGIS10 ArcGIS ContentArcGIS Data Reviewer

ArcGIS DesktopArcGIS Methods ArcGISMobile ArcGISOnline ArcGIS

Step 2: Numerator/Denominator

The second operation is a division, this will take care of dividing the denominator from the numerator.Right click on the raster and insert an arithmetic function, and choose division as the operator.

Step 3: A – µA

Next, insert another arithmetic function—this time, minus—on the raster. Finally, right click on the rasterand insert another arithmetic function with a minus operator. This time, change Input Rasters to be thefall image in your later year (Input Raster 2) and the spring image in your later year (Input Raster 1).Your function chain should look like this:

Right-click on the raster that is outside of the Arithmetic Function operation you just implemented andadd a Statistics Function, with mean as the operator. The cell size should be 4800 x 4800 becausethat’s how many pixels are in this tile, and we just need the mean value of all the pixels. Then, right clickon the raster under the statistics function and add an Arithmetic Funciton, with minus as the operator.

Page 4: Analyzing Seasonal Changes with Functions | ArcGIS Resources

Analyzing Seasonal Changes with Functions | ArcGIS Resources

http://blogs.esri.com/esri/arcgis/2013/09/06/analyzing-seasonal-changes-with-functions/[9/26/2013 6:18:57 PM]

Server ArcMap bao-only Best PracticesBusiness Analyst DesktopBusiness Analyst OnlineCartographic DesignCommunity Maps datademographic data Editing EsriData Explorer Desktop FlexGeodatabaseGeoprocessing GISImagery Java JavaScriptmap services mosaic dataset

public safety Python RasterRasters SDK sewer Silverlight

stormwater SymbologyTemplates updateswastewater water

More Tags ...

Archives

September 2013

August 2013

July 2013

June 2013

May 2013

April 2013

March 2013

February 2013

January 2013

December 2012

November 2012

October 2012

September 2012

Make sure the Input Rasters are set up so that the Spring is subtracted from the Fall.

Step 4: σA

To calculate the standard deviation, repeat the same steps from the previous paragraph, but choosestandard deviation instead of mean as your operator. It should look like this:

Step 5: Year 1

So, you’ve set up the function chain for the second year. To subtract year 1 from this, simply repeat theprocess outlined above on the remaining raster that doesn’t have any functions applied to it.

Click OK to process your imagery, and the results should render quickly. When you’re done, right clickon the .afr file (just below the Function Chain header) and select export as template and then save it.This will save your function chain so that you can apply it other layers. The paper that I referenced wentinto much greater depths in terms of its analysis—and they did some things differently in terms ofdifferencing—but hopefully this gives you an idea of how to work with arithmetic functions.

Page 5: Analyzing Seasonal Changes with Functions | ArcGIS Resources

Analyzing Seasonal Changes with Functions | ArcGIS Resources

http://blogs.esri.com/esri/arcgis/2013/09/06/analyzing-seasonal-changes-with-functions/[9/26/2013 6:18:57 PM]

This entry was posted in Imagery and tagged evi, function chain, function editor, Imagery, MODIS, Raster. Bookmark the permalink.

August 2012

July 2012

June 2012

May 2012

April 2012

March 2012

February 2012

January 2012

December 2011

November 2011

October 2011

September 2011

August 2011

July 2011

June 2011

May 2011

April 2011

March 2011

How we made the Rim Fire Critical Points of Interest Map The 2020 Olympics: Mapping Past and Potential Locations

Leave a Reply

You must be logged in to post a comment.

Page 6: Analyzing Seasonal Changes with Functions | ArcGIS Resources

Analyzing Seasonal Changes with Functions | ArcGIS Resources

http://blogs.esri.com/esri/arcgis/2013/09/06/analyzing-seasonal-changes-with-functions/[9/26/2013 6:18:57 PM]

February 2011

January 2011

December 2010

November 2010

October 2010

September 2010

August 2010

July 2010

June 2010

May 2010

April 2010

March 2010

February 2010

January 2010

December 2009

November 2009

October 2009

September 2009

August 2009

July 2009

June 2009

May 2009

April 2009

March 2009

February 2009

Page 7: Analyzing Seasonal Changes with Functions | ArcGIS Resources

Analyzing Seasonal Changes with Functions | ArcGIS Resources

http://blogs.esri.com/esri/arcgis/2013/09/06/analyzing-seasonal-changes-with-functions/[9/26/2013 6:18:57 PM]

January 2009

December 2008

November 2008

October 2008

September 2008

August 2008

July 2008

June 2008

May 2008

April 2008

March 2008

February 2008

January 2008

December 2007

November 2007

October 2007

September 2007

August 2007

July 2007

June 2007

May 2007

April 2007

March 2007

February 2007

January 2007

Page 8: Analyzing Seasonal Changes with Functions | ArcGIS Resources

Analyzing Seasonal Changes with Functions | ArcGIS Resources

http://blogs.esri.com/esri/arcgis/2013/09/06/analyzing-seasonal-changes-with-functions/[9/26/2013 6:18:57 PM]

Feedback Site Map Legal Support Training

December 2006