Hi AB,
The best approach for this might be to translate the "PVsyst OND - PAN to SAM.lk" script from LK into Python. LK is a C-like scripting language, so someone familar with both C/C++ and Python should be able to do a translation.
To see the macro's LK script in SAM, click
View code on the Macro page. You could also modify the LK script to do a batch conversion.
See the "Macros and Scripting" Help topic for more about LK and macros, and for steps for running a macro from the command line:
samrepo.nrelcloud.org/help/macros.htm
There are a couple of SAM-related Python scripts in the SAM GitHub repository (
github.com/NREL/SAM/tree/patch/samples/Python%20Scripts). If anyone does write a Python script for this and wants to share it, we would be happy to post it there.
Best regards,
Paul.
p.s. There are separate Python samples for PySAM here:
github.com/NREL/pysam/tree/main/Examples.