add multiple rasters, each located a branch too deep in separate folders - ArcGIS

المشرف العام

Administrator
طاقم الإدارة
I have a year of daily raster datasets (365) that I would like to use the Cell Statistics tool on; however, each raster is located in a separate folder so I cannot add all of them at once.

ie:

-raster_0001 -raster_0001 dblbnd.adf hdr.adf prj.adf sta.adf w001001.adf w001001x.adf -info arc.dir arc0000 arc0000.nit arc0001 arc0001.nit raster_0001.aux-raster_0002 -raster_0002 dblbnd.adf hdr.adf prj.adf sta.adf w001001.adf w001001x.adf -info arc.dir arc0000 arc0000.nit arc0001 arc0001.nit raster_0002.aux-raster_0003 -raster_0003 dblbnd.adf hdr.adf prj.adf sta.adf w001001.adf w001001x.adf -info arc.dir arc0000 arc0000.nit arc0001 arc0001.nit raster_0003.aux...-raster_0365 -raster_0365 dblbnd.adf hdr.adf prj.adf sta.adf w001001.adf w001001x.adf -info arc.dir arc0000 arc0000.nit arc0001 arc0001.nit raster_0365.auxI have done a test and if I add a few rasters to a file geodatabase, then I can select these files all at once in the Cell Statistics tool.

My question: Is using python to add these rasters to a file geodatabase the best option? If yes, or no, how come and what would the code/workflow look like?

My guess is "Yes", and would be as simple as iterating through each folder using the "arcpy.RasterToGeodatabase_conversion" method described here raster_to_gdb...but I am not sure how that would look exactly? I am also not so sure that would be the best solution and thought it useful to ask the community for opinions.I would think this is a common problem for people: iterating through multiple folders to add content from each into a geodatabase (for example).

Is a geodatabase even the way to go? I haven't tried an approach using a mosaic raster set yet, not sure if that would work. Catalog? Another tool? Perhaps using Model Builder instead? Thoughts?



أكثر...
 
أعلى