Skip to main content
5 events
when toggle format what by license comment
Nov 9, 2017 at 16:10 history edited GISHuman CC BY-SA 3.0
added new code based on edits
Nov 7, 2017 at 20:02 history edited GISHuman CC BY-SA 3.0
added clarification based on comments below
Nov 7, 2017 at 19:39 comment added GISHuman Yeah the code above is for the actual process once you identify your rasters in the directory. You can't stack them if they're from different extents but depending on how huge this dataset is perhaps you could stitch the rasters together? Your working directory shouldn't change in a loop, what you want to change is the path variable. I'll edit to clarify.
Nov 7, 2017 at 16:38 comment added davor korman Thank you for helping me learn! However, in my case I am dealing with hundreds of images that have different extents therefore i can not stack them if I am correct. Furthermore, they are in different directories - this is the reason i am setting the directory within the loop. That was the only way i knew how to import these rasters from different directories, and this also allowed me to take the raster names and put them in columns of the dataframe for the further usage.
Nov 7, 2017 at 15:51 history answered GISHuman CC BY-SA 3.0