{"id":21,"date":"2017-11-03T14:32:22","date_gmt":"2017-11-03T21:32:22","guid":{"rendered":"https:\/\/blogs.ubc.ca\/370finalproject\/?page_id=21"},"modified":"2017-11-29T16:38:47","modified_gmt":"2017-11-29T23:38:47","slug":"methods","status":"publish","type":"page","link":"https:\/\/blogs.ubc.ca\/370finalproject\/methods\/","title":{"rendered":"Methods"},"content":{"rendered":"<h1><strong>Data Collection<\/strong><\/h1>\n<p>Our analysis was based on the Digital Elevation Model (DEM) of the specific region studied for this project in the Columbia River basin. This DEM was obtained from GeoGratis. Using the DEM, river networks were derived to delineate the watersheds associated with each fish data point collected.<\/p>\n<p>The shapefile of the glacial cover data throughout British Columbia was collected from the Global Land Ice Measurements from Space (GLIMS) glacier database. The lake shapefile was taken from BC&#8217;s Freshwater Atlas. The historical climate data for the period of July through August was obtained from ClimateWNA BC, and the fish data was gathered using the BC Fish Inventory (view references page for data download links).<\/p>\n<p>The above data was retrieved and clipped to the DEM representing our study area to discard any extraneous information.<\/p>\n<h1><strong>Fish Inventory<\/strong><\/h1>\n<p>As aforementioned, all fish data points were downloaded from the BC Fish Inventory. The data represented fish observations from 1977 to 1998 throughout the province. Within the study area, approximately 30 fish observation points from 1990 through 1998 were chosen at random to represent the distribution of fish in the Columbia River. A range of 1990 though 1998 was chosen for this study to keep the years of fish data consistent with years of the glacial data. A selection of 30 points was made in order to keep within the time limitations of this project.<\/p>\n<p>Each fish observation point contained details about the type of fish observed, the date of the observation, the location, and general comments.<\/p>\n<h1><strong>MWAT Model<\/strong><\/h1>\n<p>The Maximum Weekly Average Temperature (MWAT) Model was used in this study to characterize the temperature regimes of fish species in the Columbia River basin. MWAT is the maximum, 7-day moving average of the mean daily water temperature from July through August (Parkinson et al. 2015). MWAT is calculated using:<\/p>\n<div class=\"page\" title=\"Page 5\">\n<div class=\"layoutArea\">\n<div class=\"column\"><\/div>\n<\/div>\n<div class=\"layoutArea\">\n<div class=\"column\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-114\" src=\"https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/Screen-Shot-2017-11-22-at-8.02.47-PM.png\" alt=\"\" width=\"726\" height=\"192\" srcset=\"https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/Screen-Shot-2017-11-22-at-8.02.47-PM.png 726w, https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/Screen-Shot-2017-11-22-at-8.02.47-PM-300x79.png 300w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/p>\n<\/div>\n<p>where <em>T<\/em><sub><em>a<\/em>\u00a0<\/sub><span style=\"font-size: 1rem;\">is the average July through August air temperature (\u00b0C),<em> A<\/em> is the catchment area (<\/span>km<sup>2<\/sup><span style=\"font-size: 1rem;\">),\u00a0<\/span><em>Z<\/em><sub><em>m<\/em>\u00a0<\/sub><span style=\"font-size: 1rem;\">is the mean elevation of the catchment (m), <em>f<\/em><sub><em>g<\/em>\u00a0<\/sub>is the fraction of glacier cover in the catchment,<\/span><sub>\u00a0<\/sub><em>f<sub>l<\/sub><strong><sub>\u00a0<\/sub><\/strong><\/em><span style=\"font-size: 1rem;\">is the fraction of lake cover in the catchment, <em>S<\/em> is the channel gradient at the fish location,\u00a0<\/span><em>k<\/em><sub><em>2<\/em>\u00a0<\/sub><span style=\"font-size: 1rem;\">is the index of the magnitude of the average yearly flood, and <em>e<\/em> is the prediction error (Parkinson et al., 2015). The\u00a0<\/span>prediction error adds up all the errors in all the variables and creates an error temperature range for the MWAT.\u00a0 For simplicity, our analysis ignored calculating the prediction error; however, it should be noted that as a result there are errors in our MWAT values that were not accounted for in the model.<\/p>\n<p><strong style=\"font-size: 1.5rem;\">Data Preparation with TauDEM in ArcGIS<\/strong><\/p>\n<\/div>\n<\/div>\n<p>Terrain Analysis Using Digital Elevation Models (TauDEM) provides users with a suite of tools necessary to extract and analyze hydrologic information represented in a DEM (It can be downloaded at this website: <a href=\"http:\/\/hydrology.usu.edu\/taudem\/taudem5\/\">http:\/\/hydrology.usu.edu\/taudem\/taudem5\/<\/a>). We used the tool &#8220;Pit Remove&#8221; in TauDEM to prepare our raster data as opposed to the tools already available in ArcGIS because, unlike the &#8220;fill&#8221; tool in ArcGIS, TauDEM removes pits using the flooding approach to create hydrologically conditioned DEMs (Figure 1).<\/p>\n<figure id=\"attachment_138\" aria-describedby=\"caption-attachment-138\" style=\"width: 1056px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-138 size-full\" src=\"https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/DEM-1.jpg\" alt=\"\" width=\"1056\" height=\"816\" srcset=\"https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/DEM-1.jpg 1056w, https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/DEM-1-300x232.jpg 300w, https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/DEM-1-768x593.jpg 768w, https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/DEM-1-1024x791.jpg 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption id=\"caption-attachment-138\" class=\"wp-caption-text\">Figure 1. Map showing DEM (with pits removed) of study area. Dark colors represent areas of low elevation while light colors represent areas of high elevation. Legend is in meters.<\/figcaption><\/figure>\n<p>After removing the pits, a flow direction layer was created to represent the simplest model of the direction of water flow over the terrain.<\/p>\n<figure id=\"attachment_126\" aria-describedby=\"caption-attachment-126\" style=\"width: 1056px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-126 size-full\" src=\"https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/Flow-Direction.jpg\" alt=\"\" width=\"1056\" height=\"816\" srcset=\"https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/Flow-Direction.jpg 1056w, https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/Flow-Direction-300x232.jpg 300w, https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/Flow-Direction-768x593.jpg 768w, https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/Flow-Direction-1024x791.jpg 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption id=\"caption-attachment-126\" class=\"wp-caption-text\">Figure 2. Map showing flow direction over terrain. Different colors correspond to different directions of flow.<\/figcaption><\/figure>\n<p>This layer was used to create a flow accumulation map that counts the number of cells that drain out of each grid cell based on directionality. From the flow accumulation layer, \u00a0a stream raster grid was derived which was used to delineate the watershed upstream of each fish point later in our analysis.<\/p>\n<p>Since there are inaccuracies associated with fish data collection locations and DEM stream delineations, many of the fish points used were not located precisely on\u00a0 the streams obtained through the DEM. Therefore, TauDEM&#8217;s &#8220;Move Outlet to Stream&#8221; function was used to slide fish points downslope, according to the flow direction layer, until a stream was encountered.<\/p>\n<figure id=\"attachment_133\" aria-describedby=\"caption-attachment-133\" style=\"width: 983px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-133 size-full\" src=\"https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/Moved-Fish-point-33-1.jpg\" alt=\"\" width=\"983\" height=\"401\" srcset=\"https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/Moved-Fish-point-33-1.jpg 983w, https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/Moved-Fish-point-33-1-300x122.jpg 300w, https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/Moved-Fish-point-33-1-768x313.jpg 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption id=\"caption-attachment-133\" class=\"wp-caption-text\">Figure 3. Illustrates the discrepancy between the fish collection site (represented by the green dot) and the delineated stream network. After applying the &#8220;Move Outlet to Stream&#8221; function, the green dot moves downslope according to the flow direction map until it intersects the river network (represented by the red dot).<\/figcaption><\/figure>\n<p>Because the MWAT model requires variables such as mean elevation, area, and glacial and lake cover to be calculated for the entire watershed that contributes to each fish point, TauDEM&#8217;s &#8220;D8 Contributing Area&#8221; tool was used to delineate the area of the watershed upstream of each fish point. Each fish point had to be run through this tool individually, so that each raster layer created would contain just the contributing watershed for that specific fish point. Doing so enabled extraction of all the variables needed for each fish species separately in RStudio.<\/p>\n<figure id=\"attachment_155\" aria-describedby=\"caption-attachment-155\" style=\"width: 1056px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-155 size-full\" src=\"https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/Watershed-1-1-1.jpg\" alt=\"\" width=\"1056\" height=\"816\" srcset=\"https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/Watershed-1-1-1.jpg 1056w, https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/Watershed-1-1-1-300x232.jpg 300w, https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/Watershed-1-1-1-768x593.jpg 768w, https:\/\/blogs.ubc.ca\/370finalproject\/files\/2017\/11\/Watershed-1-1-1-1024x791.jpg 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption id=\"caption-attachment-155\" class=\"wp-caption-text\">Figure 4. Map showing the contributing watershed (represented in black) for fish point 33. This figure also qualitatively shows the fraction of glacial and lake cover in the watershed represented in green and blue, respectively.<\/figcaption><\/figure>\n<h1><strong>Data Analysis<\/strong><\/h1>\n<p>A script was written in RStudio that allowed extraction of the mean elevation of the contributing watershed, the average channel slope, the July-August average air temperature, and the fraction of glacier and lake cover within each watershed for each fish point. Additionally, a script provided by Dan Moore was utilized to obtain the <em>k<sub>2<\/sub><\/em> values for each fish point based on latitude and longitude.\u00a0After all the data was compiled into a single file, the MWAT values for each fish species were calculated.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Data Collection Our analysis was based on the Digital Elevation Model (DEM) of the specific region studied for this project in the Columbia River basin. This DEM was obtained from GeoGratis. Using the DEM, river networks were derived to delineate the watersheds associated with each fish data point collected. The shapefile of the glacial cover &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blogs.ubc.ca\/370finalproject\/methods\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Methods&#8221;<\/span><\/a><\/p>\n","protected":false},"author":30148,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-21","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blogs.ubc.ca\/370finalproject\/wp-json\/wp\/v2\/pages\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ubc.ca\/370finalproject\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blogs.ubc.ca\/370finalproject\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ubc.ca\/370finalproject\/wp-json\/wp\/v2\/users\/30148"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ubc.ca\/370finalproject\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":31,"href":"https:\/\/blogs.ubc.ca\/370finalproject\/wp-json\/wp\/v2\/pages\/21\/revisions"}],"predecessor-version":[{"id":235,"href":"https:\/\/blogs.ubc.ca\/370finalproject\/wp-json\/wp\/v2\/pages\/21\/revisions\/235"}],"wp:attachment":[{"href":"https:\/\/blogs.ubc.ca\/370finalproject\/wp-json\/wp\/v2\/media?parent=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}