[GRASS-dev] pyGRASS RasterSegment error (Segment attribute has no object cseg)

Yann Chemin ychemin at gmail.com
Mon Sep 16 05:14:53 PDT 2013


Thanks Pietro !


On 16 September 2013 16:59, Pietro <peter.zamb at gmail.com> wrote:

> Hi Yann,
>
> thank you for testing!
>
> On Mon, Sep 16, 2013 at 11:19 AM, Yann Chemin <ychemin at gmail.com> wrote:
> > 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()
>
> ok, now should be fix (r57700).
>
> {{{
> >>> from grass.pygrass.raster import RasterSegment
> >>> yann = RasterSegment('yanntest')
> >>> yann.open('w', 'FCELL')
> >>> yann[0, 0] = 100.
> >>> yann[0, 0]
> 100.0
> }}}
>



-- 
----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20130916/b2b41384/attachment.html>


More information about the grass-dev mailing list