I am dealing with a lot of raster files at once. When I have used certain commands like g.mlist for listing of my raster files, it has given me warmings like, "file name too long." Similar problems have arose when I use r.region to change location of my raster files. Is there a capacity to the program when adjusting a lot of raster files at once, and is there a way around not getting these warnings.
Aaron
Aaron,
So, If I understand you correctly, you have 800 raster files that you need to re-scale but are failing due to the length of the list or command line length?
If your files are named in a logically/sequential fashion (foobar_1 , foobar_2 , foobar_3 etc) then you could run your commands on each file using a counter inside a loop. pseudo code would look something like;
let counter=1
while [ ${counter} -le 800 ]; do
r.region map=foobar_${counter} n= s= e= w=
counter=${counter}+1
done
However, if the file names are unorganized then you may need to rework the file names outside of GRASS using a batch re-namer in order to get this to work.
Cheers,
Mike
On 5-Jul-07, at 8:51 AM, goldneaa@onid.orst.edu wrote:
I am dealing with a lot of raster files at once. When I have used certain commands like g.mlist for listing of my raster files, it has given me warmings like, “file name too long.” Similar problems have arose when I use r.region to change location of my raster files. Is there a capacity to the program when adjusting a lot of raster files at once, and is there a way around not getting these warnings.
Aaron
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser