astrorama / SourceXtractorPlusPlus

SourceXtractor++, the next generation SExtractor
https://astrorama.github.io/SourceXtractorPlusPlus/
GNU Lesser General Public License v3.0
72 stars 9 forks source link

calling sx from python? #486

Closed plaszczy closed 2 years ago

plaszczy commented 2 years ago

hi devs, is there a way I could call sourcextractor++ directly from python? Actually I am only interested in the background estimate part, so that's even less. Is there way to call a function to do it? thanks! stephane

mkuemmel commented 2 years ago

No, there is no python shortcut or direct python function call.

The primary language is C++, all python is interpreted via C++, so even in the internal mechanics of SE++ there are no high level python subroutines.

Of course you can use subprocess to build and execute SE++ from within python.

plaszczy commented 2 years ago

OK thanks