GPT without full SNAP installation?

@marpet, thanks for the quick response! It seems to be working, except for an issue related to the version…

Here’s what I did:

  • I copied the snap installation folder (in Program Files) to another folder (part of the forecasting framework), and adjusted the path to the newly-located gpt.exe.

  • I uninstalled SNAP using the Windows uninstaller. I confirmed that the snap installation folder and “C:\Users\USER.snap” folder were removed.

  • I ran the GPT script from the forecasting framework, and it processed without errors and produced an output NetCDF file, as expected.

However, I am now once again getting an old error when I try to use the NetCDF – the lat/lon variables in the NetCDF have not been subset, while the image data has been subset correctly. I saw this previously and solved it by updated to the latest version of SNAP at the time (7.0.3). (Write to NetCDF4-CF combined with subset produces invalid NetCDF file)

Is it possible that I have somehow reverted to an older version of SNAP when I copied/moved the “snap” folder and ran GPT from there? In the “snap” folder is a file called “VERSION” which states that it is version 7.0. However, before I copied the “snap” folder and uninstalled SNAP, I can confirm that the SNAP Desktop said I was using 7.0.3 (which had solved the NetCDF dimension issues).

Should I have copied something else, in addition to the “Program Files\snap” folder to make sure I’m using version 7.0.3?