1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

/*!
Definitions for what we expose to the library
*/
pub mod antenna;
pub mod baseline;
pub mod coarse_channel;
mod convert;
pub mod correlator_context;
pub mod error;
mod ffi;
mod fits_read;
pub mod gpubox_files;
pub mod metafits_context;
pub mod misc;
pub mod rfinput;
pub mod timestep;
pub mod visibility_pol;
pub mod voltage_context;
pub mod voltage_files;

/// The MWA's latitude on Earth in radians. This is -26d42m11.94986s.
pub const MWA_LATITUDE_RADIANS: f64 = -0.4660608448386394;
/// The MWA's longitude on Earth in radians. This is 116d40m14.93485s.
pub const MWA_LONGITUDE_RADIANS: f64 = 2.0362898668561042;
/// The MWA's altitude in metres.
pub const MWA_ALTITUDE_METRES: f64 = 377.827;

// Re-exports.
pub use antenna::*;
pub use correlator_context::CorrelatorContext;
pub use error::MwalibError;
pub use fits_read::*;
pub use metafits_context::{CorrelatorVersion, MetafitsContext};
pub use rfinput::*;
pub use voltage_context::VoltageContext;

// So that callers don't use a different version of fitsio, export them here.
pub use fitsio;
pub use fitsio_sys;