[GRASS-dev] pyGRASS RasterSegment error (Segment attribute has no object cseg)
Yann Chemin
ychemin at gmail.com
Mon Sep 16 03:19:29 PDT 2013
Hi,
output = raster.RasterSegment(rainfall[t-1])
output.open('w','FCELL')
for row in range(nrows):
for col in range(ncols):
print "-> ", col, row
output[col, row] = 0.0
output.close()
returns:
----------
-> 0 0
Traceback (most recent call last):
File "/home/user/idwt.py", line 93, in <module>
output[col, row] = 0.0
File
"/usr/local/grass-7.0.svn/etc/python/grass/pygrass/raster/__init__.py",
line 277, in __setitem__
return self.put(x, y, row)
File "/usr/local/grass-7.0.svn/etc/python/grass/pygrass/errors.py", line
42, in wrapper
return method(self, *args, **kargs)
File
"/usr/local/grass-7.0.svn/etc/python/grass/pygrass/raster/__init__.py",
line 372, in put
libseg.segment_put(ctypes.byref(self.segment.cseg),
AttributeError: 'Segment' object has no attribute 'cseg'
Thanks,
Yann
--
----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20130916/4965ddd7/attachment.html>
More information about the grass-dev
mailing list