abdelrazek

Please help me

Discussion created by abdelrazek on May 13, 2014
Latest reply on May 14, 2014 by abdelrazek
Please help me, when trying to run this code as a tool

# -*- coding: utf-8 -*-
import arcpy
from arcpy.sa import *
arcpy.CheckOutExtension("spatial")
QC = arcpy.GetParameterAsText(0)
NDVI = arcpy.GetParameterAsText(1)
GoodNDVI = arcpy.GetParameterAsText(2)
GoodNDVI = (QC==0)*(NDVI>2000)*NDVI
GoodNDVI.save(GoodNDVI + ".tif")

This�??mmessage�??aappears

Traceback (most recent call last):
  File "E:\ArcPy_Toolbox\MODIS\Scripts\GoodNDVI.py", line 12, in <module>
    GoodNDVI.save(GoodNDVI + ".tif")
AttributeError: 'unicode' object has no attribute 'save'
Failed to execute (GoodNDVI).

Outcomes