[Gstat-info] Re: gstat bug?
edzer.pebesma at uni-muenster.de
Fri Apr 11 08:11:31 CEST 2008
Thanks, that clears things up, Thomas.
The gstat -e convert business is rather old and, if I may say so,
obsolete these days. The usage is given by:
edzer at edzer-vaio:~/S/test$ ~/cvs/gstat/src/gstat -e convert
Minimal map converter (topology and cell values only)
usage: convert [options] in_map out_map
-h print help
target types supported:
b idrisi binary
d Surfer DSAA
i idrisi ascii
meaning that a meaningful usage would e.g. be
gstat -e convert -f a in_map out_map
converting in_map (grid map in readable format) to gridascii format. So
there are two problems: (i) you don't use the -f option with argument,
(ii) your input file is not a grid map.
Today, for converting between grid map formats I would advice to use
Thomas Krauße wrote:
> Hi Edzer, hi list,
> sorry, that I didn't use the list immediately. I'll do so immediately. I
> have the following problem with gstat. I downloaded the sources of
> version 2.4.5 and compiled them succesfully. My operating system is
> Ubuntu Linux 7.10 Gutsy x86_64.
> Now I wanted to try the examples. I tried example 4 by:
> 'gstat ex04.cmd'
> and everything worked fine. But I couldn't convert the ASCII-Output File
> 'zincok.out'. The command
> 'gstat -e convert zincok.out test'
> gives the cryptic error: 'read failed on file 'zinc.eas''. Another error
> is thrown for example 3:
> 'gstat ex03.cmd' throws:
> 'Warning: converted null-character(s) in `mask_map' to space
> gstat: read failed on file `mask_map''
> Does anybody knows a solution? Where is the error, if I even cannot
> convert EAS-files? I really absolutely don't know. The file zincok.out
> and all other files in the subdir 'cmd' have the rights 777, so the
> problem cannot be found there. Thank you very much for all hints.
> Best regards,
> Am Donnerstag, den 10.04.2008, 21:25 +0200 schrieb Edzer Pebesma:
>> Hi Thomas,
>> I run the same platform, routinely, and cannot see the problem. If I run
>> gstat on ex04.cmd, everything looks fine. What exactly did you mean by "
>> when I want to convert the generated EAS file 'zincok.out' the program
>> gives the error: ..."?
>> Most people use gstat-info for this kind of questions; questions and
>> answers are then accessible to later users.
>> Thomas Krauße wrote:
>>> Dear gstat developers,
>>> I have severe problems using your gstat tool for a research project.
>>> My OS: Linux Ubuntu 7.10 x86_64
>>> gstat version: 2.4.5
>>> I'm successful to compile the program and also executed gstat with the
>>> ex04.cmd example. But when I want to convert the generated EAS file
>>> 'zincok.out' the program gives the error:
>>> gstat: read failed on file 'zincok.out'
>>> The file exists and has all (777) rights to read and to write. The same
>>> problem occurs with the pre-compiled 2.4.0 binaries for Linux. Do you
>>> have an assumption how to solve this bug! Perhaps it has something to do
>>> that I run on a 64-bit platform. I really don't know. Thank you very
>>> much!!! I would be so happy to get further help.
>>> Best regards,
>>> Thomas Krauße
More information about the Gstat-info