How to Open a PQDIF (.pqd) File

If a power quality meter has handed you a .pqd file, you are holding PQDIF: the Power Quality Data Interchange Format defined in IEEE Std 1159.3, now in its 2025 edition. It is a compact binary format, so double-clicking it gets you nowhere. Here are the practical ways to open one, and a worked example using a free converter.

What is inside a PQDIF file

A PQDIF file is a sequence of records. A container record identifies the file. A data source record describes the instrument and its channels. An optional monitor settings record carries details such as nominal values and transducer (CT/PT) ratios. Then come one or more observation records, which hold the measurements.

Each observation contains channels (phase A voltage, neutral current and so on), and each channel holds series: time stamps plus values, minimums, maximums or averages. One file can hold a single triggered waveform capture or a full week of 10-minute logs, harmonics, flicker and events.

Three ways to open one

  • View it. PQDiffractor is a free PQDIF and COMTRADE viewer from Powerside (originally developed by Electrotek Concepts). It lets you browse the records, plot channels and export observations. If you only need to look at a file, start here.
  • Program against it. The Gemstone PQDIF library from the Grid Protection Alliance (.NET, MIT licence) and IEEE’s own open-source PQDIFNet are the reference code for developers building their own software.
  • Convert it. pqdif2csv is our free, open-source converter (MIT licence). It turns each observation into CSV, or an Excel workbook, so the numbers can go straight into a spreadsheet, Python, R or MATLAB. It suits batches of files, or cases where you want the data rather than a picture of it.

Worked example: IEEE’s example fault file

The example below uses example-fault.pqd, one of the IEEE PQDIF example files, available in the open-source pqdif-reader project. Every output shown is from a real run.

1. Install. You need Python 3.9 or later. One command installs the tool and its only dependency, NumPy:

pip install git+https://github.com/lis-analytics/pqdif2csv

2. Look before you convert. The --summary option lists the observations, channels and series without writing anything:

pqdif2csv example-fault.pqd --summary

This file holds one observation, “Event 9”, starting 12 January 2007 at 14:48:08 UTC. It has waveform channels for voltage on phases A, B and C, current on A, B, C and neutral, and matching RMS channels.

3. Convert.

pqdif2csv example-fault.pqd

1 observations, 0 read errors, 0 checksum failures
  obs001_Event_9.csv: 256 rows x 7 series
  obs001_Event_9_axis2.csv: 31 rows x 7 series
Output: example-fault_csv

Two CSV files come out because the waveform samples and the RMS values are recorded on different time axes. The tool keeps them separate rather than forcing them onto one. Columns are named from the file’s own metadata, for example V Waveform A [AN] INSTANTANEOUS VAL (VOLTS): channel, phase, characteristic, value type and units.

The folder also holds manifest.json, which records the SHA-256 of the input file, the reader version, the conventions used and anything that was not exported, with the reason. Add --layout long for one row per value, or --excel event.xlsx for a workbook.

Three-phase voltage and current waveforms from the IEEE example fault file, plotted from the CSV that pqdif2csv produced. After the trigger, phase B and C voltage peaks fall from about 19 kV to about 10 kV while their currents rise to about 5 kA. At about 155 ms phase A follows; after about 215 ms all three return to their pre-trigger levels.

The chart above is plotted straight from obs001_Event_9.csv. Larger files work the same way: a week-long export from a 10 kV utility meter, also public, converts to 36 CSV files covering RMS voltage and current, unbalance, frequency, flicker, THD, individual harmonics and sag and swell events, with the handful of series it could not export listed in the manifest.

Before you trust the numbers

  • Time. PQDIF stores time as days counted from 30 December 1899; the converter writes it out as ISO dates labelled UTC. The file can only record what the meter’s clock said, so confirm how the meter’s clock and time zone were set.
  • Scaling and transducer ratios. Scale factors and CT/PT ratios are applied only when the file says they should be, and the output records whether a ratio was applied to each channel. Check these against the site’s actual CT and PT ratios.
  • Nothing silent. Read errors, checksum failures and any series that could not be exported are listed in the manifest. Read it.

A converter reads; it does not assess

Getting the numbers out is step one. Comparing harmonics with IEEE 519 or flicker with IEEE 1453 needs the right statistics over the right period, the right base current and the right limits for the site. That is analysis, and the answer depends on all of it.

LIS Analytics reads recorded power quality data for facility owners and the engineering firms that commission their sites, and reports what was measured. Determinations stay with the engineer of record and the utility. If you have PQDIF files from a site and want them read, get in touch.

Request a Forensic Analysis · Get pqdif2csv on GitHub · mica@lisanalytics.net · (610) 835-6556

Sources: IEEE Std 1159.3-2025, IEEE Recommended Practice for Power Quality Data Interchange Format (PQDIF), IEEE SA; PQDiffractor (Powerside); Gemstone PQDIF (Grid Protection Alliance); PQDIFNet (IEEE SA OPEN); example file from pqdif-reader (Apache-2.0).

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *


Patent Pending — USPTO Application 64/027,496 · Copyright Pending — Case 1-15137906721 · SAM.gov Active — UEI: H5F3VN9LME86 · CAGE: 1Z957 · WOSB Certified

MCT Global Enterprises LLC · mica@lisanalytics.net · lisanalytics.net | Privacy Policy • Terms of Service • Insights • Tools • Services

(610) 835-6556