<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Le 09/06/2018 à 19:04, Markus Metz a écrit :<br>
<blockquote type="cite"
cite="mid:CAG+h=FEJAi9O=na-4qfUSnMe9vghxsCovKdOdC8_A9DjyytKTQ@mail.gmail.com">
<div dir="ltr"><br>
<br>
On Fri, Jun 8, 2018 at 12:30 PM, Frank DAVID <<a
href="mailto:frank.david@geophom.fr" moz-do-not-send="true">frank.david@geophom.fr</a>>
wrote:<br>
><br>
><br>
><br>
><br>
> Cordialement,<br>
> Frank David<br>
><br>
><br>
> -------- Message d'origine --------<br>
> De : Markus Metz<br>
> Date :07/06/2018 17:30 (GMT+01:00)<br>
> À : Frank David<br>
> Cc : grass-user , GRASS developers list<br>
> Objet : Re: [GRASS-user] r.series weights to zero<br>
><br>
><br>
><br>
> On Tue, Jun 5, 2018 at 2:51 PM, Frank David <<a
href="mailto:frank.david@geophom.fr" moz-do-not-send="true">frank.david@geophom.fr</a>>
wrote:<br>
> ><br>
> > Hi all Grass users,<br>
> ><br>
> > It's seems that r.series weights does not accept zero
as weight... Is it possible ?<br>
><br>
> Yes, weights must be positive.<br>
><br>
> > and so, why ?<br>
><br>
> A zero weight means that all values in this map are
ignored. Zero weights can also cause the sum of weights to be
zero, leading to division by zero and finally to +inf / -inf as
a result<br>
><br>
> Thank you Markus for your reply.<br>
> I would think it would have been interesting to use zero as
weight on some raster in order to use (or not) them depending on
the context. For my purpose i will use a value next to zero.<br>
<div><br>
</div>
<div>Agreed. The underlying functions test if the sum of weights
is zero, thus it is ok if at least one weight is larger than
zero, otherwise the result is NULL. Zero weights are now
allowed in r.series, trunk r72789.</div>
<div><br>
</div>
</div>
</blockquote>
Great !. Thank you Markus<br>
Frank<br>
<blockquote type="cite"
cite="mid:CAG+h=FEJAi9O=na-4qfUSnMe9vghxsCovKdOdC8_A9DjyytKTQ@mail.gmail.com">
<div dir="ltr">
<div>Markus M<br>
</div>
<div><br>
</div>
<div>> Thanks again</div>
> Frank<br>
><br>
><br>
><br>
> Markus M<br>
> ><br>
> > I've got the following error message when running
r.series with one weight set to 0<br>
> ><br>
> >
"/usr/local/grass-7.4.0svn/etc/python/grass/script/core.py",<br>
> > line 332, in handle_errors<br>
> > returncode=returncode)<br>
> > grass.exceptions.CalledModuleError: Module run None<br>
> ><br>
> > Thank you for your comment.<br>
> ><br>
> > Frank<br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > grass-user mailing list<br>
> > <a href="mailto:grass-user@lists.osgeo.org"
moz-do-not-send="true">grass-user@lists.osgeo.org</a><br>
> > <a
href="https://lists.osgeo.org/mailman/listinfo/grass-user"
moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
><br>
</div>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<style>
div#signature {font-size:10px;color:#666;margin:10px 0}
span#geophom {font-size:11px;color:#A1CD1A}
div#important {font-size:10px;color:#CB110B;font-style:italic}
</style>
<div id="signature"> <span id="geophom"><b>Geophom</b></span><br>
327 rue de Vieille Cour 44521 OUDON<br>
Tel +33(0)2 85 52 02 59 - Port +33(0)6 04 47 91 06<br>
<a class="moz-txt-link-abbreviated" href="http://www.geophom.fr">www.geophom.fr</a><br>
</div>
</div>
</body>
</html>