I have been using this [code][1] in Python to build some LTSAs. Since it is now an open source code you can maybe change the algorithm to output the product you want. I was wondering if it would not be useful, since the resulting output of the LTSA is an image, converting your LTSA images into numpy arrays in Python. It might be a very naive step but depending on what you need it might be useful.


  [1]: https://github.com/tryan/LTSA/blob/master/python/ltsa.py