I have thousands of lidar derivatives that I foolishly put into a raster mosaic. They are dem, dtm, and dtsm files that I would like to separate into three mosaics based on raster type (not extension). If anyone knows of a way to export and filter by file name it would be useful. Working in ArcGIS Pro 2.8. If they were in a file folder I would batch rename them in a more intelligent way such as rastertype_rasterID so I could sort them and import them into a new dataset. If not I will have to do this manually. Any insight is appreciated!
Solved! Go to Solution.
You can use Model Builder: Iterate Raster with following wildcards separately.
1. *_dsm
2. *_dtm
3. *_ndsm
You can link the output of the iterator to Copy Raster Geoprocessing tool.
You should just be able to specify a filter based on the filename whilst still specifying the GDB workspace as input. look at the 'filter' property Add Rasters To Mosaic Dataset (Data Management)—ArcGIS Pro | Documentation
and use the same filter expressions given by @JayantaPoddar
You can use Model Builder: Iterate Raster with following wildcards separately.
1. *_dsm
2. *_dtm
3. *_ndsm
You can link the output of the iterator to Copy Raster Geoprocessing tool.
Thank you for your help! I will give this a try.
You should just be able to specify a filter based on the filename whilst still specifying the GDB workspace as input. look at the 'filter' property Add Rasters To Mosaic Dataset (Data Management)—ArcGIS Pro | Documentation
and use the same filter expressions given by @JayantaPoddar