CalculateStatistics on Mosaic Dataset

Discussion created by jamesfreddyc on Dec 16, 2013
Latest reply on Jan 3, 2014 by jamesfreddyc
I am attempting to calculate statistics on mosaic datasets in a FGDB.  It appears to work correctly however it runs and I add the mosaic to the TOC and access the symbology properties of the Mosaic dataset, it does not allow for Classified type (only Stretched and Discrete color are available). 

I am expecting to be able to apply a classified renderer on the mosaic, which it works as expected if I manually run the Calculate Statistics from the "Enhance" menu (by right clicking on the mosaic in the catalog tree and accessing this menu option there).

Is there any reason why I can access the classified symbol property after running calculate stat from the Enhance menu, but not from the code below?


def calcStatsMOSAIC(t):

    arcpy.env.workspace = ws_output

    bndy_mosaic = str(ws_output) + "\\rasext" + str(t)
    mosaic_name = "ConcMosaic" + str(t)
    ws_mosaic = str(ws_output) + "\\" + str(mosaic_name)
    tr = "*Mosaic*"
    rasters = arcpy.ListDatasets(tr) 
    for r in rasters:
       arcpy.CalculateStatistics_management(ws_mosaic, 1, 1, "#", "OVERWRITE", bndy_mosaic)