ArcGIS Pro: Raster Calculator, and Dissolving Polygons

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
okay so for this video be looking at raster calculator and how to create a variable rate map pretty much or this will be the first part of it so we got our may look three phosphors next question is how do we turn this into you know recommendation for how many pounds of phosphorus from you need per acre so the first thing we need to do is actually go find out the information that we need to complete this so vo in any google soil test interpretations fertilizer recommendations from k-state should find something along this lines and a nice thing is for all the recommendations they have basically an algorithm here are pretty much an equation that tells you how they come up with the recommendations so for this one where you coming down to the phosphors and before we do that okay we're gonna stop right here really quick so this will be a phosphorous recommendation for a hundred bushel corn crop and you'll notice here here's our p2o5 removal rates and this is corn per bushel so per bushel we're removing 0.33 pounds of p2o5 this is become important here in a little bit well go ahead and scroll down here and in this instance we're going to use so there's recommendations for P and K or sufficiency recommendations I should say and there's also built and maintained recommendations so we're actually doing a four-year build maintain on this build some using this equation right here that top one so let's go back to our arcgis pro and what function are we going to use to do this so if you had a geoprocessing and i'm gonna go ahead and get out of here your type and raster calculator and you should come up with something like this and you're gonna select the image analysis one go and click it again so this is where we pretty much put in our equation for wanting to do so I'll go ahead and minimize this down so you can see we're doing so it looks like here we got we'll just basically put in this equation pretty much so 20 which the 20 stands for basically we're we're wanting to bring our phosphorus levels to so 20 minus our current ppm it always put the space in here so you probably want to take that out so it reads it correctly 20 minus that so pretty much at this point in time we're calculating what our deficit is so if it is like 15 part per million a certain spot be 20 minus 15 so we need to build our soil five part per million over the course of four years and then this 18 stands for how many pounds of phosphorus it takes roughly per part per million that's just a rough estimate on the generic Kansas soil so times eighteen and we'll put in our next parentheses used to build we're due a four-year build on this one and after this so this is pretty much how much phosphorus we need to apply in each spot over the course of four years to build it and that's without removing anything so we also need to know how much you're removing with our grain for this current crop so we're shooting for a hundred bushel corn so a hundred times we already know that it's 0.33 pounds per bushel so 100 times 0.33 so that's roughly 33 pounds of phosphorus that we're removing with the grain so go ahead and put our plus in here plus 33 and we can go ahead and run this actually we'll name the rename it here when am it P Rick okay I'll go and run that nope we're missing something here it doesn't like me for some reason they'll need a divide here there we go alright so there is our recommendation so you notice we go up to 95 and all the way down to negative 34 and to my knowledge I'm pretty sure a an applicator cannot pull off phosphorus off of a certain part of the field and put on another spot so we need to go ahead and correct this so we can come down here and we're going to utilize these conditional statements and use this first one and we can go ahead and click on that it's going to put it in this box and everything what we're looking for is this first parentheses so you can back up your equation up to that point so what this is telling us is we're going to run this equation and if it is less than zero then we want it to turn into zero oops so if this equation ones have been less than zero and turn to zero and if not then we're going to utilize this equation so we're going to go ahead and copy that and put it in there and hopefully everything matched it up correctly I think so so it's kind of messy right now but so if this equation is less than zero than equals zero and if it's not less than zero that we're going to do the equation so I need to go ahead and cap it off with the parenthesis I'll go ahead and run that oh we did catch that right there it's going here is that okay try it again all right there we go had a couple extra things in there so you can see now we basically turned it into all those negative numbers into zero which is up in this region and rake controllers do not read like floating data raster data so we need to turn it to an integer so within raster calculator we can go ahead and use that function so there is our energy function so you go and hit that basically you're just going to surround the whole equation so we have our per Mcf front we need to smack one on the back here and we'll go ahead and run it again and you can see now it's an integer form so it's 95 with no zeros behind it but we know that we don't apply straight up phosphorus rate controllers read like pounds of phosphorus something along those lines you know or gallons if we're using like a sprayer so for this one we're just going to go ahead and make it simple and within this equation we can go ahead and turn it into our pounds let's use that for this so we know that DAP is 46% phosphors so if we go ahead and go in one parentheses so we want to be basically inside of all this and we wanted to go ahead and convert it to an integer after it does do this function we divide this by point four six which is our concentration of phosphorus and DAP and we can go ahead and run it again and there's a recommendation for phosphors using DEP so let's go ahead and change the name here P rec pounds of DEP all right just go ahead and run that alright so we changed our name I'm go ahead and get rid of that one and we'll go ahead I'll make mega colorful so you guys see what's going on all right so now we can see our different levels then the next thing we're going to do is we're going to turn all this raster data into polygons that way our rate controller can see where we're at in the field change your rates all that jazz so if we go back to our geoprocessing and we'll get back out of this and we're going to type in raster to polygon pretty much what we're trying to do here's our conversion tool so again click on that and we're going to input our pounds of P using DEP and we're going to base our polygons off the value which is this 1848 74 LHS and we can go ahead and run that and it'll probably wind up with a really messy map so if we zoom in here we can see there's polygons all over the place and actually creates an attribute table for us something go through here and see that this particular polygon was the rate of 22 this one was 37 86 so it's like all over the board and you can see there is quite a few different rows here and I can tell you for a fact a rate controller is not going to read 10,000 different polygons while it's going through the field it won't be able to change that click let alone just hold all the information within itself so you need to go ahead and pretty much dumb this down so that way it can go ahead and read all this so what we're going to do is go to calculate or calculate field you can type this in and geoprocessing you look at the same thing that's just a little quick way to do it and we're going to go ahead and input our table from this right here and we're going to rename our grid code so that is pretty much four pounds of p2 if I were putting on and we're not used Python three go ahead and type in arcade it's just kind of some some generic stuff that art pro has to offer and we're gonna do a round so we're gonna round all this data to a specific number so every like twenty pounds every thirty pounds something on those lines that way we can get these polygons a little a little more generic celery controller can read it what we're going through then type in round and we're going to go ahead and put in our grid code cuz we're wanting to round it by a good kid and I usually just go ahead and put parentheses around the grid code altogether now we're gonna divide two by then basically what we're running around or numbers two so let's do what was our range here let's do every twenty pounds so divided by 20 putting in our comma zero and what this is going to do right here is it's gonna go ahead and calculate this so let's go ahead I'll push pulling through my phone really quick so we'll do this one hundred and twelve so what's gonna do is 112 divided by 20 and that equals five point six and then what it's going to do is go ahead and round that number to five or actually notice six hits five point six around it to six so and that's not what we want we want to be by 20s so then we multiply it back by twenty bring it back to its value or relative value so six times 20 equals 120 so it's going to go ahead and round polygon number four to 120 pounds and I'll do the rest for everything down so go ahead and run this and we can see that polygon four is now 120 pounds and everything else is rounded to the twenty so but we still haven't got rid of all these polygons out here in the field and still going to be super confusing for the rate controller besides over this area where it's pretty much zero so we're going to go ahead and utilize the geoprocessing function called dissolve which is basically dissolving all the polygons that are similar or the same I guess in this case so input feature will be our raster and you can rename this stuff I didn't rename it I probably should have and dissolve that by our grid code because that was our phosphorus Rex I'm gonna go ahead and run nap and when you see that is a highly dumbed-down map from what it was so all right controller can now read this and we'll turn into something that we can kind of see now go to our symbology unique values and our grid code is what it is there it is I'm going over this all other values remove that and we're going to go ahead and add this to it and we can see there's our variable rate phosphorus map for this particular field so now this rate controller should be able to read this if you want exports a rate controller you can right click and go to data and you can export the features to a file on your computer then you can upload that to your rate controller or in the case of there's like case or john deere you might to convert it to a different file that their system can read so if you have any questions just let me know and you have a great day
Info
Channel: Chris Weber
Views: 442
Rating: 5 out of 5
Keywords:
Id: V7fo51N9Tmw
Channel Id: undefined
Length: 14min 58sec (898 seconds)
Published: Thu Jun 13 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.