---
title: Advanced Waveform Analysis Using Python
description: Read how to use PMI's Python to script, graph and analyze raw PQ data.
image: https://library.powermonitors.com/hubfs/White_Papers/White%20Paper%20Header%20Images/Advanced%20Waveform%20Analysis%20Using%20Python.png
---

[![PMI\_Logo\_White\_Slogan](https://library.powermonitors.com/hs-fs/hubfs/Branding%20-%20Logos%20and%20Designs/PMI_Logo_White_Slogan.png?width=655&height=175&name=PMI_Logo_White_Slogan.png "PMI_Logo_White_Slogan")](https://powermonitors.com)

[![PMI Logo: Tools you Need. People you Trust.](https://library.powermonitors.com/hubfs/PMI_Website/logo.svg "PMI Logo: Tools you Need. People you Trust.")](http://powermonitors.com)

[![PMI Logo: Tools you Need. People you Trust.](https://library.powermonitors.com/hubfs/PMI_Website/logo.svg "PMI Logo: Tools you Need. People you Trust.")](http://powermonitors.com)

This is a search field with an auto-suggest feature attached.

- There are no suggestions because the search field is empty.

- [Home](https://powermonitors.com)
- [Products](https://powermonitors.com/products)
- Library 
    - Videos 
          - [All](https://powermonitors.com/videos/)
          - [Bolt Quality Tests](https://powermonitors.com/videos/?video_search=&video_topic=bolt-quality-tests)
          - [Promotional Videos](https://powermonitors.com/videos/?video_search=&video_topic=promotional-videos)
          - [Support Videos](https://powermonitors.com/videos/?video_search=&video_topic=support)
          - [Power Quality Decoded](https://powermonitors.vids.io/tags/1f9bd9b6181b90/ask-a-pro)
    - White Papers 
          - [All](https://library.powermonitors.com)
          - [All](https://powermonitors.com/whitepapers/)
          - [Artificial Intelligence](https://powermonitors.com/whitepapers/?whitepaper_search=Merlin&whitepaper_topic=)
          - [Case Studies](https://powermonitors.com/whitepapers/?whitepaper_topic=case-studies)
          - Communications 
                  - [All Communications](https://powermonitors.com/whitepapers/?whitepaper_topic=communications)
                  - [Cellular Communications](https://powermonitors.com/whitepapers/?whitepaper_topic=cellular-communications)
                  - [General Communications](https://powermonitors.com/whitepapers/?whitepaper_topic=general-communications)
          - [Distributed Generation](https://powermonitors.com/whitepapers/?whitepaper_topic=distributed-generation)
          - Products 
                  - [All Products](https://powermonitors.com/whitepapers/?whitepaper_topic=products)
                  - [Boomerang](https://powermonitors.com/whitepapers/?whitepaper_topic=boomerang)
                  - [Boomerang SCADA](https://powermonitors.com/whitepapers/?whitepaper_search=Boomerang+Scada&whitepaper_topic=)
                  - [Box Recorder](https://powermonitors.com/whitepapers/?whitepaper_topic=box-recorder)
                  - [Canvass](https://powermonitors.com/whitepapers/?whitepaper_topic=canvass)
                  - [Eagle](https://powermonitors.com/whitepapers/?whitepaper_topic=eagle)
                  - [Flex CT](https://powermonitors.com/whitepapers/?whitepaper_topic=flex-ct)
                  - [Guardian](https://powermonitors.com/whitepapers/?whitepaper_topic=guardian)
                  - [Merlin™](https://powermonitors.com/whitepapers/?whitepaper_search=Merlin&whitepaper_topic=)
                  - [Meter Sockets](https://powermonitors.com/whitepapers/?whitepaper_topic=meter-sockets)
                  - [PQ Canvass](https://powermonitors.com/whitepapers/?whitepaper_topic=pq-canvass)
                  - [ProVision](https://powermonitors.com/whitepapers/?whitepaper_topic=provision)
                  - [Revolution](https://powermonitors.com/whitepapers/?whitepaper_topic=revolution)
                  - [TLAR](https://powermonitors.com/whitepapers/?whitepaper_topic=tlar)
                  - [Using PMI Recorders](https://powermonitors.com/whitepapers/?whitepaper_topic=using-pmi-recorders)
          - [Harmonics](https://powermonitors.com/whitepapers/?whitepaper_topic=harmonics)
          - [IEEE Standards](https://powermonitors.com/whitepapers/?whitepaper_topic=ieee-standards)
          - Power Quality 
                  - [All Power Quality](https://powermonitors.com/whitepapers/?whitepaper_topic=power-quality)
                  - [Analyzing Waveforms](https://powermonitors.com/whitepapers/?whitepaper_topic=analyzing-waveforms)
                  - [Flicker](https://powermonitors.com/whitepapers/?whitepaper_topic=flicker)
                  - [PQ Data Analysis](https://powermonitors.com/whitepapers/?whitepaper_topic=pq-data-analysis)
                  - [PQ Theory](https://powermonitors.com/whitepapers/?whitepaper_topic=pq-theory)
          - Voltage 
                  - [All Voltage](https://powermonitors.com/whitepapers/?whitepaper_topic=voltage)
                  - [CVR](https://powermonitors.com/whitepapers/?whitepaper_topic=cvr)
                  - [Voltage Sag](https://powermonitors.com/whitepapers/?whitepaper_topic=voltage-sag)
                  - [Voltage Unbalance](https://powermonitors.com/whitepapers/?whitepaper_topic=voltage-unbalance)
- Training 
    - [All](https://info.powermonitors.com/training)
    - [PDH Eligible Classes](https://powermonitors.com/product-category/classes/)
    - [On-Site Training](https://powermonitors.com/on-site-training/)
    - [Online Webinars](https://info.powermonitors.com/no-cost-class-schedule)
- [Support](https://powermonitors.com/support/)
- About 
    - [About Us](https://powermonitors.com/about-pmi/)
    - [Contact](https://powermonitors.com/contact/)
    - [Join Our Team!](https://info.powermonitors.com/join-pmi)
    - [Receive our Newsletter](https://info.powermonitors.com/email-subscribe-page)
    - [PQ Resources](https://info.powermonitors.com/power-quality-resources)
    - [Power Quality Solutions](https://powermonitors.com/power-quality-solutions/)
    - [Who We Serve](https://powermonitors.com/sales-representatives/)
- [Account](https://powermonitors.com/account/)

This is a search field with an auto-suggest feature attached.

- There are no suggestions because the search field is empty.

![PMI-Logo-Phone-Site-2023-900px](https://library.powermonitors.com/hs-fs/hubfs/PMI-Logo-Phone-Site-2023-900px.png?width=113&name=PMI-Logo-Phone-Site-2023-900px.png "PMI-Logo-Phone-Site-2023-900px")

# Advanced Waveform Analysis Using Python

   |  

,

## **Unlocking Deeper Power Quality Insights with Python-Based Waveform Analysis**

This white paper demonstrates how advanced waveform analysis can be achieved by exporting raw power quality (PQ) data from PMI's ProVision software and leveraging Python with scientific libraries like NumPy and Matplotlib. It details the process of extracting, processing, and visualizing waveform data, including performing FFT and calculating Total Harmonic Distortion (THD), using provided scripts and libraries compatible with multiple operating systems. The approach enables more granular and customized PQ investigations beyond standard software capabilities.  
  
**Key topics include:**  
\- General Setup and Necessary Files  
\- Analyzing the Script  
\- Selecting a Cycle and Calculating the FFT  
\- Total Harmonic Distortion: Calculating the THD vs the Fundamental  
\- Graphing the Results  
\- Generated Graph

**Why utilities should care:**  
Enhanced waveform analysis using Python empowers engineers to identify subtle power quality issues, customize analytics, and visualize harmonics and distortion, leading to improved diagnostics, system reliability, and more informed decision-making for grid operations.

You may also enjoy...

 

- <https://www.facebook.com/sharer/sharer.php?u=https://library.powermonitors.com/advanced-waveform-analysis-using-python&title=Advanced%20Waveform%20Analysis%20Using%20Python&picture=https://446633.fs1.hubspotusercontent-na1.net/hubfs/446633/White_Papers/White%20Paper%20Header%20Images/Advanced%20Waveform%20Analysis%20Using%20Python.png&description=Read%20how%20to%20use%20PMI's%20Python%20to%20script,%20graph%20and%20analyze%20raw%20PQ%20data.>
- <https://twitter.com/share?source=https://library.powermonitors.com/advanced-waveform-analysis-using-python&text=Advanced%20Waveform%20Analysis%20Using%20Python%20-%20https://library.powermonitors.com/advanced-waveform-analysis-using-python>
- <http://www.linkedin.com/shareArticle?mini=true&url=https://library.powermonitors.com/advanced-waveform-analysis-using-python&title=Advanced%20Waveform%20Analysis%20Using%20Python&summary=Read%20how%20to%20use%20PMI's%20Python%20to%20script,%20graph%20and%20analyze%20raw%20PQ%20data.>
- <http://www.printfriendly.com/print?url=https://library.powermonitors.com/advanced-waveform-analysis-using-python>

## Speakers

<https://library.powermonitors.com/advanced-waveform-analysis-using-python#inline-content-1speakers>

<https://library.powermonitors.com/advanced-waveform-analysis-using-python#inline-content-1speakers>

### [Alvin Rogers](https://library.powermonitors.com/advanced-waveform-analysis-using-python#inline-content-1speakers)[Follow me on LinkedIn](https://www.linkedin.com/apex-alvinrogers)

Director of Sales

Omnicorp

Alvin Rogers

Director of Sales

Omnicorp

 About Alvin Rogers

Alvin Rogers is a highly accomplished and sought-after speaker, renowned for their expertise and captivating stage presence. With a diverse background in \[relevant field or industry\], they bring a wealth of knowledge and experience to every speaking engagement. Their dynamic and engaging style seamlessly combines powerful storytelling with actionable insights, leaving audiences inspired and equipped with practical strategies for success. Alvin has delivered impactful keynote addresses at prestigious conferences and corporate events worldwide, consistently receiving rave reviews for their ability to connect with and energize audiences. Whether addressing topics such as \[specific areas of expertise\], leadership, or innovation, Alvin is dedicated to empowering individuals and organizations to reach their full potential.

[LinkedIn](https://www.linkedin.com/apex-alvinrogers) [Facebook](https://www.facebook.com/apex-alvinrogers) [Instagram](https://www.instagram.com/apex-alvinrogers) [Twitter](https://www.twitter.com/apex-alvinrogers)

<https://library.powermonitors.com/advanced-waveform-analysis-using-python#inline-content-2speakers>

<https://library.powermonitors.com/advanced-waveform-analysis-using-python#inline-content-2speakers>

### [Lisa Smith](https://library.powermonitors.com/advanced-waveform-analysis-using-python#inline-content-2speakers)[Follow me on LinkedIn](https://www.linkedin.com/apex-lisasmith)

Creative Director

Megacorp

Lisa Smith

Creative Director

Megacorp

 About Lisa Smith

Lisa Smith is a highly accomplished and sought-after speaker, renowned for their expertise and captivating stage presence. With a diverse background in \[relevant field or industry\], they bring a wealth of knowledge and experience to every speaking engagement. Their dynamic and engaging style seamlessly combines powerful storytelling with actionable insights, leaving audiences inspired and equipped with practical strategies for success. Lisa has delivered impactful keynote addresses at prestigious conferences and corporate events worldwide, consistently receiving rave reviews for their ability to connect with and energize audiences. Whether addressing topics such as \[specific areas of expertise\], leadership, or innovation, Lisa is dedicated to empowering individuals and organizations to reach their full potential.

[LinkedIn](https://www.linkedin.com/apex-lisasmith) [Facebook](https://www.facebook.com/apex-lisasmith) [Instagram](https://www.instagram.com/apex-lisasmith) [Twitter](https://www.twitter.com/apex-lisasmith)

<https://library.powermonitors.com/advanced-waveform-analysis-using-python#inline-content-3speakers>

<https://library.powermonitors.com/advanced-waveform-analysis-using-python#inline-content-3speakers>

### [James McGiven](https://library.powermonitors.com/advanced-waveform-analysis-using-python#inline-content-3speakers)[Follow me on LinkedIn](https://www.linkedin.com/apex-jamesmcgiven)

President

Minicorp

James McGiven

President

Minicorp

 About James McGiven

James McGiven is a highly accomplished and sought-after speaker, renowned for their expertise and captivating stage presence. With a diverse background in \[relevant field or industry\], they bring a wealth of knowledge and experience to every speaking engagement. Their dynamic and engaging style seamlessly combines powerful storytelling with actionable insights, leaving audiences inspired and equipped with practical strategies for success. James has delivered impactful keynote addresses at prestigious conferences and corporate events worldwide, consistently receiving rave reviews for their ability to connect with and energize audiences. Whether addressing topics such as \[specific areas of expertise\], leadership, or innovation, James is dedicated to empowering individuals and organizations to reach their full potential.

[LinkedIn](https://www.linkedin.com/apex-jamesmcgiven) [Facebook](https://www.facebook.com/apex-jamesmcgiven) [Instagram](https://www.instagram.com/apex-jamesmcgiven) [Twitter](https://www.twitter.com/apex-jamesmcgiven)

Power Monitors, Inc. is an industry-leading product design and manufacturing firm based in Mt. Crawford, Virginia. PMI strives to solve power quality problems by listening to our customers and working with them to design and manufacture products. Total customer satisfaction is the primary goal of all PMI staff. Please browse our site or call us to learn more about PMI and how we can help meet your power monitoring needs.

 

800 N Main St Mt Crawford, VA 22841 | Toll Free 800.296.4120 | Fax 540.432.9430 | © 2025 Power Monitors, Inc.

###### Follow Us

[Follow us on Facebook](https://www.facebook.com/powermonitors/) [Follow us on LinkedIn](https://www.linkedin.com/company/power-monitors) [Follow us on Twitter](https://twitter.com/powermonitors) [Follow us on Instagram](https://info.powermonitors.com/email-subscribe-page)

- [Support](https://powermonitors.com/support)
- [Library](https://library.powermonitors.com)
- [Training](https://info.powermonitors.com/training)
- [Contact](https://powermonitors.com/contact/)

- [Products](https://powermonitors.com/products/)
- [- Bolt](https://powermonitors.com/product/bolt/)
- [- Revolution](https://powermonitors.com/product/revolution/)
- [- Seeker](https://powermonitors.com/product/seeker/)
- [- Guardian](https://powermonitors.com/product/guardian/)

- [Careers](https://info.powermonitors.com/join-pmi)
- [Terms and Conditions](https://powermonitors.com/terms-and-conditions/)