8个版本

0.1.9 2024年6月15日
0.1.8 2024年2月21日
0.0.1 2023年2月10日

#127 in 图像

MIT 许可证

15KB
226

Rusty FITSRotate

用于旋转FITS立方的命令行工具。

概述

这个项目主要是为了帮助我学习Rust,但它确实有一个有用的目的。我从Miriad的 reorder 命令中汲取了灵感。

当从磁盘读取FITS数据时,最后一个(FITS排序)轴读取速度最慢。通常,频率轴放在最后。这导致沿频率轴的操作速度较慢。通过旋转FITS立方体将频率轴放在最前面,可以在这样的操作中(如RM合成)获得很好的速度提升。

安装

您可以使用Cargo安装发布版本

cargo install fitsrotate_rs

对于最新版本,您可以克隆此仓库并本地构建

git clone https://github.com/AlecThomson/fitsrotate_rs.git
cd fitsrotate_rs.git
cargo install --path .

用法

在命令行中

 fitsrotate_rs -h
Rotate FITS images

Usage: fitsrotate_rs [OPTIONS] <FILENAME> <MODE>

Arguments:
  <FILENAME>  The FITS file
  <MODE>      Mode of rotation - a sequence of integers specifying the order of the axes (e.g. 321 for a 3D cube)

Options:
  -o, --overwrite  Overwrite the FITS file if it already exists
  -h, --help       Print help
  -V, --version    Print version

要将此crate用于您的Rust开发,请将以下行添加到您的Cargo.toml

[dependencies]
fitsrotate_rs = "0.1.1"

贡献

非常欢迎贡献!如上所述,这对我来说是一个学习项目,所以请原谅任何重大错误。

许可证

MIT

依赖项

~15MB
~209K SLoC