{"id":635,"date":"2013-06-12T12:22:14","date_gmt":"2013-06-12T19:22:14","guid":{"rendered":"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/?p=635"},"modified":"2013-06-12T12:22:24","modified_gmt":"2013-06-12T19:22:24","slug":"635","status":"publish","type":"post","link":"https:\/\/dev.blogs.oregonstate.edu\/geo599spatialstatistics\/2013\/06\/12\/635\/","title":{"rendered":"Final Post"},"content":{"rendered":"<p>My goal for this class was to learn what tools available in ArcGIS&#8217;s Spatial Statistics toolbox might be useful in helping to answer my research questions regarding\u00a0 spatial-temporal relationships between mountain pine beetle outbreak\\spread and coinciding environmental characteristics such as topography, climate, and forest attributes.\u00a0 I quickly learned that the spatial statistics tools in ArcMap are not suitable for my data.\u00a0 All tools expect vector data as inputs and I am working with raster image data.\u00a0 I can do conversions from raster to vector, but it really doesn&#8217;t make sense computationally and theoretically.\u00a0 Also, I found that my image data needed a lot more pre-processing to get it to a point where it could be analyzed than I originally thought.\u00a0 I spent the majority of the class time preparing my data, which included: georegistration, disturbance detection, and disturbance causal agent identification.\u00a0 Once I had completed these steps for a pilot image scene I was able to do a quick look at outbreak elevation histograms through time, and also annual climate prior to and during the outbreak.<\/p>\n<p>The remainder of this post will walk through the steps I took to process the imagery and present some initial findings on mountain pine beetle outbreak and environment relationships.<\/p>\n<p>The first step in image preprocessing was to properly georegister mis-registered images.\u00a0 Please click on the images below to see an example of a before and after image registration correction.<\/p>\n<p><a href=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/fiximg1.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-701\" alt=\"fiximg1\" src=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/fiximg1-300x198.gif\" width=\"300\" height=\"198\" srcset=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/1572\/files\/2013\/06\/fiximg1-300x198.gif 300w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/1572\/files\/2013\/06\/fiximg1-1024x677.gif 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a> <a href=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/fiximggood.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-702\" alt=\"fiximggood\" src=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/fiximggood-300x198.gif\" width=\"300\" height=\"198\" srcset=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/1572\/files\/2013\/06\/fiximggood-300x198.gif 300w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/1572\/files\/2013\/06\/fiximggood-1024x677.gif 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a> <a href=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/fiximggood.gif\"><br \/>\n<\/a><\/p>\n<p>Figure 1. Satellite image before and after georegistration correction (click images to see animation)<a href=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/fiximggood.gif\"><br \/>\n<\/a><\/p>\n<p>The registration process was coded and automated using the R &#8220;Raster&#8221; package.\u00a0 The first step was to sample the image with points and extract small image chips or windows from around the point in the reference image and the misregistered image (see figure below).<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/sample1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-712\" alt=\"sample\" src=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/sample1-300x198.png\" width=\"300\" height=\"198\" srcset=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/1572\/files\/2013\/06\/sample1-300x198.png 300w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/1572\/files\/2013\/06\/sample1-1024x678.png 1024w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/1572\/files\/2013\/06\/sample1.png 1292w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Figure 2. Sample reference and misregistered image and extract image chips from around the sample points.<\/p>\n<p>Within the registration program, for each sample point, the misregistered image chip is &#8220;slid&#8221; over the reference image chip at all defined x and y offset distances and cross correlation coeffiecients are calculated for each shift based on the intersecting pixel values.\u00a0 Please click on the figure below to see an example of the moving window cross correlation.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/itpfind.gif\"><img loading=\"lazy\" decoding=\"async\" alt=\"itpfind\" src=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/itpfind-300x300.gif\" width=\"300\" height=\"300\" \/><\/a>\u00a0 Click image to see animation<\/p>\n<p>Figure 3.\u00a0 Animation example of moving window cross correlation analysis between reference and misregistered image chips for iterative xy offset shifts.<\/p>\n<p>A cross correlation surface is produced for each sample point.\u00a0 The apex of the conical peaks represent the offset that is needed to correct the misregisted image.\u00a0 A 2nd order polynomial equation is created from all legitimate peaks and used to warp the misregistered image into its correct geographic position.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/ccc_surfaces.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"ccc_surfaces\" src=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/ccc_surfaces-300x191.png\" width=\"300\" height=\"191\" \/><\/a><\/p>\n<p>Figure 4. Example cross correlation surfaces showing the best offset matches between the reference image and misregistered image chips<\/p>\n<p>With all images in their correct geographic position, the &#8220;LandTrendr&#8221; change detection program was applied to the long time series of Landsat imagery to identify pixels that have been disturbed.\u00a0 A discriminant analysis of empirical variables related to spectral, shape, and topographic characteristics of identified disturbances was conducted to predict disturbance agent from a training set of labeled disturbances.\u00a0 The figure below depicts a mountain pine beetle outbreak identified in central Colorado.\u00a0 Click on the image to see the outbreak start and progression (colors represent magnitude change to forest: low-high\\blue-red)<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/test.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-638\" alt=\"test\" src=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/test-268x300.gif\" width=\"268\" height=\"300\" \/><\/a> click image to see animation<\/p>\n<p>Figure 5: Mountain pine beetle outbreak spread as captured by annual Landsat satellite imagery<\/p>\n<p>From the outbreak progression video above, you can see that the outbreak appears to move up slope.\u00a0 To find out if this is truly the case I extracted elevation values for all insect affected pixels per year and plotted the histogram of both elevation value density and frequency.\u00a0 Please click on the images below to see the shift in elevation and area affected as the outbreak progresses.<\/p>\n<p><a href=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/histdense.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-700\" alt=\"histdense\" src=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/histdense-300x300.gif\" width=\"300\" height=\"300\" srcset=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/1572\/files\/2013\/06\/histdense-300x300.gif 300w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/1572\/files\/2013\/06\/histdense-150x150.gif 150w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/histcount.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-703\" alt=\"histcount\" src=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/histcount-300x300.gif\" width=\"300\" height=\"300\" srcset=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/1572\/files\/2013\/06\/histcount-300x300.gif 300w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/1572\/files\/2013\/06\/histcount-150x150.gif 150w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>Click images to see animation<a href=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/fiximggood.gif\"><br \/>\n<\/a><\/p>\n<p>Figure 6. Animated histograms depicting the progression of mountain pine beetle progression up slope.<\/p>\n<p>I was also curious about what the annual climate was doing before and during the outbreak.\u00a0 I extracted PRISM climate data from 1985 to 2008 in the region of the outbreak and plotted it with the count of insect-disturbed pixels.\u00a0 The figure shows that maximum and minimum annual temperature begin to increase 1 to 2 standard deviations from mean about 5 years before the outbreak really takes off.\u00a0 This corresponds with a 3-4 year drop in annual precipitation.\u00a0 These conditions could have drought stressed the forests and provided a highly productive climate for the beetle to reproduce multiple times in a season and avoid freeze-kill.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/climate1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-717\" alt=\"climate\" src=\"http:\/\/blogs.oregonstate.edu\/geo599spatialstatistics\/files\/2013\/06\/climate1-300x185.png\" width=\"300\" height=\"185\" srcset=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/1572\/files\/2013\/06\/climate1-300x185.png 300w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/1572\/files\/2013\/06\/climate1-1024x633.png 1024w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/1572\/files\/2013\/06\/climate1.png 1215w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Figure 7.\u00a0 Graph showing annual deviation from mean for PRISM climate variables and insect-disturbed pixels for 23 years.<\/p>\n<p>In closing, I found the ArcMap spatial statistics unable to work with my raster format data, but was able to make a lot of progress in data preparation and analysis and exploration of satellite image detected insect outbreaks and corresponding environmental factors.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My goal for this class was to learn what tools available in ArcGIS&#8217;s Spatial Statistics toolbox might be useful in helping to answer my research questions regarding\u00a0 spatial-temporal relationships between mountain pine beetle outbreak\\spread and coinciding environmental characteristics such as topography, climate, and forest attributes.\u00a0 I quickly learned that the spatial statistics tools in ArcMap&hellip; <a href=\"https:\/\/dev.blogs.oregonstate.edu\/geo599spatialstatistics\/2013\/06\/12\/635\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":5005,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[660972],"tags":[],"class_list":["post-635","post","type-post","status-publish","format-standard","hentry","category-final-post-2013"],"_links":{"self":[{"href":"https:\/\/dev.blogs.oregonstate.edu\/geo599spatialstatistics\/wp-json\/wp\/v2\/posts\/635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.blogs.oregonstate.edu\/geo599spatialstatistics\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.blogs.oregonstate.edu\/geo599spatialstatistics\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.blogs.oregonstate.edu\/geo599spatialstatistics\/wp-json\/wp\/v2\/users\/5005"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.blogs.oregonstate.edu\/geo599spatialstatistics\/wp-json\/wp\/v2\/comments?post=635"}],"version-history":[{"count":12,"href":"https:\/\/dev.blogs.oregonstate.edu\/geo599spatialstatistics\/wp-json\/wp\/v2\/posts\/635\/revisions"}],"predecessor-version":[{"id":757,"href":"https:\/\/dev.blogs.oregonstate.edu\/geo599spatialstatistics\/wp-json\/wp\/v2\/posts\/635\/revisions\/757"}],"wp:attachment":[{"href":"https:\/\/dev.blogs.oregonstate.edu\/geo599spatialstatistics\/wp-json\/wp\/v2\/media?parent=635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.blogs.oregonstate.edu\/geo599spatialstatistics\/wp-json\/wp\/v2\/categories?post=635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.blogs.oregonstate.edu\/geo599spatialstatistics\/wp-json\/wp\/v2\/tags?post=635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}