Is it possible with the BEAM-DIMAP format inside Snap to add a band to a certain product from another product’s band (or merge two products inside the same product containing the aggregation of both products’ bands)?
Is it required to manually modify the product.dim xml file to add the new band to it, and copy the band.img and band.hdr from the other product inside the product.data folder? or is there an automatic way to do it?
Please note that if I add the band manually to the metadata xml file (product.dim) and copy its files (band.hdr, band.img) into product.data/, it’s getting recognized by Snap but I don’t know if there is a more efficient to add the band.
in the SNAP Desktop App you can use the Band Maths. Select the target product and in the expression editor you can choose the other product as source (if compatible). Make sure to uncheck the option 'Virtual (save expression only, don’t store data)’. This makes the new band a real band and independent from its source.
The same is also possible from the command line with gpt. Here you would need to use the BandMaths opertator and merge its result with your source product by using the Merge operator.
How do I create a new product from others?
I have bands (B1, B2, B3, B4 …) in one product and other indices separated in other products, I would put them all in just one product. Can someone help me?
This is possible?