Ask Your Question
1

Exporting branch R,X values to Excel

asked 2015-01-29 20:23:08 -0500

kdlewis95 gravatar image

updated 2015-01-29 20:25:53 -0500

I have not been able to figure out how to extract the R & X values from the complex array created by using psspy.abrncplx and exporting the values to excel.

The snippet from the script:


ierr, branchrx = psspy.abrncplx(-1, string='RX')

xl.set_range(2, 'd', zip(*branchrx))


the script fails due to the zip function being unable to process the complex array.

Any help would be appreciated.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2019-05-09 05:41:22 -0500

drsgao gravatar image

Just to expand rimux's answer a bit. The RX in PSSE is in complex format, that's why you need to get the real and imag and that's why the function has "cplx" in it. Again, read the API manual, Chapter 8 I think.

edit flag offensive delete link more
0

answered 2015-02-06 04:39:48 -0500

rimux gravatar image

updated 2015-02-06 04:40:12 -0500

R = branchrx.real
X = branchrx.imag
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Stats

Asked: 2015-01-29 20:23:08 -0500

Seen: 691 times

Last updated: May 09 '19