EnMAP-Box / enmap-box

EnMAP-Box source code repository. See https://enmap-box.readthedocs.io for documentation
GNU General Public License v3.0
37 stars 16 forks source link

implement an "Edit raster layer band properties" algo #538

Open janzandr opened 1 year ago

janzandr commented 1 year ago

Discussed with @jakimowb.

Currently we have the "Edit raster source band properties" algorithm for updating a raster source directly. image

This algo can only be used, if the raster isn't currently opened inside QGIS as a raster layer. It is proposed to implement a new algorithm, that takes a raster layer (i.e. raster is opened inside QGIS), and creates a new VRT output raster.

Also, instead of having to set a list of values for each metadata item (e.g. Wavelength, FWHM, Scales, etc), it is proposed to implement a custom table widget for editing the metadata.

jakimowb commented 1 year ago

Note: the custom table widget may look like that in Raster Layer Properties -> GDAL Metadata -> Band Metadata:

EnMAPBox_ChangeBandNames

janzandr commented 1 year ago

@jakimowb, would be good if you could provide your existing widget in a way, that it is reusable. E.g.

w = MetadataWidget()
w.setLayer(myRasterLayer)
dictWithAllValues = w.values()