<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1255"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 15/06/2010 09:51, Sandile Gumede wrote:
<blockquote
cite="mid:AANLkTimbAa-9pFcFGZUeasuDY1CZTMgbG0RSFBNKdr8G@mail.gmail.com"
type="cite">if I run <a moz-do-not-send="true" href="http://r.info">r.info</a>
-g rainfall, I get:<br>
<br>
north=-33.679583<br>
south=-34.34875<br>
east=19.17125<br>
west=18.29875<br>
<br>
and if I run <a moz-do-not-send="true" href="http://v.info">v.info</a>
-g catchments, I get:<br>
<br>
north=-33.6795831<br>
south=-34.3487498<br>
east=19.1712501<br>
west=18.2987501<br>
top=0.000000<br>
bottom=0.000000<br>
<br>
</blockquote>
OK, now we see that the regions are identical.<br>
I'd like to see also the full output of <br>
r.info rainfall<br>
(it will give the max-min values of the raster) and also the output of <br>
gdalinfo rainfall.tif (the original tiff file)<br>
Perhaps then we can understand where the -NULL values are from?<br>
<br>
<blockquote
cite="mid:AANLkTimbAa-9pFcFGZUeasuDY1CZTMgbG0RSFBNKdr8G@mail.gmail.com"
type="cite"><br>
<br>
<div class="gmail_quote">2010/6/13 Micha Silver <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:micha@arava.co.il">micha@arava.co.il</a>></span><br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
(back on the ML)<br>
<br>
Hi Sandile:<br>
The error is popping up, apparently, because of the strange "-NULL"
value. What is -NULL??<br>
Can you display the rainfall raster? Does it look OK (some value
everywhere?)<br>
<br>
Perhaps run a check on the original rainfall.tif with gdalinfo to see
what range of values it is showing? Then do <a moz-do-not-send="true"
href="http://r.info" target="_blank">r.info</a> rainfall to show
what range the GRASS raster has.<br>
<br>
-- <br>
<font color="#888888">Micha</font>
<div>
<div class="h5"><br>
<br>
On 13/06/2010 12:13, Sandile Gumede wrote:
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">Hi, <br>
<br>
Whats wrong with the rainfall data (rainfall.tif) if you get a DBMI-DBF
driver error when running v<span style="color: rgb(204, 0, 0);">.rast.stats
vector=catchments
raster=rainfall colprefix=precip</span>?<br>
<br>
SQL parser error: syntax error, unexpected NULL_VALUE processing 'NULL'<br>
in statement:<br>
UPDATE catchments SET precip_cf_=-NULL WHERE cat=2<br>
Error in db_execute_immediate()<br>
<br>
ERROR: Error while executing: 'UPDATE catchments SET precip_cf_=-NULL
WHERE<br>
cat=2'<br>
<br>
</div>
</div>
<div class="im">This mail was received via Mail-SeCure System.<br>
</div>
</blockquote>
<div class="im"><br>
<br>
<pre cols="62">--
Micha Silver
<a moz-do-not-send="true" href="http://www.surfaces.co.il/"
target="_blank">http://www.surfaces.co.il/</a>
Arava Development Co. +972-52-3665918
</pre>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Kind Regards<br>
TS Gumede<br>
CSIR, Meraka Institute<br>
072 258 1650<br>
<br>
<br>
This mail was received via Mail-SeCure System.<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="62">--
Micha Silver
<a class="moz-txt-link-freetext" href="http://www.surfaces.co.il/">http://www.surfaces.co.il/</a>
Arava Development Co. +972-52-3665918
</pre>
</body>
</html>