[GRASS-user] Conversion of multiple rasters to PNG files
daniel mcinerney
daniel.o.mcinerney at gmail.com
Tue Apr 12 02:57:19 EDT 2011
Hi,
you could use the following bash for loop as a
basis for what you want to do:
for file in `g.mlist rast pattern=searchpattern*`;
do r.out.png input=$file output="/tmp/"$file".png";
done
Regards,
Daniel
On Tue, Apr 12, 2011 at 5:10 AM, Mortsde <alex.mortsde at gmail.com> wrote:
> Hi Community,
>
> I'm relatively new to GRASS/unix style commands and was wondering if anyone
> had a quick PERL script that could convert LOTS of raster maps to PNG files
> without the repetition of going through one by one. I'm not much of a
> programmer otherwise I'd write some kind of loop and have a go. The
> general
> form of my rasters is already in a "Name_$Date" style format so I think
> this
> should be pretty easy? I'm attempting to make video files that illustrate
> soil saturation with time. I have about 10 years (daily) of soil moisture
> that I'm looking to animate so it's a digestible amount of information.
>
> Thanks for reading/advice!
>
>
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Conversion-of-multiple-rasters-to-PNG-files-tp6263692p6263692.html
> Sent from the Grass - Users mailing list archive at Nabble.com.
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20110412/9b79e1e1/attachment.html
More information about the grass-user
mailing list