Skip to content

wjffsx/comtrade

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

comtrade

包含comtrade解析模块和comtrade解析工具。

依赖

基于python3开发

依赖模块:

  • matplotlib
  • numpy

安装依赖:

pip3 install matplotlib numpy

文件说明

  • comtrade: comtrade文件解析工具,是命令行工具,传入参数为comtrade的cfg文件或者dat文件;
  • comtrade.py: comtrade解析模块,包含解析comtrade文件需要的类,使用方法参考 comtrade 的内容;

命令行工具功能

可以转换(并显示)comtrade波形文件,支持转换指定目录下的多个波形文件。帮助信息:

➜  wave-guangxi comtrade help

comtrade can convert comtrade files to pic file or csv data file. The tool can also show the wave figure. Addionally, It can convert multiple files in the dir. And it can diff two or more files to show data property!

Usage:
  comtrade subcommand [options [args]] [file/dir]

subcommand:
  convert: convert the comtrade data to pic file or csv file;
  diff: diff two or more wave data with speciied mode;
  help: print comtrade help info or print specified sub-command help info;
  show: show a wave figure for specify comtrade cfg file or dat file;

  get help info of sub command:
    comtrade help [subcommand]

comtrade文件解析

  • 解析二进制的dat文件
  • 解析文本的dat文件

需要实现

  • 支持导出波形矢量图或位图文件
  • 支持转换为csv文件
  • 支持显示波形窗口
  • 支持转换指定目录下的comtrade文件
  • 支持指定绘制数据类型: analog 或 digital 或 all
  • 支持指定转换后文件的输出目录
  • 支持解析ascii格式的dat文件

About

用于解析配电网行业中comtrade录波文件的工具和库

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%