for root,dirs,files in os.walk(rootFolder):
for name in files:
if name.endswith(".shp"):
shpName = name
absFile = os.path.abspath(os.path.join(rootFolder,shpName))
water_body_feature_class = absFile
arcpy.gp.CreateConstantRaster_sa(
constant_raster_, "1", "FLOAT", DEM, water_body_feature_class)
arcpy.FeatureVerticesToPoints_management(
water_body_feature_class, point_feature, "ALL")
arcpy.gp.ExtractMultiValuesToPoints_sa(
point_feature, DEM + ' ' +'elevation', 'NONE')
arcpy.Statistics_analysis(
point_feature_with_elevation, min_elevation, "elevation MIN", "")
SC = arcpy.SearchCursor(min_elevation)
field_name = 'MIN_elevation'
for row in SC:
value=row.getValue(field_name)
rastercalc=arcpy.sa.Raster(constant_raster_)*float(value)
WaterMask = arcpy.gp.ExtractByMask_sa(
rastercalc, water_body_feature_class)
arcpy.CopyRaster_management(
WaterMask,outputDir+"\\"+name.replace(".shp",'')+".img")
Print statements.... means throw some in so people can see the output that you are getting.
Also, your rastercalculator would only process one value since lines 29 onward were improperly indented.
I suspect the differences weren't due to Windows differences, but differences in copying and/or formatting from one machine to the other.
Also... note my comment to indent all the lines above by 4 spaces and replace your "for..... " section to the end with the above... after you throw in some print statements to monitor output names etc.
... sort of retired...