AnsweredAssumed Answered

Get smallest extent from a list of rasters

Question asked by andy.mareco on Jun 22, 2013
Latest reply on Jun 24, 2013 by lpinner
Branched to a new discussion
Hi all,

I am completely lost here, I am trying to get the smallest extent of a raster from a list of rasters, if I set my workspace, and then use
arcpy.env.extent = "MINOF"
print "Extent is: " + str(arcpy.env.extent)

I get an output:

Extent is "MINOF".

If I try to set MINOF as an Extent variable (i.e. arcpy.env.extent = Extent("MINOF")  ), I get 0 0 0 0 NaN NaN etc etc.

I can't find on any forum an idea to help me get the smallest extent of all of the rasters in my directory or rasterList.

Any ideas?