Apply function chain to individual rasters based on units?

1345
6
03-01-2017 07:54 AM
JerryGarcia
Occasional Contributor II

Using Python, how do I apply a unit conversion function chain to each individual raster based on source units?

I'd like all units to be in Meters.  I have a mosaic dataset containing elevation rasters with mixed source units: feet and meters.

I'd like to :

1) iterate through the mosaic dataset,

2) check the units of each raster,

3) if the raster has source units feet, then apply a unit conversion function chain (ft to m).

Rasters with source unit Meters do not need a function chain.

Thanks!

0 Kudos
6 Replies
JerryGarcia
Occasional Contributor II

I assume it is not possible to apply a function chain via Python?  Thanks!

0 Kudos
DanPatterson_Retired
MVP Emeritus

Don't use them... but is this what you are referring to? editing-function-chains-in-mosaic datasets

0 Kudos
JerryGarcia
Occasional Contributor II

Yes.  I need to do this w/ Python?  Can you do this w/ ArcPy?

0 Kudos
DanPatterson_Retired
MVP Emeritus

I see nothing in arcpy other than the ability to acquire properties through the Describe object then produce new raster objects through conventional spatial analyst tools

0 Kudos
NeilAyres
MVP Alum

It might be easier to shuffle through the original data to create new ones based on metres.

0 Kudos
JerryGarcia
Occasional Contributor II

Yes.  But, how do I apply a function chain when adding an image to a mosaic dataset?

0 Kudos