How to check a toolbox / operator version when running GPT?

Hello,

When running GPT, I know it is possible to know SNAP main version running -–diag, which gives something like that:

❯ gpt --diag
INFO: org.esa.snap.core.gpf.operators.tooladapter.ToolAdapterIO: Initializing external tool adapters
INFO: org.esa.snap.core.util.EngineVersionCheckActivator: Please check regularly for new updates for the best SNAP experience.
SNAP Release version 13.0.0
SNAP home: C:\Program Files\esa-snap\bin\/..
SNAP debug: null
SNAP log level: null
Java home: c:\program files\esa-snap\jre
Java version: 21.0.6
Processors: 16
Max memory: 44.0 GB
Cache size: 512.0 MB
Tile parallelism: 16
Tile size: 512 x 512 pixels

To configure your gpt memory usage:
Edit snap/bin/gpt.vmoptions

To configure your gpt cache size and parallelism:
Edit .snap/etc/snap.properties or gpt -c ${cachesize-in-GB}G -q ${parallelism} 

But, is it possible to check whether the toolboxes (or at least the operators) have the latest version? Is there a --diag-like option somewhere?

Best Regards,

Rémi

You can run
snap64 --nosplash --nogui --modules --update-all
or on Linux
snap --nosplash --nogui --modules --update-all
See: Update SNAP from the command line - SNAP - Confluence
This gives you a list of the update status of each module. But there is no command which tells you “You are up to date”

I don’t want to update SNAP toolboxes (what if the latest version is buggy ?), I want to know what version I am using :sweat_smile:

But on the link you sent, there is the line: snap --nosplash --nogui --modules --list --refreshwhich should do want I want

Oh, that’s exactly the command I actually wanted to point out to you :grin:

1 Like