I have several raster datasets with different acquisition dates and sensor types that I would like to add to a single mosaic dataset. I have read that mosaic datasets can be used to sort and view rasters by attributes like acquisition date, sensor, etc. I don't know the best way to add and update attributes to a mosaic dataset, however.
From the help [https://resources.arcgis.com/en/help/main/10.1/index.html#//009t0000023z000000] I can see that we can manually add custom attributes. I added a date field field to the table but I don't see a way to populate this field when I add rasters to he mosaic.
Is there a way to set the date field at the same time as adding the raster? Or would I have to manually edit the table to accomplish this? Ideally, I would to add several more custom attributes. Is there any easier way to automate this for hundreds of images?
Thanks again for any help.
[Reposted. Original post 07-26-2024 06:16pm]
I've had issues trying to automate adding attributes to Mosaic Datasets at the Add Rasters stage as well.
I could not find a way to do it in the same operation, but using arcpy.management.AddFields() and arcpy.management.CalculateFields() processes after the rasters have been added I can populate the attributes. The recommendation is to use an UpdateCursor instead of the CalculateFields, but I could not get that to consistently work, I think it is the old Catalog Refresh issue rearing it's head again.
That help link is from 10.1, and while the process is pretty similar in Pro, I would not rely too heavily on old documentation.