[GRASSLIST:3504] Re: script for importing Terra-ASTER data
Zbigniew Perski
perski at us.edu.pl
Thu May 27 05:40:01 EDT 2004
Hi,
The script is working now. I have solved also the problem before using
dos2unix (following Paul Kelly suggestion). Unfortunately I can not
enjoy it in this moment because I have grass5.0.3. I am planning to
start in the next days with 5.7 so I will test it.
I have another question: which kind of ASTER processing level could be
read by your script? I mean, the scenes which I have are Level 1A.
Many thanks
Zbigniew
W liÅcie z Åro, 26-05-2004, godz. 17:53, Michael Barton pisze:
> I have had that problem with some scripts also and I don't know why. I
> fixed it by opening a new file in nedit and copying all the text in the
> offending script to the new file and saving it under a new name. This
> is sort of waving a dead chicken.
>
> Come to think of it, this has happened only with scripts I recently
> received and now sent out via email. I will tar the file and resubmit
> it here to see what happens. Let me know.
>
> Michael
>
>
> ______________________________________________________________________
> ______________________________
> Michael Barton, Professor & Curator
> School of Human Origins, Cultures, & Societies
> Arizona State University
> Tempe, AZ 85287-2402
> USA
>
> voice: 480-965-6262; fax: 480-965-7671
> www: http://www.public.asu.edu/~cmbarton
> On May 26, 2004, at 2:36 AM, Zbigniew Perski wrote:
>
> > Folks,
> >
> > This script it seems to be a great thing which may speed up work of
> > many
> > people. Greath thanks to Michael Barton for his work.
> >
> > I am currently trying to use it since I am actually working with aster
> > data.
> > I have copied r.in aster to /usr/lical/grass5/scripts directory,
> > changed
> > permissions to be executable and tried to lauch:
> >
> > GRASS:~ > r.in.aster
> > : bad interpreter: No such file or directory/bin/sh
> >
> > ?! Another way:
> >
> > GRASS:~ > sh r.in.aster
> > : command not found:
> > : command not found:
> > : command not found:
> > '.in.aster: line 58: syntax error near unexpected token `in
> > '.in.aster: line 58: `case $GIS_OPT_band in
> >
> > I am sure that I have sh installed in my system:
> > GRASS:~ > whereis sh
> > sh: /bin/sh /usr/share/man/man1/sh.1.gz
> > GRASS:~ >
> >
> > Gdal is also present in my system:
> > GRASS:~ > whereis gdal
> > gdal: /usr/include/gdal.h /usr/share/gdal
> > GRASS:~ > whereis gdalwarp
> > gdalwarp: /usr/bin/gdalwarp /usr/share/man/man1/gdalwarp.1.gz
> >
> > So, what is wrong? I am using grass5.0.3, is it a case?
> >
> > I am working on PC i586 with GNU/Linux
> >
> >
> > Regards
> >
> > Zbigniew
> >
> >
> > --
> > dr Zbigniew Perski
> > Geological Visualization Laboratory
> > Department of Fundamental Geology
> > Faculty of Earth Sciences at UNIVERSITY OF SILESIA
> > Bedzinska 60, 41-200 Sosnowiec
> > POLAND
> > fax: +48 32 2915865
> > phone: +48322918381 e.420
> > GNU/LINUX user #333288
> >
More information about the grass-user
mailing list