[GRASS-stats] spgrass problem importing category 999 when plugin is FALSE

Jarek Jasiewicz jarekj at amu.edu.pl
Fri Apr 3 01:19:01 EDT 2009


Hi

I during batch processing of couple of maps I found strange behaviour of 
readRAST6 when I import cell map with value 999.
Instead of 999 Na is imported (?? _

It is for me completely strange, so I test it with folowing:

echo "test_map=999"|r.mapclac
R
library(spgrass6)
testNoPlugin=readRAST6("test_map",plugin=FALSE)

summary(testNoPlugin at data)

     test      Min.   :    NA 1st Qu.:    NA Median :    NA Mean   :   
NaN 3rd Qu.:    NA Max.   :    NA NA's   :156740

testPlugin=readRAST6("test_map",plugin=TRUE)

summary(testPlugin at data)

     test   Min.   :999 1st Qu.:999 Median :999 Mean   :999 3rd Qu.:999 
Max.   :999 


It is very strange for me but I tested it on several maps. I think 
someone could try to reproduce this.

Jarek


BTW:

R version 2.8.1 (2008-12-22)


library(spgrass6)
Loading required package: sp
Loading required package: rgdal
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.5.3, released 2008/09/09
GDAL_DATA: /usr/local/lib/R/site-library/rgdal/gdal
Loaded PROJ.4 runtime: Rel. 4.6.1, 21 August 2008
PROJ_LIB: /usr/local/lib/R/site-library/rgdal/proj
GRASS GIS interface loaded with GRASS version: 6.5.svn
and location: Rzeki

Package: spgrass6
Version: 0.5-16
Date: 2008-11-13
Built: R 2.8.1; ; 2009-01-02 14:02:31; unix






More information about the grass-stats mailing list