Giter VIP home page Giter VIP logo

Comments (5)

jonathom avatar jonathom commented on July 17, 2024

I realize now that the suggested file is probably only about the pyroSAR configuration, and not the SNAP configuration.. So, ignoring my misdirected attempt above my question still stands: Is it possible to set a SNAP parameter (e.g. in file snap/etc/snap.properties) via pyroSAR?

from pyrosar.

jonathom avatar jonathom commented on July 17, 2024

gpt_args can be used for this, i.e. gpt(..., gpt_args = ['snap.userdir=/my/path'].

from pyrosar.

johntruckenbrodt avatar johntruckenbrodt commented on July 17, 2024

Hi @jonathom. At the moment pyroSAR is not making best use of these SNAP configuration files. True, this Examine functionality handles pyroSAR-specific configuration files and the ones from SNAP are mostly ignored. It would a larger effort to use and modify them. Good that you have discovered the gpt_args parameter.

from pyrosar.

jonathom avatar jonathom commented on July 17, 2024

Thanks @johntruckenbrodt, I see now that it isn't necessary to change the config files when I can really pass all needed params via the call. Just needed to figure out how ;) So, a note for future reference:

  • here's a list of SNAP parameters that can be set
  • gpt tells you to append these parameters with -D of you want to set them so this is what you need to do for gpt_args as well: "-D<name>=<value> Defines a system property for this invocation." (from gpt command help)
  • if you wanna set args that concers the java vm, i.e. parameters from gpt.properties, e.g. -Xmx, append -J, see here
  • all in all, this is the gpt call I ended up with: gpt(<out_filename>, groups = groups, gpt_args = ['-Dsnap.userdir=.', '-J-Xmx4G'])

from pyrosar.

johntruckenbrodt avatar johntruckenbrodt commented on July 17, 2024

awesome, thanks @jonathom

from pyrosar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.