Giter Site home page Giter Site logo

comtrade's Introduction

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文件

comtrade's People

Contributors

sdghpg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

comtrade's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.