psrutils

Crates.iopsrutils
lib.rspsrutils
version0.2.7
created_at2025-03-18 09:54:39.71352+00
updated_at2025-09-05 08:58:58.788594+00
descriptionA crate with a few utilities to facilitate pulsar science projects in rust.
homepage
repositoryhttps://github.com/SGullin/psrutils
max_upload_size
id1596418
size69,035
Samuel Gullin (SGullin)

documentation

README

psrutils

GitHub license Crates.io Version GitHub docs docs

A small crate for use in pulsar timing projects.

Parfiles

The parfile module takes care of reading, representing, and writing .par files. The struct Parfile is available with pub fields for easy editing, and methods for reading from or writing to buffer objects.

Timfiles

The timfile module contains a method for reading .tim files, yielding a Vec<TOAInfo>. This recursively reads any other files included with the INCLUDE keyword.

Changelog

v 0.2.4

  • Added Mjd struct.
  • Improved documentation, flow, and other small tidbits.

v 0.2.3

  • Added TOAInfo::from_line_tmepo2 to read from a line, instead of needing a whole .tim-file.

v 0.2.2

  • Added module data_types, and J2000 coordinate types within.
  • Fixed visibility issues.
  • Added more documentation.

v 0.2.1

  • Added .tim parser (currently only in tempo2-mode).
  • Changed hierarchy, moving error to be crate-global.

v 0.1.0

  • Added .par parser.

License

psrutils is distributed under the terms of both the MIT License and the Apache License (2.0).

Commit count: 38

cargo fmt