#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

14 releases (5 breaking)

Uses new Rust 2021

new 0.7.2 Aug 4, 2022
0.7.0 Jun 27, 2022
0.6.0 Mar 24, 2022
0.3.0 Dec 17, 2021
0.2.2 Nov 17, 2021

#48 in Science

Download history 50/week @ 2022-04-21 159/week @ 2022-04-28 121/week @ 2022-05-05 202/week @ 2022-05-12 69/week @ 2022-05-19 98/week @ 2022-05-26 109/week @ 2022-06-02 67/week @ 2022-06-09 65/week @ 2022-06-16 155/week @ 2022-06-23 67/week @ 2022-06-30 99/week @ 2022-07-07 100/week @ 2022-07-14 67/week @ 2022-07-21 106/week @ 2022-07-28 97/week @ 2022-08-04

416 downloads per month
Used in 2 crates

MPL-2.0 and maybe LGPL-2.0+

520KB
11K 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

~21–28MB
~430K SLoC