readCDF function for IEEE Common Data Format (CDF) files

readCDF function inputs a filename of an IEEE Common Data Format CDF .txt file and outputs Bus Data, Branch Data, #Buses, #Branches.
13 Downloads
Updated 28 Jan 2023
function [busData, branchData, N, numBranch] = readCDF(filename, options)
Mandatory Inputs:
  1. filename: class::string. Example: "ieee14cdf.txt" or "rawData/ieee9cdf.txt".
Optional Inputs:
[OPTIONAL] reducedBranchColumnsCDFReading: class::boolean. true by default, it is enabled to shave off some of the latter columns of the CDF file as sometimes there are inconsistencies between different CDF files, plus the shaved input columns may NOT be useful to the user, at least for standard Power System Analysis.
[OPTIONAL] verboseCDFReading: class::boolean. false by default. Will output a lot of comments as it reads different parts of the CDF file.
Outputs:
  1. busData: class::table. Outputs an Nx18 MATLAB table with each row containing the corresponding data for each bus. All columns are neatly labelled like 'bus, busName, loadFlowArea, ...'.
  2. branchData: class:table. Outputs a numBranchx15 MATLAB table with each row containing data relevant to each branch of the bus.
  3. N: class:int. Outputs a single integer equal to the number of buses in the power system.
  4. numBranch: class:int. Outputs a single integer equal to the number of branches in the power system.
Built as part of course EE 521 Analysis of Power Systems at Washington State University.

Cite As

Aryan Ritwajeet Jha (2024). readCDF function for IEEE Common Data Format (CDF) files (https://github.com/Realife-Brahmin/readCDF/releases/tag/v1.0.2), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2022a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.2

See release notes for this release on GitHub: https://github.com/Realife-Brahmin/readCDF/releases/tag/v1.0.2

1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.