<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
Sorry for double posting if it did<br>
-------------------------------------------------------------------<br>
<br>
Good afternoon,<br>
<br>
While trying to import a GTiff and process it with spgrass6 with the
following:<br>
<br>
execGRASS("r.in.gdal", flags=c("o","overwrite"),
parameters=list(input="E:/Boulot/WildlifeTrianglesFinland/Covariates/Rainfall/Rain.year1989.tif",
output="ref", <u>band=1</u>))<br>
<br>
or<br>
<br>
execGRASS("r.in.gdal", flags=c("o","overwrite"),
parameters=list(input="E:/Boulot/WildlifeTrianglesFinland/Covariates/Rainfall/Rain.year1989.tif",
output="ref",<u> band="1"</u>))<br>
<br>
I get<br>
<br>
<span class="Apple-style-span" style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: Arial; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-indent: 0px; text-transform:
none; white-space: normal; widows: 2; word-spacing: 0px;
font-size: medium;"><span class="Apple-style-span"
style="font-family: 'DejaVu Sans Mono'; font-size: 12px;
line-height: 16px; white-space: pre-wrap;"><br>
<pre tabindex="0" class="Gg9i85cKK" style="font-family: 'DejaVu Sans Mono'; font-size: 12px; outline-style: none; border-style: none; white-space: pre-wrap; margin: 0px; line-height: 16px;"><span class="Gg9i85cFK">Error in doGRASS(cmd, flags = flags, parameters = parameters) :
Parameter <band> does not have integer value</span></pre>
<br>
</span></span><br>
When I do not specify the band value, the two bands of this GTiff
are imported properly....<br>
Any idea ?<br>
<br>
<br>
Alex<br>
<br>
P.S.: <br>
<br>
<span class="Apple-style-span" style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: Arial; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-indent: 0px; text-transform:
none; white-space: normal; widows: 2; word-spacing: 0px;
font-size: medium;"><span class="Apple-style-span"
style="font-family: 'DejaVu Sans Mono'; font-size: 12px;
line-height: 16px; white-space: pre-wrap;"><br>
<pre tabindex="0" class="Gg9i85cKK" style="font-family: 'DejaVu Sans Mono'; font-size: 12px; outline-style: none; border-style: none; white-space: pre-wrap; margin: 0px; line-height: 16px;"><span class="Gg9i85cNK" style="color: navy; white-space: pre;">> </span><span class="Gg9i85cBK" style="color: blue;">traceback()
</span>3: stop(paste("Parameter <", names(parameters)[i], "> does not have integer value",
sep = ""))
2: doGRASS(cmd, flags = flags, parameters = parameters)
1: execGRASS("r.in.gdal", flags = c("o", "overwrite"), parameters = list(input = "E:/Boulot/WildlifeTrianglesFinland/Covariates/Rainfall/Rain.year1989.tif",
output = "ref", band = 1))
<span class="Gg9i85cNK" style="color: navy; white-space: pre;">> </span><span class="Gg9i85cBK" style="color: blue;">sessionInfo()
</span>R version 2.12.1 (2010-12-16)
Platform: x86_64-pc-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252 LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C LC_TIME=English_United Kingdom.1252
attached base packages:
[1] grDevices datasets splines graphics stats tcltk utils methods base
other attached packages:
[1] spgrass6_0.6-23 XML_3.2-0.2 rgdal_0.6-33 sp_0.9-78 svSocket_0.9-51 TinnR_1.0.3 R2HTML_2.2 Hmisc_3.8-3
[9] survival_2.36-2
loaded via a namespace (and not attached):
[1] cluster_1.13.3 grid_2.12.1 lattice_0.19-13 svMisc_0.9-61 tools_2.12.1 </pre>
<br>
</span></span>
</body>
</html>