> WARNING: G3d_readWindow: unable to find
[\grassdata/slovakia3d/user1/windows3d/\grassdata/slovakia3d/PERMANENT/grid3/precip3d.500z50/cellhd].
> ERROR: Invalid region: North must be larger than South
> }}}
>
> => r3.info crash
{{{
WARNING: G3d_readWindow: unable to find
[\grassdata/slovakia3d/user1/windows3d/\grassdata/slovakia3d/PERMANENT/grid3/precip3d.500z50/cellhd].
ERROR: Invalid region: North must be larger than South
}}}
Replying to [comment:2 hellik]:
> {{{
> WARNING: G3d_readWindow: unable to find
[\grassdata/slovakia3d/user1/windows3d/\grassdata/slovakia3d/PERMANENT/grid3/precip3d.500z50/cellhd].
> ERROR: Invalid region: North must be larger than South
> }}}
>
> maybe a path issue?
{{{
g.region -p rast3d=JR_7408MR_2m_t70@testvolume
WARNING: G3d_readWindow: unable to find
[C:\grassdata/nc_spm_08/testvolume/windows3d/C:\grassdata/nc_spm_08/testvolume/grid3/JR_7408MR_2m_t70/cellhd].
ERROR: Invalid region: North must be larger than South
}}}
and a crash with
{{{
r3.info map=JR_7408MR_2m_t70@testvolume
}}}
3d-rasters/volumes in wingrass6.4.3svn/RC aren't usable at the moment.
g.region -p rast3d=JR_7408MR_2m_t70@testvolume
WARNING: Rast3d_read_window: unable to find
[C:\grassdata/nc_spm_08/testvolume/windows3d/C:\grassdata/nc_spm_08/testvolume/grid3/JR_7408MR_2m_t70/cellhd].
ERROR: Nordwert muss größer als der Südwert sein
On Thu, Feb 14, 2013 at 2:55 PM, Helmut Kudrnovsky <hellik@web.de> wrote:
Does this command work in G7 on the same data?
g.region -p rast3d=JR_7408MR_2m_t70@testvolume
WARNING: Rast3d_read_window: unable to find
[C:\grassdata/nc_spm_08/testvolume/windows3d/C:\grassdata/nc_spm_08/testvolume/grid3/JR_7408MR_2m_t70/cellhd].
ERROR: Nordwert muss größer als der Südwert sein
not really...
I tried to debug this on Linux but I have no idea what to look for.
The problem might be in
On Thu, Feb 14, 2013 at 2:55 PM, Helmut Kudrnovsky <hellik@web.de> wrote:
>>Does this command work in G7 on the same data?
>
>
> g.region -p rast3d=JR_7408MR_2m_t70@testvolume
> WARNING: Rast3d_read_window: unable to find
> [C:\grassdata/nc_spm_08/testvolume/windows3d/C:\grassdata/nc_spm_08/testvolume/grid3/JR_7408MR_2m_t70/cellhd].
> ERROR: Nordwert muss größer als der Südwert sein
>
> not really...
I tried to debug this on Linux but I have no idea what to look for.
The problem might be in
Maybe this line causing troubles (guessing around)?
if ((*windowName == '/') || (*windowName == '.')) {
I think so.
Glynn (sorry to ask you directly), any pointers for me?
The minimal portability fix for the above is:
if (G_is_absolute_path(windowName) || (*windowName == '.'))
But I suggest either:
if (strpbrk(windowName, "/\\")) {
or:
if (strchr(windowName, GRASS_DIRSEP) || strchr(windowName, HOST_DIRSEP)) {
which will check whether the window "name" contains any slash or
backslash characters (in which case, it's almost certainly meant to be
a path rather than a name). Unlike the existing code, this will allow
relative paths which don't start with "./" (which should be
redundant). The second alternative avoids matching a backslash on Unix
(which probably doesn't matter; backslashes in filenames are legal but
rare).
Alternatively, assuming that window names are bound by the same rules
as raster map names:
{{{
r3.info map=precip3d.500z50@PERMANENT
WARNING: You are using an old raster3d data format, the vertical unit is
undefined. Please use r3.support to define the vertical unit to avoid this
warning.
+----------------------------------------------------------------------------+
| Layer: precip3d.500z50@PERMANENT Date: ??
|
| Mapset: PERMANENT Login of Creator: ??
|
| Location: slovakia3d
|
| DataBase: C:\grassdata
|
| Title: ??
|
| Units: none
|
| Vertical unit: (null)
|
| Timestamp: none
|
|----------------------------------------------------------------------------|
|
|
| Type of Map: 3d cell Number of Categories: 0
|
| Data Type: DCELL
|
| Rows: 510
|
| Columns: 890
|
| Depths: 6
|
| Total Cells: 2723400
|
| Total size: 6728954 Bytes
|
| Number of tiles: 7168
|
| Mean tile size: 938 Bytes
|
| Tile size in memory: 4096 Bytes
|
| Number of tiles in x, y and z: 112, 64, 1
|
| Dimension of a tile in x, y, z: 8, 8, 8
|
|
|
| Projection: x,y (zone 0)
|
| N: 5530000 S: 5275000 Res: 500
|
| E: 4631000 W: 4186000 Res: 500
|
| T: 3000 B: 0 Res: 500
|
| Range of data: min = 525.45690918 max = 1801.44433594
|
|
|
+----------------------------------------------------------------------------+
(Wed Feb 20 17:14:56 2013) Command finished (0 sec)
}}}