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
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