[GRASS-user] Retaining the raster name, while exporting a group to other formats

Sajid Pareeth spareeth at gmail.com
Thu Nov 10 01:02:07 PST 2016


Hi all

I am exporting a group of rasters to single stacked GTiff and ENVI format
files.

Here is my group:
i.group S2A_OPER_MSI_L1C_TL_MTI__20160810T122618_A005911_T30SWJ_10m -l
group <S2A_OPER_MSI_L1C_TL_MTI__20160810T122618_A005911_T30SWJ_10m>
references the following raster maps
-------------
<S2A_OPER_MSI_L1C_TL_MTI__20160810T122618_A005911_T30SWJ_B02.jp2 at barrax>
<S2A_OPER_MSI_L1C_TL_MTI__20160810T122618_A005911_T30SWJ_B03.jp2 at barrax>
<S2A_OPER_MSI_L1C_TL_MTI__20160810T122618_A005911_T30SWJ_B04.jp2 at barrax>
<S2A_OPER_MSI_L1C_TL_MTI__20160810T122618_A005911_T30SWJ_B08.jp2 at barrax>
-------------

I use the following export command:
r.out.gdal input=${BASE}_10m
output="${MYDATA}/${FOLDER}Barrax/20m/${BASE}_10m" format=ENVI


But the band names in the output ENVI or GTiff files are changed to "Band
1", "Band 2", "Band 3", "Band 4".

Is there any way to retain the original raster names for the individual
bands in the final stacked image?


Thanks in advance

Regards

Sajid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20161110/76ef87de/attachment.html>


More information about the grass-user mailing list