[Qgis-user] Is it possible to display strings as band labels in QGIS?

Nicolas Cadieux njacadieux.gitlab at gmail.com
Tue Feb 15 18:03:22 PST 2022


Hi,

I’am not sure you can do it directly in QGIS but you can definitely do it using Gdal.  I have some Python code that did that.  Write back if your interested. 

Nicolas Cadieux
https://gitlab.com/njacadieux

> Le 15 févr. 2022 à 17:48, Liukis, Maria (US 398K) <maria.liukis at jpl.nasa.gov> a écrit :
> 
>  Hello,
> 
> I am QGIS newbie and have troubles getting our NetCDF format data to display band names, which are strings, in QGIS. So my question is it possible to have band labels, which are strings, to be displayed in QGIS?
> When I view Symbology -> Band for the layer it is rendered as empty:
> 
> Band 1: sensors=
> Band 2: sensors=
> Band 3: sensors=
> 
> Though all three labels are provided in the source NetCDF as “sensors" dimension:
> 
> ['S1A_S1B', 'S2A_S2B', 'L8_L9’]
> 
> Panoply has no problems displaying the band labels.
> 
> I am using QGIS Release 3.14 on OS X.
> 
> Thanks,
> Masha
> 
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220215/80012d4a/attachment.html>


More information about the Qgis-user mailing list