{"id":164,"date":"2021-12-09T11:36:10","date_gmt":"2021-12-09T16:36:10","guid":{"rendered":"https:\/\/sites.owu.edu\/geog-199\/?p=164"},"modified":"2021-12-09T11:36:10","modified_gmt":"2021-12-09T16:36:10","slug":"frawley-python-wrap-up","status":"publish","type":"post","link":"https:\/\/sites.owu.edu\/geog-293\/2021\/12\/09\/frawley-python-wrap-up\/","title":{"rendered":"Frawley: Python Wrap Up"},"content":{"rendered":"<p><b>Background &#8211; \u00a0 <\/b><span style=\"font-weight: 400\">\u00a0For this independent study, I wanted to solve a problem that isn\u2019t necessarily tedious but just annoying. For me, that was creating true color images through ArcPro. Working with Dr. Rowley has made me quite familiar with creating true colors, mostly creating several of them over a melt season for the Sermeq Kujalleq Ablation Region. By creating this script, it just makes everything a little easier so you don\u2019t have to manually import which .TIFF files you want. I\u2019ve had some experience with python before starting this course so it definitely was a little easier than I expected, and the syntax of python is just leaps and bounds ahead of that stinky language R.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Introduction &#8211;<\/b><span style=\"font-weight: 400\"> (what each step does)<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Create a geodatabase or .gdb \u2014 doing this creates a server like storage house your tiff files to make calculations and pull the data back down.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Create Mosaic Dataset \u2014 This creates a dataset to house your images, another important step before using the composite band\u2019s tool.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Add rasters to Mosaic \u2014 Add your images to the dataset\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Composite Bands Tool \u2014 From the mosaic dataset, import them to the composite band\u2019s tool, which creates the Truecolor image raster for you.\u00a0<\/span><\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-165\" src=\"https:\/\/sites.owu.edu\/geog-199\/wp-content\/uploads\/sites\/189\/2021\/12\/gdb-300x127.png\" alt=\"\" width=\"300\" height=\"127\" srcset=\"https:\/\/sites.owu.edu\/geog-293\/wp-content\/uploads\/sites\/189\/2021\/12\/gdb-300x127.png 300w, https:\/\/sites.owu.edu\/geog-293\/wp-content\/uploads\/sites\/189\/2021\/12\/gdb-1024x432.png 1024w, https:\/\/sites.owu.edu\/geog-293\/wp-content\/uploads\/sites\/189\/2021\/12\/gdb-768x324.png 768w, https:\/\/sites.owu.edu\/geog-293\/wp-content\/uploads\/sites\/189\/2021\/12\/gdb-1536x648.png 1536w, https:\/\/sites.owu.edu\/geog-293\/wp-content\/uploads\/sites\/189\/2021\/12\/gdb-2048x864.png 2048w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-166\" src=\"https:\/\/sites.owu.edu\/geog-199\/wp-content\/uploads\/sites\/189\/2021\/12\/add-raster-300x131.png\" alt=\"\" width=\"300\" height=\"131\" srcset=\"https:\/\/sites.owu.edu\/geog-293\/wp-content\/uploads\/sites\/189\/2021\/12\/add-raster-300x131.png 300w, https:\/\/sites.owu.edu\/geog-293\/wp-content\/uploads\/sites\/189\/2021\/12\/add-raster-1024x447.png 1024w, https:\/\/sites.owu.edu\/geog-293\/wp-content\/uploads\/sites\/189\/2021\/12\/add-raster-768x335.png 768w, https:\/\/sites.owu.edu\/geog-293\/wp-content\/uploads\/sites\/189\/2021\/12\/add-raster-1536x671.png 1536w, https:\/\/sites.owu.edu\/geog-293\/wp-content\/uploads\/sites\/189\/2021\/12\/add-raster-2048x894.png 2048w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-168\" src=\"https:\/\/sites.owu.edu\/geog-199\/wp-content\/uploads\/sites\/189\/2021\/12\/composite-bands-300x123.png\" alt=\"\" width=\"300\" height=\"123\" srcset=\"https:\/\/sites.owu.edu\/geog-293\/wp-content\/uploads\/sites\/189\/2021\/12\/composite-bands-300x123.png 300w, https:\/\/sites.owu.edu\/geog-293\/wp-content\/uploads\/sites\/189\/2021\/12\/composite-bands-1024x421.png 1024w, https:\/\/sites.owu.edu\/geog-293\/wp-content\/uploads\/sites\/189\/2021\/12\/composite-bands-768x316.png 768w, https:\/\/sites.owu.edu\/geog-293\/wp-content\/uploads\/sites\/189\/2021\/12\/composite-bands-1536x631.png 1536w, https:\/\/sites.owu.edu\/geog-293\/wp-content\/uploads\/sites\/189\/2021\/12\/composite-bands-2048x842.png 2048w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><b>What Did I learn?<\/b><span style=\"font-weight: 400\"> \u2014 <\/span><\/p>\n<p><span style=\"font-weight: 400\">I learned a lot from this project, firstly that ERSI software is insanely tedious when it comes to using their programs. I needed to jump through several hoops just to create a geodatabase. The geodatabase is created through ArcServer &#8211; everything must be run through the server and you need to have the software installed to even create one.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">I learned to problem solve way better on my own, knowing exactly what to search to find solutions to my problem was a huge success. I genuinely didn\u2019t have any problems with this project, nothing that was too halting that I felt like I needed to stop the project or require outside help. I dedicated about 8-10 hours a week to this project and it was mostly spent debugging and finding solutions to my code.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">One issue that came across was at the very beginning of the project. To use the Arcpy library, you cannot have the newest version of python installed. The newest version is 3.10, but arcpy is currently only compatible with 3.7 and below. I felt like this project was a great introduction to the GIS developing world, and I am very glad that I took it. Overall, I am very confident in my work for this course. I believe that this script has significant use for GIS creators and researchers.\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Background &#8211; \u00a0 \u00a0For this independent study, I wanted to solve a problem that isn\u2019t necessarily tedious but just annoying. For me, that was creating true color images through ArcPro. Working with Dr. Rowley has made me quite familiar with <span class=\"readmore\"><a href=\"https:\/\/sites.owu.edu\/geog-293\/2021\/12\/09\/frawley-python-wrap-up\/\">Continue Reading<\/a><\/span><\/p>\n","protected":false},"author":1213,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-164","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/posts\/164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/users\/1213"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/comments?post=164"}],"version-history":[{"count":1,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/posts\/164\/revisions"}],"predecessor-version":[{"id":169,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/posts\/164\/revisions\/169"}],"wp:attachment":[{"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/media?parent=164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/categories?post=164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/tags?post=164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}