Graph builder not working

Hi!
I’ve been using ESA’s SNAP GUI for basic operations on Sentinel-1 SAR data, I import manifest.safe as a Sentinel-1 SAR Sensor, then I crop (subset) the image to a small extent using geographical coordinates, to later apply a radiometrical calibration, speckle filter and terrain correction. The process is seamless in the GUI, but now I need to repeat the same process for a bunch of different datasets. Hence, I research how to bulk process and found the best way is using GPT, instead of snappy.
I started by generating a XML in graph builder, to use later in gpt, but when I tried to run in graph builder window, it freezes at 29%, can wait an hour and it doesn’t move.

Then I scrapped the graph to a single operation, subset, so it looks like this:

image

but guess what, it is still getting stuck at 29%, this operation is lightning fast in the gui, so it doesnt makes sense I have to wait more than an hour for it to work in the graph builder,

for completeness:

  • dataset: S1B_IW_GRDH_1SDV_20210723T164429_20210723T164454_027924_0354FB_2090.SAFE
  • Environment: Manjaro Linux
  • SNAP V 8.0
  • Reading tab: under data format I specify the dataset is Sentinel-1
  • Write tab: trying to save as default BEAM-DIM, I don’t think this matters, even a geotiff is failing
  • Subset tab: Im selecting all bands, checking copy metadata, selecting geographic coordinates and using the following to input the boundary: POLYGON((13.8 56.14, 13.8 56.44, 13.6 56.44, 13.6 56.14, 13.8 56.14))

I’ve been trying for a couple of days now, really need help, highly appreciate it in advance.

Hello,

I just processed this with the settings you have provided, and it worked well for me.
The progress bar jumped also immediately to 29% and then stood still, but after 83 seconds the processing was done.

I’m running it on Windows, but this should not make a difference.
Do you have installed the latest updates?

2 Likes

Hi marpet thank you for your quick reply, I really appreciate it, see that you even used the same dataset, the version I’m currently using was downloaded last week so I guess its of the latest, I’ve been trying, restarting the computer, SNAP, and it still doesn’t work, even with only that single subset node.
Are there any logs of the graph builder I can access and see what is happening?

After installing the downloaded SNAP version, you need to download and install the latest updates too.
Just select from the menu ‘Help / Check for Updates’ and then perform the suggested update.

How to access the log is mentioned in the SNAP FAQs

1 Like

Dear marpet,
I cannot believe that fixed the issue… sorry to have wasted your time, best regards!

1 Like

No problem. I’m happy to hear that it now works.

1 Like

it does! thanks again!

Hello everyone, it’s been a while.
I would like to resume this thread because I am facing an issue with Graph builder.
When I run the following commands separately, it works fine:

subset → Apply Orbit File → Thermal Noise Removal → GRD Border removal → Calibration

But when I want to use Graph builder for that, I get the error message:
[NodeId: ThermalNoiseRemoval]java.lang.NullPointerException

If I remove Thermal Noise from the list, the error moves to GRB Border Noise, and when I remove that last, Calibration gets error:
Unable to find calibration element in original product metadata

Dataset used:
S1A_IW_GRDH_1SDV_20250303T092440_20250303T092505_058138_072E64_B7A5.SAFE
S1A_IW_GRDH_1SDV_20250310T091643_20250310T091708_058240_073290_F0EB.SAFE

SNAP 11, all plugins updated, in Ubuntu with 32 RAM
Graph builder:

Subset:
POLYGON((-61.857 -38.552, -62.551 -38.552,-62.551 -39.002,-61.857 -39.002, -61.857 -38.552))

I appreciate any suggestions or comments :slight_smile:

Could you attach the XML graph with all the processing parameters?

Sure!
myGraph.xml (4.2 KB)

For the Subset operator, try to change the value of the copyMetadata parameter to true.

Hi Diana, many thanks for your msg.
It is set to true

myGraph.xml (9.7 KB)
I’m using a hp windows pc with 16 cores, 16GB RAM, 1TB , GPU 1 8GB, GPU 0 12GB…I don’t know what to do anymore or maybe my wifi strength is low and i have a deadline to meet for my project please help…will be glad if i can get a mentor for my undergrad final year project so that i could ask more on what i’m failing to understand

@EVER Could you detail your problem?

when i run the graph builder in snap it’s stalling at 67% and not changing, restarted again but it still remains at 67% the whole day

@jun_lu, could you help?

I suggest you separate your graph into two graphs as shown below. Run the first graph first, then run the second graph with the output of the first graph as input. By the way, I have removed the “TopoPhaseRemoval” operator because it can be done in the Interferogram operator by selecting “Subtract Topographic Phase”.
First graph:
image

Second graph:
image

thank you…i have passed that stage. I’m now trying to unwrap using snaphu.config file in command prompt. when i run using default parameters provided it gives a warning that tile overlap maybe small( may produce bad results), changed tile overlap and some parameters the warning is no longer there but it’s not finishing running. Earlier i had ran to completion with the warning i tried importing it’s giving: error snaphu importOp requires input products to be of the same Height dimension. Any suggestions on unwrapping using windows pc