Skip to main content

A program to output data in the Thermo Galactic SPC file format.

Project description

SPyC_Writer

A writer for the Thermo Galactic SPC file format, written in Python. Only outside library used is numpy. The remainder of libraries used all come from the python standard library. Other outside libraries are used for testing, but the core module does not use them.

The module has been cross validated using https://github.com/rohanisaac/spc and spectragryph by parsing the output file and verifying it matches what is expected.

Validation has been done on Y, XY, XYYY, and XYXYXY file types. All instances were successfully parsed. Wiley's Know It All was used also for validating and it successfully parsed all formats except XYXYXY, which it states is invalid.

Tests

Tests are written using pytest and verified using https://github.com/rohanisaac/spc. This package appears to not have been updated in a while and contains a few errors, but it provides a straight forward interface in python for verifying parsing.

To-Do

  • Widen support for other SPC aspects that are currently listed as unsupported
    • Allow old file format
    • Provide option for not writing as IEEE float
  • Expand tests
  • Expand input validation and provide informative error messages for wrong input

References

The Thermo Galactic spc-sdk code:

https://github.com/bz-dev/spc-sdk

The newer format specification document:

https://www.yumpu.com/en/document/read/40416248/a-brief-guide-to-spc-file-format-and-using-gspcio

The older format specification document (has greater detail in parts than newer doc):

https://ensembles-eu.metoffice.gov.uk/met-res/aries/technical/GSPC_UDF.PDF

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SPyC_Writer-0.1.0.tar.gz (15.2 kB view hashes)

Uploaded Source

Built Distribution

SPyC_Writer-0.1.0-py2.py3-none-any.whl (15.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page