Get raster source units from Mosaic Dataset?

458
2
12-06-2017 08:25 AM
JerryGarcia
Occasional Contributor II

I'm trying to create a python script to perform QA on our mosaic datasets.  It's very easy to make a mistake configuring them.  For instance:

  • We need to standardize on Meters for all of our geoprocessing, but our raster data could be in feet or meters.
  • We have one mosaic dataset that includes many mosaic datasets.
  • Each "child" mosaic dataset can contain rasters in "feet" or "meters".
  • Each mosaic that contains rasters in "feet" has a function chain to convert "feet" to "meters".  So everything is in "meters" at the parent mosaic level.

Using Python, I'd like to iterate through each raster and check source units to ensure the mosaic dataset is configured correctly, i.e. all feet are being converted to Meters; (and, no meters are getting an extra conversion).

Can someone make some suggestions to get me started?  i.e. using arcpy, how do I get the source units of a raster in a mosaic dataset?

Thanks!

0 Kudos
2 Replies
DanPatterson_Retired
MVP Emeritus

Is there anything in the Mosaic Dataset properties that will allow you to get more than the 'child' name (they do mention multidimensional data but without example)

0 Kudos
JerryGarcia
Occasional Contributor II

Thanks.  I still need to get raster info using a spatial query.  If I use ArcMap Identify tool on a mosaic dataset I can get multiple rasters returned that are stacked on top; each raster, I can tell via function chain, what the source image is.  How do I do this via ArcPy? 

0 Kudos