[GRASSLIST:6176] Re: Newbie with SRTM import problem (solved)

Karl Broich b61bro at b6axs1.bauv.unibw-muenchen.de
Tue Mar 15 07:19:13 EST 2005


Thanks to Hamish and Marco !

1. copying the *hgt to tmp does not change anything in my case
2. introducing the modification by Hamish in r.in.srtm solved the problem 
(almost).

There is still a problem with removal of the tmp (compare logg below).

<

r.in.srtm 
input=/cygdrive/d/Benutzer/b61bro/data/grass/PERMANENT/.tmp/N35E045.hgt.zip
Extracting /cygdrive/d/Benutzer/b61bro/data/grass/PERMANENT/.tmp/N35E045...
Archive:  /cygdrive/d/Benutzer/b61bro/data/grass/PERMANENT/.tmp/N35E045.hgt.zip
   inflating: N35E045.hgt
Converting input file to BIL...
A datum name wgs84 (WGS_1984) was specified without transformation parameters.
Note that the GRASS default for wgs84 is towgs84=0.000,0.000,0.000.
Projection of input dataset and current location appear to match.
Proceeding with import...

CREATING SUPPORT FILES FOR N35E045

rm: cannot lstat 
`/cygdrive/d/Benutzer/b61bro/data/grass/PERMANENT/.tmp/b6pc196/1732.0//cygdrive/d/Benutzer/b61bro/data/grass/PERMANENT/.tmp/N35E045.hgt.zip': 
No such file or directory
rmdir: 
`/cygdrive/d/Benutzer/b61bro/data/grass/PERMANENT/.tmp/b6pc196/1732.0': 
Device or resource busy
Color table for [N35E045] set to srtm
Done: generated map N35E045
(Note: Holes in the data can be closed with 'r.fillnulls' using splines)

 >



At 15:21 15.03.2005 +1300, you wrote:
>On Mon, 14 Mar 2005 17:09:01 +0100
>Karl Broich <b61bro at b6axs1.bauv.unibw-muenchen.de> wrote:
>
> > Hello GRASS-list member,
> >
> > I downloaded and installed GRASS 6.0 for Cygwin (Version 0.2.2) on Windows
> > 2000.
> >
> > After trying to import a SRTM-tile I got the following messages from
> > r.in.srtm :
> >
> > <
> >
> > r.in.srtm input=/cygdrive/d/Benutzer/b61bro/data/srtm/N35E065.hgt.zip
> > [: ==: unknown operand
> > Extracting /cygdrive/d/Benutzer/b61bro/data/srtm/N35E045...
>
>
>can you edit the script* and change this line:
>
>if [ "$GIS_OPT_output" == "" ] ; then
>
>to
>
>if [ -z "$GIS_OPT_output" ] ; then
>
>
>and see if that fixes it? please let us know if it does.
>
>
>[*] find with "which r.in.srtm". not sure if this works on cygwin?
>
>
>using bash as your shell?
>
>
>
>Hamish


--------------------------------------------------------------------------
Dr.-Ing. Karl BROICH			Tel:	+49 / (0) 89 / 6004 2478
Universität der Bundeswehr München	Fax:	+49 / (0) 89 / 6004 3858
Institut für Wasserwesen
Werner-Heisenberg-Weg 39
D 85577 Neubiberg
--------------------------------------------------------------------------




More information about the grass-user mailing list