We can't import more than 49 files

S.Michele 21.IV. 99 Italy

We are only beginers; we created a little program to import automatically 215
files ascii in GRASS. It works only for 49 files then GRASS prints a errore
message! Why?

Do you know if a mapset can accept only 50 files ? Does the mapset have a
dimension limit ?

Help us!!
Thank you

(attachments)

import-raster (336 Bytes)

As far as I know GRASS has not realistic limit for the number of mapsets
that are allowed. I have created directories with hundreds of maps with
no problem. Instead could this be a disk space related error you are having?

R. Joe

On Wed, 21 Apr 1999, Utente Grass wrote:

S.Michele 21.IV. 99 Italy

We are only beginers; we created a little program to import automatically 215
files ascii in GRASS. It works only for 49 files then GRASS prints a errore
message! Why?

Do you know if a mapset can accept only 50 files ? Does the mapset have a
dimension limit ?

Help us!!
Thank you

R. Joe Brandon
---------------------------------------------------------------------
Center for Advanced Spatial Technologies (fax) 501 575-5218
Rm. 12 Ozark Hall 501 575-4277
University of Arkansas rjoe@cast.uark.edu
Fayetteville, AR 72701
Updated! -> http://www.cast.uark.edu/~rjoe

Computers are actually powered by Chaos theory, not electricity...that
is just for the fan. (T. Hesser)
---------------------------------------------------------------------

On mer, 21 apr 1999, you wrote:

As far as I know GRASS has not realistic limit for the number of mapsets
that are allowed. I have created directories with hundreds of maps with
no problem. Instead could this be a disk space related error you are having?

R. Joe

On Wed, 21 Apr 1999, Utente Grass wrote:

> S.Michele 21.IV. 99 Italy
>
> We are only beginers; we created a little program to import automatically 215
> files ascii in GRASS. It works only for 49 files then GRASS prints a errore
> message! Why?
>
> Do you know if a mapset can accept only 50 files ? Does the mapset have a
> dimension limit ?
>
> Help us!!
> Thank you

R. Joe Brandon
---------------------------------------------------------------------
Center for Advanced Spatial Technologies (fax) 501 575-5218
Rm. 12 Ozark Hall 501 575-4277
University of Arkansas rjoe@cast.uark.edu
Fayetteville, AR 72701
Updated! -> http://www.cast.uark.edu/~rjoe

Computers are actually powered by Chaos theory, not electricity...that
is just for the fan. (T. Hesser)
---------------------------------------------------------------------

S.Michele 22.IV.99 Italy

Thank you for your message. The real problem was format errors in ascii data.
We've resolve them and we 're able to import 215 files.

Now we are trying to patch them all together but r.patch allows only 10 files in
input. It is possible to change the source without create new problems?

Good bye

Valentina & Marco

On Thu, 22 Apr 1999, Utente Grass wrote:

Thank you for your message. The real problem was format errors in ascii data.
We've resolve them and we 're able to import 215 files.

Now we are trying to patch them all together but r.patch allows only 10 files in
input. It is possible to change the source without create new problems?

Good bye

Valentina & Marco

You could modify the code for r.patch, but there is also a limit on how
many files may be open at a time in GRASS, something like 27. Your best
bet is simply to right a basic shell script that loops through r.patch,
creating temporary patched files from 10 layers at a time, and then
patching those together. Not a big deal. If you plan on doing much work
in GRASS, you'll want to learn how to do this anyway.

Regards,
--
Malcolm D. Williamson - GIS Specialist E-mail: malcolm@cast.uark.edu
Center for Advanced Spatial Technologies Phone: (501) 575-6159
Ozark Rm. 12 Fax: (501) 575-5218
University of Arkansas
Fayetteville, AR 72701 Web:
http://www.cast.uark.edu

Malcolm,

Whenever I have had to do large sets of maps I use a syntax in my shell
such as:

r.patch input=All.Prehistoric.Sites,395-573.p.poly,400-568.p.poly,408-607.p.poly
,409-597.p.poly,410-606.p.poly,412-601.p.poly,414-583.p.poly,414-601.p.poly,414-
609.p.poly output=patch1

etc... and then patch the maps together. Is this the style you are
suggesting or would you suggest that they have an actually variable such as

r.patch input=$

R. Joe

On Thu, 22 Apr 1999, Malcolm Williamson wrote:

On Thu, 22 Apr 1999, Utente Grass wrote:

>
> Thank you for your message. The real problem was format errors in ascii data.
> We've resolve them and we 're able to import 215 files.
>
> Now we are trying to patch them all together but r.patch allows only 10 files in
> input. It is possible to change the source without create new problems?
>
> Good bye
>
> Valentina & Marco
>
You could modify the code for r.patch, but there is also a limit on how
many files may be open at a time in GRASS, something like 27. Your best
bet is simply to right a basic shell script that loops through r.patch,
creating temporary patched files from 10 layers at a time, and then
patching those together. Not a big deal. If you plan on doing much work
in GRASS, you'll want to learn how to do this anyway.

Regards,
--
Malcolm D. Williamson - GIS Specialist E-mail: malcolm@cast.uark.edu
Center for Advanced Spatial Technologies Phone: (501) 575-6159
Ozark Rm. 12 Fax: (501) 575-5218
University of Arkansas
Fayetteville, AR 72701 Web:
http://www.cast.uark.edu

R. Joe Brandon
---------------------------------------------------------------------
Center for Advanced Spatial Technologies (fax) 501 575-5218
Rm. 12 Ozark Hall 501 575-4277
University of Arkansas rjoe@cast.uark.edu
Fayetteville, AR 72701
Updated! -> http://www.cast.uark.edu/~rjoe

Computers are actually powered by Chaos theory, not electricity...that
is just for the fan. (T. Hesser)
---------------------------------------------------------------------