Hello! I'm currently working on a script that seeks to pull data from an image server and then preprocess this data by clipping it to a study area extent using the raster functions data management clip tool, feed that clipped data into a GeoAI algorithm, and then save then saves the output after the fact.
The issue I am having is that I cannot seem to convert the data that I added from path to a Raster object. It gets added to my map just fine, and I have been able to print the name of the data, just to be sure it actually gets added.
The reason for wanting to use the raster function's clip and other data management tools is because it is faster and doesn't save anything to file unless explicitly told to. I have run the process in pro and it seems to work well, but we're looking to automate the process and avoid using the GUI for this.
Here's a snippet of my code so far. Thank you all for your expert opinions!
Code:
Hi @GIS_Rabbit,
Can you please use the code snippet format to make it easier to read?
Select the ellipsis (...)
Select Insert/Edit code sample...
Select Python from the language dropdown
All the best,
Glen
Thank you for that @Clubdebambos! First time making a post here so I wasn't aware of this.
For whatever reason, the site doesn't like it when i do this. Keeps showing this, even though there are no invalid html. When I try to accept the changes it claims it made, it brings me back.