[GRASS-user] run grass in linux command -- r.fillnulls errors

Hi:
When I run grass in command line model, the r.fillnulls can not be completed, I post the input and output in the terminal , I hope some one can check it :

GRASS 6.4.0RC5 (spearfish60):~/grass/GrassDataBase > g.gisenv
GISDBASE=/home/kk/grass/GrassDataBase
LOCATION_NAME=spearfish60
MAPSET=PERMANENT
GRASS_GUI=text
MONITOR=cairo7

GRASS 6.4.0RC5 (spearfish60):~/grass/GrassDataBase > r.in.gdal input=/home/kk/grass/data/4404.tif output=aa location=al
Location created
100%
r.in.gdal complete. Raster map created.

GRASS 6.4.0RC5 (spearfish60):~/grass/GrassDataBase > g.mapset location=al mapset=PERMANENT
Erasing monitors…
Cleaning up temporary files…
WARNING: Your shell continues to use the history for the old mapset
You can switch the history by commands:
history -w; history -r
/home/kk/grass/GrassDataBase/al/PERMANENT/.bash_history;
HISTFILE=/home/kk/grass/GrassDataBase/al/PERMANENT/.bash_history

GRASS 6.4.0RC5 (spearfish60):~/grass/GrassDataBase > g.gisenv
GISDBASE=/home/kk/grass/GrassDataBase
LOCATION_NAME=al
MAPSET=PERMANENT
GRASS_GUI=text
MONITOR=cairo7

GRASS 6.4.0RC5 (spearfish60):~/grass/GrassDataBase > r.null map=aa setnull=-1.267e+30–1.268e+30
100%

GRASS 6.4.0RC5 (spearfish60):~/grass/GrassDataBase > r.fillnulls input=aa output=abc tension=40 smooth=0.1
Locating and isolating NULL areas…
100%
Reading input raster map r_fillnulls_10653@PERMANENT
100%
Finding buffer zones…
100%
Writing output raster map <r_fillnulls_10653.buf>…
100%
100%
Creating interpolation points…
WARNING: Default driver / database set to:
driver: dbf
database: $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/
Extracting points…
100%
Building topology for vector map <vecttmp_fillnulls_10653>…
Registering primitives…
704828 primitives registered
704828 vertices registered
Building areas…
100%
0 areas built
0 isles built
Attaching islands…
Attaching centroids…
100%
Number of nodes: 704828
Number of primitives: 704828
Number of points: 704828
Number of lines: 0
Number of boundaries: 0
Number of centroids: 0
Number of areas: 0
Number of isles: 0
r.to.vect complete.
Interpolating 704828 points
Note: The following warnings may be ignored.
Removing raster
Using segmentation for interpolation…
Percent complete:
Loading data from attribute table …
Reading lines from vector map …
Reading nodes from vector map …
100%
100%
WARNING: strip exists with insufficient data

The number of points from vector map is 704828
The number of points outside of 2D/3D region 0
The number of points being used is 704828
Processing all selected output files
will require 4874896 bytes of disk space for temp files
Percent complete:
76%
WARNING: taking too long to find points for interpolation–please change
… the warnnings …
78%
WARNING: taking too long to find points for interpolation–please change
WARNING: taking too long to find points for interpolation–please change
80%
… the warnnings …
94%
Killed
Note: Above warnings may be ignored.
Patching fill data into NULL areas…
WARNING: Raster map <r_fillnulls_10653_filled> not found
ERROR: One or more input raster maps not found
Removing raster <r_fillnulls_10653>
Removing raster <r_fillnulls_10653.buf>
Removing raster <r_fillnulls_10653_filled>
WARNING: Raster map <r_fillnulls_10653_filled> not found
WARNING: <r_fillnulls_10653_filled> nothing removed
Removing vector <vecttmp_fillnulls_10653>
Filled raster map is: abc
ERROR: Raster map not found in current mapset
Done.

It seems that the r.fillnulls does not work, and when I enter the location al and mapset PERMANENT , there is just the rast map aa, not abc. I woder why?

On Tue, Mar 2, 2010 at 2:55 PM, maven apache <apachemaven0@gmail.com> wrote:

Hi:
When I run grass in command line model, the r.fillnulls can not be
completed, I post the input and output in the terminal , I hope some one can
check it :
----------------------------
GRASS 6.4.0RC5 (spearfish60):~/grass/GrassDataBase > g.gisenv

please post the output of
g.region -p

...

GRASS 6.4.0RC5 (spearfish60):~/grass/GrassDataBase > r.fillnulls input=aa
output=abc tension=40 smooth=0.1
Locating and isolating NULL areas...
100%

...

Number of points: 704828

...

Removing raster <MASK>
Using segmentation for interpolation...
Percent complete:

...

will require 4874896 bytes of disk space for temp files
Killed

I wonder if too much RAM was used and swap exceeded?

Markus

2010/3/3 Markus Neteler <neteler@osgeo.org>

On Tue, Mar 2, 2010 at 2:55 PM, maven apache <apachemaven0@gmail.com> wrote:

Hi:
When I run grass in command line model, the r.fillnulls can not be
completed, I post the input and output in the terminal , I hope some one can
check it :

GRASS 6.4.0RC5 (spearfish60):~/grass/GrassDataBase > g.gisenv

please post the output of
g.region -p

GRASS 6.4.0RC5 (spearfish60):~ > g.gisenv
GISDBASE=/home/kk/grass/GrassDataBase
LOCATION_NAME=spearfish60
MAPSET=PERMANENT
GRASS_GUI=text

GRASS 6.4.0RC5 (spearfish60):~ > g.region -p
projection: 1 (UTM)
zone: 13
datum: nad27
ellipsoid: clark66
north: 4928000
south: 4914000
west: 590000
east: 609000
nsres: 100
ewres: 100
rows: 140
cols: 190
cells: 26600

GRASS 6.4.0RC5 (spearfish60):~ > r.in.gdal input=/home/kk/grass/data/4404.tif output=aa location=al
Location created
100%
r.in.gdal complete. Raster map created.

GRASS 6.4.0RC5 (spearfish60):~ > g.mapset location=al mapset=PERMANENT
Erasing monitors…
Cleaning up temporary files…
WARNING: Your shell continues to use the history for the old mapset
You can switch the history by commands:
history -w; history -r
/home/kk/grass/GrassDataBase/al/PERMANENT/.bash_history;
HISTFILE=/home/kk/grass/GrassDataBase/al/PERMANENT/.bash_history

GRASS 6.4.0RC5 (spearfish60):~ > g.gisenv
GISDBASE=/home/kk/grass/GrassDataBase
LOCATION_NAME=al
MAPSET=PERMANENT
GRASS_GUI=text
MONITOR=cairo7

GRASS 6.4.0RC5 (spearfish60):~ > g.region -p
projection: 3 (Latitude-Longitude)
zone: 0
datum: wgs84
ellipsoid: wgs84
north: 90N
south: 90S
west: 180W
east: 180E
nsres: 0:15
ewres: 0:15
rows: 720
cols: 1440
cells: 1036800
GRASS 6.4.0RC5 (spearfish60):~ >

GRASS 6.4.0RC5 (spearfish60):~/grass/GrassDataBase > r.fillnulls input=aa
output=abc tension=40 smooth=0.1
Locating and isolating NULL areas…
100%

Number of points: 704828

Removing raster
Using segmentation for interpolation…
Percent complete:

will require 4874896 bytes of disk space for temp files

Killed

I wonder if too much RAM was used and swap exceeded?

I run linux in the vitual machine within vmware in the win platform, is it who cause the problem?

Markus