[GRASS-user] help with batch exporting r.out.gdal

Thomas Adams tea3rd at gmail.com
Tue Sep 2 06:20:01 PDT 2014


I assume you are running this at the GRASS prompt? If not, you must do
this. Also, if you don't provide the full path for 'NPPFILES', you should
run the command from the directory where 'NPPFILES' is located.
Additionally, you may want to change your code to this:

for files in $(cat NPPFILES); do
echo $files;
r.out.gdal input="$NPPFILES" output="$NPPFILES.tiff" format=GTiff ; done

You may want to include the line "echo $files;" to see if the individual
map names are being read correctly


On Tue, Sep 2, 2014 at 8:57 AM, Rajat Nayak <rajat27404 at gmail.com> wrote:

> Dear All,
> I just created a list of files (NPPFILES) using g,mlist command in grass7.
> Now I would like to export these files as .tiff files.
> I tried this command
> for files in $NPPFILES; do
> r.out.gdal input="$NPPFILES" output="$NPPFILES.tiff" format=GTiff ; done
> This is not working for me. I tried giving directory path, still no result.
> I will be grateful if anybody can help me with this.
> Thanking you,
> Regards
> Rajat Nayak
> _______________________________________________
> 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/20140902/50a07c53/attachment.html>

More information about the grass-user mailing list