Crates.io | rustvdif |
lib.rs | rustvdif |
version | |
source | src |
created_at | 2024-09-29 17:05:59.329177 |
updated_at | 2024-11-19 17:12:41.767509 |
description | A Rust library for interacting with data encoded in the VLBI Data Interchange Format (VDIF). |
homepage | |
repository | https://github.com/JakeEBrooks/rustvdif |
max_upload_size | |
id | 1391003 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A rust crate for interacting with data encoded in the VLBI Data Interchange Format (VDIF), commonly used in radio astronomy experiments. The VDIF data format is defined in the VDIF specification, found here.
This is a minimalist crate designed to relieve the problem of dealing with VDIF data in your own applications.
With rustvdif
you can:
u32
or byte form.Documentation is available here.
Reading VDIF frames is made easy by wrapping around types implementing the Rust Read trait.
For example, frames can be easily read from a file:
fn main() {
// A file of 8032 byte VDIF frames
let mut file = VDIFReader::open("path/to/my/vdif", 8032).unwrap();
// Read the first 100 frames and print header information on each one
for _ in 0..100 {
let frame = file.read_frame().unwrap();
println!("{}", frame.get_header());
}
}
I'd love to see contributions from the VLBI community, and if you have any suggestions or questions you can always reach out to me directly or open an issue.
This library is licensed under either the MIT License or the Apache 2.0 License at your option.