#astronomy #pulsars #psrutils

psrutils

A crate with a few utilities to facilitate pulsar science projects in rust

4 releases

Uses new Rust 2024

0.2.2 Mar 21, 2025
0.2.1 Mar 19, 2025
0.2.0 Mar 19, 2025
0.1.0 Mar 18, 2025

#392 in Science

Download history 50/week @ 2025-03-12 281/week @ 2025-03-19 5/week @ 2025-03-26 3/week @ 2025-04-02

339 downloads per month

MIT/Apache

64KB
1.5K SLoC

psrutils

GitHub license Crates.io Version GitHub 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.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).

No runtime deps