Convert transformer impedance input data
I have two different PSSE files for the same system. In one file the all Impedance I/O codes are 1, while in the other some are 3. Both files are in PSSE 31-format, but one if saved as 31, from PSSE 32, while the other has always been PSSE 31. There might be small differences in the values as one of the files haven't been updated in a year. Also, the two files use somewhat different voltage levels (132/11 and 125/11.5)
How can I convert the values from I/O code 3 to I/O code 3?
My MATLAB code for converting the values gives the results. Note that the X-values are pretty close, while the R-value is off by a factor of 10.
########### Comparison ##############
PSSE 31 PSSE 31*
Z base : 64.082094 61.785823
R [ohm] : 1.951715 0.198413
X [ohm] : 64.052366 61.785504
I [Amps]: 701.111237 756.000000
The code I used to achieve these values can be found on https://ideone.com/9FW9Ud (along with all relevant data).
Thanks for taking the time to read my question!