Radar / Coregistration / Create Stack

I am trying to merge features extracted from Sentinel 1 using the Create Stack, but it is not working. There is an error saying:

[NodeID: Create Stack] Cannot invoke “org.esa.snap.core.datamodel.Band.getUnit()” because “mstBand“ is null

The fix for this issue should be available in the Microwave 13.0.2 update. Kindly update SNAP by selecting Help → Check for Updates :

image

Thanks for answering. Actually, my snap is the latest version with microwave toolbox at 13.0.2. It is curious bcause the Snap toolbox at 12 version, this process works smoothly. My problem ocurrs just in the 13 version.

Jira ticket SNAP-4139 created.

1 Like

Here is a workaround. Before you run the CreateStack operator, you can manually change the unit of both the master and slave bands to “intensity”. For example, you have two products (master and slave). The first band in the master product is Sigma0_IW1_VH with a unit of intensity. The slave band is coherence with a unit of “coherence”. Now you can change the unit of coherence band to “intensity” by right-clicking on the band name and select “Properties” and change the unit in the pop-up window. Basically you should make your feature bands have the same unit as the master band. Then you should be able to run CreateStack.

1 Like

I have a similar problem. My workflow with SNAP 12 worked without any issues to process S-1 IW SLC data to coregistered terrain-corrected C2 data. With SNAP 13, the coregistered terrain-corrected C2 dataset only includes the components C12_real and C12_imag. Before coregistering, the terrain-corrected C2 data is composed of:
C11 (Unit: intensity)
C12_real (Unit: real)
C12_imag (Unit: imaginary)
C22 (Unit: intensity)

I’ve seen that a ticket was created, but is there a workaround to deal with this?

Thanks

You can change the units of C12_real and C12_imag bands to intensity before coregistration, and change them back to their original units after coregistration.

Thank you, it worked. Best wishes

Quick question: is there an automatic way of doing this? I have dozens of files and doing it one by one is just very inefficient. Thanks!

I am not sure if you can do it automatically in SNAP. But you can try to change the unit in the “.dim” file automatically.