Python Window

Discussion created by Riverside on Aug 4, 2011
If I run this script to see about rasters and if all my data happens to be in a specific projection, it loops through about 10 rasters, but then it stops, and then I get the processing circle (win7), and I think its going to crash, it doesn't crash, but it stops processing for a minute and then shows me all my rasters spatialRef.  For vector layers in prints each one at a time in the loop, for rasters I get the circle, and then I get a return of all the layers.  is this expected in the py window?

import arcpy
from arcpy import env as ENV
ENV.workspace  = r"C:\Prop8_DEMO\data\Prop8WGS\Prop8Data2.gdb"
wrksp = ENV.workspace
rasters = arcpy.ListRasters ()
for rasterdata in rasters:
    desc = arcpy.Describe (rasterdata)
    descSR = desc.spatialReference
    print descSR.name