psse2mpc

psse2mpc(rawfile_name, mpc_name, verbose, rev)

psse2mpc() - Converts a PSS/E RAW data file into a MATPOWER case struct.

MPC = PSSE2MPC(RAWFILE_NAME)
MPC = PSSE2MPC(RAWFILE_NAME, VERBOSE)
MPC = PSSE2MPC(RAWFILE_NAME, VERBOSE, REV)
MPC = PSSE2MPC(RAWFILE_NAME, MPC_NAME)
MPC = PSSE2MPC(RAWFILE_NAME, MPC_NAME, VERBOSE)
MPC = PSSE2MPC(RAWFILE_NAME, MPC_NAME, VERBOSE, REV)
[MPC, WARNINGS] = PSSE2MPC(RAWFILE_NAME, ...)

Converts a PSS/E RAW data file into a MATPOWER case struct.

Input:
    RAWFILE_NAME :  name of the PSS/E RAW file to be converted
                    (opened directly with FILEREAD)
    MPC_NAME     :  (optional) file name to use to save the resulting
                     MATPOWER case
    VERBOSE      :  1 (default) to display progress info, 0 otherwise
    REV          :  (optional) assume the input file is of this
                    PSS/E revision number, attempts to determine
                    REV from the file by default

Output(s):
    MPC      : resulting MATPOWER case struct
    WARNINGS : (optional) cell array of strings containing warning
               messages (included by default in comments of MPC_NAME).

NOTE: The data sections to be read in the PSS/E raw file includes:
      identification data; bus data; branch data; fixed shunt data;
      generator data; transformer data; switched shunt data; area data
      and hvdc line data. Other data sections are currently ignored.