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

-- 
----
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to