First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

Export the PV analysis output in an Excel file

asked Apr 19 '2

Moji gravatar image

updated Apr 19 '2

I have the result for a PV analysis that contains about 14000 contingency cases. When I want to export the result in an excel file using either in Export data tool in PSSe or Python automated, I only get the result for up to 360 contingencies analysis. Is there any limitation to exporting the data? Does anybody know how I can export the whole result for all contingencies?

Comments

I guess that it is because of the limitation of writing data into Excel which maybe support writing data up to a specific number of rows/cells. Do you all agree with that?

Moji gravatar imageMoji (Apr 20 '2)

2 answers

Sort by » oldest newest most voted
0

answered Apr 22 '2

Moji gravatar image

Here is the part of python for excel output:

pvfile = r"resultdouble.pv" string = ['s','v','m','g','l','b','i'] xlsfile = 'result.xls' sheet = '' overwritesheet = True pssexcel.pv(pvfile,string,colabel=colabelnew,xlsfile=xlsfile,sheet=sheet,overwritesheet=overwritesheet)

link

Comments

change extension to xlsx and retry.

jconto gravatar imagejconto (Apr 22 '2)
0

answered Apr 21 '2

jconto gravatar image

updated Apr 21 '2

can you show the python script in use?

The pssexcel module is able to slice the PV analysis results contained in a *.pv file by setting a list of contingencies whose results will be exported. If the hard limit is 360, a python loop that keep slicing the list of contingencies in continuous sub-groups of 360 and saving the sliced-results to new excel files would do the trick.

Still, results of only 360 contingencies as max export limit seems very small. Excel limits are large, it can be found by searching the internet for "Excel specifications and limits"

link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Apr 19 '2

Seen: 369 times

Last updated: Apr 22 '22