[GRASS5] ERROR: cell_values_double: xdr_double failed for index
387.
Hamish
hamish_nospam at yahoo.com
Sun Sep 5 20:34:13 EDT 2004
> > I'm getting this error when I try to access a DCELL map after setting
> > the region to cross 180 degrees lon:
> >
> > ERROR: cell_values_double: xdr_double failed for index 387.
> > (lib/gis/get_row.c line 414)
> >
> > G57:~> g.region -p
> > projection: 3 (Latitude-Longitude)
> > zone: 0
> > datum: wgs84
> > ellipsoid: wgs84
> > north: 25:10S
> > south: 56S
> > west: 153:05E
> > east: 174:40W
> > nsres: 0:05
> > ewres: 0:05
> > rows: 370
> > cols: 387
> >
> >
> > g.region -d && d.zoom -p
> > works ok until I hit 180E, then the above error.
> >
> > Works ok with a CELL map; fails on any FCELL or DCELL map.
> > fails using d.rast, r.mapcalc, etc. with GRASS 5.0.3 -> GRASS 5.7-cvs.
>
> I can't reproduce this (using the "global" sample data set).
Ok, global data set, try it with:
G57:~> g.region -d
G57:~> r.mapcalc nationsF='float(nations)'
G57:~> d.rast nationsF
G57:~> d.zoom # (japan)
G57:~> d.zoom -p # to the east
[...]
north: 13:50S south: 27:20S east: 178W west: 167:05E
East limit of default region reached.
ERROR: cell_values_float: xdr_float failed for index 179.
after it breaks,
G57:~> g.region -d
G57:~> d.rast nationsF
ERROR: cell_values_float: xdr_float failed for index 179.
G57:~> d.rast nationsF
[works]
Hamish
More information about the grass-dev
mailing list