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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file SPyC_Writer-0.1.0.tar.gz.

File metadata

  • Download URL: SPyC_Writer-0.1.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.24.0

File hashes

Hashes for SPyC_Writer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c23875f18096e0097f08c484a58fad2bfe3ec6d6fba092224e7ce88e56597613
MD5 8a9b8d8ca5342383b87c081e559f9397
BLAKE2b-256 8a917f4622e6c78fcb37159631f37655b2e522f3e9f5ce8228904e61c83ed34c

See more details on using hashes here.

File details

Details for the file SPyC_Writer-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for SPyC_Writer-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 709dd7c4918645cbc808f4041174168825e5600094f5ee3f090d64707813b61f
MD5 fcaf01defd03b09aee642d3f3935d7db
BLAKE2b-256 d980f4ca0515b2da48dec72c95aa91cec80e45a29476f443dceca47f6111d3d3

See more details on using hashes here.

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