Import .pan file

  • info@efigen.com.co
  • Topic Author
More
04 Apr 2021 13:42 #9423 by info@efigen.com.co
Import .pan file was created by info@efigen.com.co
Hello, 

Can you share us your link for import a .pan file (photovoltaic solar module) to be used on SAN app. (MacOS)

Please Log in or Create an account to join the conversation.

  • pgilman
More
05 Apr 2021 16:05 #9428 by pgilman
Replied by pgilman on topic Import .pan file
Hi Efigen,

You can use the" PVsyst OND - PAN to SAM" macro to convert a .pan file to data for SAM:

1. Create or open a Detailed PV case in SAM.

2. Click Macros under the Simulate button.

3. Choose the macro from the list and click Run macro at the top of the SAM window.

Best regards,
Paul.

Please Log in or Create an account to join the conversation.

  • lukereed
More
11 Dec 2024 08:21 #13673 by lukereed
Replied by lukereed on topic Import .pan file
This functionality has been very helpful within SAM. Is there an equivalent exposure within pysam?

Thanks,
Luke

Please Log in or Create an account to join the conversation.

  • pgilman
More
11 Dec 2024 10:11 #13675 by pgilman
Replied by pgilman on topic Import .pan file
Hi Luke,

PySAM does not have built-in tools for reading module parameters from PVsyst .pan files.

You could write your own Python script based on SAM's macro (which is written in the LK scripting language ): github.com/NREL/SAM/blob/develop/deploy/runtime/macros/Flat%20Plate%20PV/PVsyst%20OND%20-%20PAN%20to%20SAM.lk

If you do that, feel free to contact me if you run into any problems. You might also consider making a code contribution to the PySAM project by adding to the PySAM tools collection: github.com/NREL/pysam/tree/main/files

Best regards,
Paul.

Please Log in or Create an account to join the conversation.

  • lukereed
More
11 Dec 2024 11:15 #13678 by lukereed
Replied by lukereed on topic Import .pan file
Hi Paul,

Appreciate the prompt response and for pointing me in the direction of the underlying code for the macro. If I do create a python script to parse PAN files I'll certainly add it as a code contribution to the PySAM project.

Cheers,
Luke

Please Log in or Create an account to join the conversation.

Moderators: pgilman
Powered by Kunena Forum