Unable to Run Apply-Orbit-File from GraphProcessor

You are right that for the last months they are not available. This happens both for gpt (command line interface) and through GraphProcessor (Java code).

However, at least in my case, the issue is there even if the Orbit file exists. I can see that the URL to be retrieved works when copy-pasting it to the browser.
The problem is that running the graph through GraphProcessor does not take some settings into account in the same way gpt does. As a result, it tries to download the Orbit files to an invalid location (\S1B\2017\08) that does not exist (missing the prefix of the path).

Ah, now I saw that you have written your own java code.
What is the working directory when you run your code. It should be the snap installation folder. Actually, it depends on how you have setup your application.
I’m not sure, I haven’t tested, but I think with the following code you can provide the settings in your code and override the defaults.

// org.esa.snap.runtime.Engine
// org.esa.snap.engine_utilities.util.Settings
Settings.instance(); // just to init the auxdata settings
// org.esa.snap.runtime.Config
Preferences auxdataPreferences = Config.instance("snap.auxdata").preferences();
auxdataPreferences.put("AuxDataPath", SystemUtils.getAuxDataPath().toString());
auxdataPreferences.put("OrbitFiles.sentinel1RESOrbitPath", "YOUR_PATH");
auxdataPreferences.put("OrbitFiles.sentinel1POEOrbitPath", "YOUR_PATH");
// ... Your code here ...

awesome, thanks.

I was checking the userDir and I was guessing that all the settings were properly in place, but as I see I needed to specify the Path for the orbits independently.


was printing the value I set through VM argument


Thanks for your help

I have updated the orbit files on the step website. Now the files should be up-to-date. Regarding the extension files or any other details about the QC site, I can not help.

Hello all,
I am using SNAP 6.0 and S1Toolbox 6.0.6. When applying orbit file, it gives me an error. But the error says, it couldn’t find the orbit file January 2000 but my SAR data is from 2017 and I downloaded manually the orbit files and replaced under 2000/1 and 2017/7(the correct one) but it is still same. I am not writing my java code. But could you help me about this issue?

Maybe this and the following posts can help you:

If the dates are wrong it probably means that the S-1 product is defective (metadata issue?). You could try to download it again and see if it helps (there could be a reprocessed version).

The interesting thing is the program can find the orbit files of 20170718 but couldn’t find 20170730. It is also in the same ftp folder that I checked. It is hard to understand anyway I click don’t give error if orbit files couldn’t find so in this example program applying orbit file my master file but not slave.

Hi, I want to apply Orbitfile to my S1 image but a problem occurred during the target product initialization, which is java.lang.NullPointerException
Help me

Did you apply any other steps before this?
What product level were you using?

I’m using SENTINEL-1A GRD images for extracting flooded areas and non-flooded areas. Last year I had done this operation without any kind of error but now I cant
subsetting is The only step I did before applying orbit file

I’m confused. What is causing the error - orbit file or subsetting?

applyOrbitfile, and this is the error= java.lang.NullPointerException

the NullPointerException message does not contain the reason for the error, so we have to narrow it down.

What is the acquisition date of the image?
Can you display the downloaded image correctly?
What file format did you use for the subsetting?

Maybe you can also share the product ID of the GRD

These two are the images I gathered for flood extraction, but I can’t pass apply orbit file step Another problem is I can’t do geometric train correction because Srtm can’t be downloaded, I know I have to change the URL link to another site but I can’t find the location in snap software.
Images are flipped when I open them
I can send screenshots if u give an email address to me

please, one thing after the other :slight_smile:

The images are not flipped, they are acquired in ascending mode, the data will be adjusted after terrain correction: S1 image opens upside down

No change of URL needed, please test the SRTM 1Sec (Auto Download) instead and make sure that SNAP can pass your firewall, please see here: S-1 Thermal Noise Removal

Again, what output format did you select for the subset? Does the image look alright after subsetting?

Unfortunately, even when the firewall is off SRTM 1Sec cant be downloaded, my subset format is .dim
yes the image is good but I can’t apply the orbit file at all I need to do this

Please try to skip the Orbit File step and proceed for a test. If the next steps fail as well, there might be a different reason. But the fact that both Orbit File and Terrain Correction fail indicate that SNAP cannot access online resources from your computer.

What should I do? how should I access online resources? I even set my firewall off but it wasn’t the reason for this problems, I love working with Snap but these errors are annoying
Another problem is after mosaicing (two other Sentinel-1 images) and subsetting I can’t do any other functions on images because of this error:( Input should be a Sentinel-1 product), but they are Sentinel-1 products.

Thanks for your answers

then this is my only guess what might be wrong, but you haven’t answered it yet.