<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hi,<div><br><div>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. <br><br><div dir="ltr">Nicolas Cadieux<div><a href="https://gitlab.com/njacadieux">https://gitlab.com/njacadieux</a></div></div><div dir="ltr"><br><blockquote type="cite">Le 15 févr. 2022 à 17:48, Liukis, Maria (US 398K) <maria.liukis@jpl.nasa.gov> a écrit :<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">


Hello,
<div class=""><br class="">
</div>
<div class="">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?</div>
<div class="">When I view Symbology -> Band for the layer it is rendered as empty:</div>
<div class=""><br class="">
</div>
<div class="">Band 1: sensors=</div>
<div class="">Band 2: sensors=</div>
<div class="">Band 3: sensors=</div>
<div class=""><br class="">
</div>
<div class="">Though all three labels are provided in the source NetCDF as “sensors" dimension:</div>
<div class=""><br class="">
</div>
<div class="">
<pre style="box-sizing: unset; line-height: var(--jp-code-line-height); border: none; margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; overflow: auto; word-break: break-all; word-wrap: break-word; caret-color: rgba(0, 0, 0, 0.87);" class=""><font face="Helvetica" class="">['S1A_S1B', 'S2A_S2B', 'L8_L9’]</font></pre>
<pre style="box-sizing: unset; line-height: var(--jp-code-line-height); border: none; margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; overflow: auto; word-break: break-all; word-wrap: break-word; caret-color: rgba(0, 0, 0, 0.87);" class=""><font face="Helvetica" class=""><br class=""></font></pre>
<pre style="box-sizing: unset; line-height: var(--jp-code-line-height); border: none; margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; overflow: auto; word-break: break-all; word-wrap: break-word; caret-color: rgba(0, 0, 0, 0.87);" class=""><font face="Helvetica" class="">Panoply has no problems displaying the band labels.</font></pre>
<div class=""><br class="">
</div>
</div>
<div class="">I am using QGIS Release 3.14 on OS X.</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class="">Masha</div>
<div class=""><br class="">
</div>


<span>_______________________________________________</span><br><span>Qgis-user mailing list</span><br><span>Qgis-user@lists.osgeo.org</span><br><span>List info: https://lists.osgeo.org/mailman/listinfo/qgis-user</span><br><span>Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user</span><br></div></blockquote></div></div></body></html>