#radioastronomy #mwa #astronomy #aoflagger #cotter

marlu

Convenience Rust code that handles coordinate transformations, Jones matrices, I/O. for the Murchison Widefield Array (MWA) radio telescope. Previously known as mwa_rust_core

6 releases

Uses new Rust 2021

new 0.3.3 Jan 19, 2022
0.3.2 Jan 14, 2022
0.3.0 Dec 17, 2021
0.2.3 Dec 10, 2021
0.2.2 Nov 17, 2021

#52 in Science

Download history 93/week @ 2021-11-13 19/week @ 2021-11-20 19/week @ 2021-11-27 19/week @ 2021-12-04 129/week @ 2021-12-11 20/week @ 2021-12-18 5/week @ 2021-12-25 15/week @ 2022-01-01 64/week @ 2022-01-08 181/week @ 2022-01-15

266 downloads per month
Used in 2 crates

MPL-2.0 and maybe LGPL-2.0+

335KB
7K SLoC

Marlu

Convenience Rust code that handles coordinate transformations, Jones matrices, etc.

Prerequisites

  • A Rust compiler with a version >= 1.56.0

    $ rustc -V
    rustc 1.57.0 (f1edd0429 2021-11-29)
    

    https://www.rust-lang.org/tools/install

  • ERFA

    • Ubuntu: liberfa-dev
    • Arch: AUR package erfa
    • The library dir can be specified manually with ERFA_LIB
    • If not specified, pkg-config is used to find the library.
    • Use --features=erfa-static to build the library automatically. Requires a C compiler and autoconf.

Optional prerequisites

If using the mwalib feature (true by default):

  • cfitsio
    • Ubuntu: libcfitsio-dev
    • Arch: cfitsio
    • Library and include dirs can be specified manually with CFITSIO_LIB and CFITSIO_INC
    • If not specified, pkg-config is used to find the library.
    • Use --features=cfitsio-static to build the library automatically. Requires a C compiler and autoconf.

If using the cuda feature (false by default):

  • CUDA
    • Ubuntu: Follow the instructions here
    • Arch: cuda
    • The library directory can be specified manually with CUDA_LIB
    • If not specified, CUDA_LIBRARY_PATH and the /opt/cuda and /usr/local/cuda directories are searched.
    • If CUDA is available, use --features=cuda-static to link it statically.

To link a system-provided static library, use e.g. ERFA_STATIC=1. To link all system-provided static libraries, use PKG_CONFIG_ALL_STATIC=1. To build all C libraries and link statically, use the all-static feature.

Acknowledgement

This scientific work uses data obtained from the Murchison Radio-astronomy Observatory. We acknowledge the Wajarri Yamatji people as the traditional owners of the Observatory site.

This repo is approved by...

CIRA Rust Evangelism Strike Force logo

Dependencies

~24MB
~371K SLoC