#transformation #matrix #coordinate #handles #mwa #radio #array

mwa_rust_core

Convenience Rust code that handles coordinate transformations, Jones matrices, etc. for the Murchison Widefield Array (MWA) radio telescope.

4 releases

0.2.0 Sep 30, 2021
0.1.2 Aug 22, 2021
0.1.1 Aug 20, 2021
0.1.0 Aug 19, 2021

#721 in Math

27 downloads per month

MPL-2.0 license

130KB
2.5K SLoC

mwa_rust_core


docs Cross-platform%20tests

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

Prerequisites

  • A Rust compiler with a version >= 1.50.0

    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.

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.

Dependencies

~25MB
~370K SLoC