I have a python script tool that operates on raster data. It runs fine on its own, but when I use it in a model and feed it raster data from another process, I get the error:
Traceback (most recent call last):
File "D:\Scripts\dz.py", line 531, in <module>
BFList.append(descObj.catalogPath)
AttributeError: DescribeData: Method catalogPath does not exist
Sharing with Python.
Can you elaborate on how you are passing raster data from another process? Are you creating the raster data on disk using another process and then passing the name/path to this process?
Although the error message and trace back is helpful, they are less helpful without some of the functional code. From what you have posted, about all I can say is that you are trying to access an attribute of descObj that doesn't exist. If I knew what descObj was and how it was created, I could offer more thoughts.
Describe object properties—ArcPy Functions | ArcGIS Desktop
from that help topic code example, you need an object to describe before you get its attributes
desc = arcpy.Describe("C:/Data/chesapeake.gdb")
... snip
print("CatalogPath: " + desc.catalogPath)