Expand description
A library to simplify reading Murchison Widefield Array (MWA) raw visibilities, voltages and metadata.
Re-exports§
pub use fitsio;pub use fitsio_sys;pub use fits_read::*;pub use misc::*;
Modules§
- built_
info - ffi
- This module exists purely for other languages to interface with mwalib.
- fits_
read - Helper functions for reading FITS files.
- misc
- General helper/utility methods
Macros§
- fits_
open - Open a fits file.
- fits_
open_ hdu - Open a fits file’s HDU by index.
- fits_
open_ hdu_ by_ name - Open a fits file’s HDU by name.
- get_
fits_ col - Get a column of values from a fits file’s table HDU.
- get_
fits_ float_ image_ into_ buffer - Given a FITS file pointer and a HDU, read the associated float image.
- get_
fits_ image - Given a FITS file pointer and a HDU, read the associated image.
- get_
hdu_ image_ size - Get the size of the image on the supplied FITS file pointer and HDU.
- get_
optional_ fits_ key - Given a FITS file pointer, a HDU that belongs to it, and a keyword that may or may not exist, pull out the value of the keyword, parsing it into the desired type.
- get_
optional_ fits_ key_ long_ string - Given a FITS file pointer, and a keyword to a long string keyword that may or may not exist, pull out the long string of the keyword. This deals with FITSs CONTINUE mechanism by calling a low level fits function.
- get_
required_ fits_ key - Given a FITS file pointer, a HDU that belongs to it, and a keyword, pull out the value of the keyword, parsing it into the desired type.
- get_
required_ fits_ key_ long_ string - Given a FITS file pointer, and a keyword to a long string keyword, pull out the long string of the keyword. This deals with FITSs CONTINUE mechanism by calling a low level fits function.
Structs§
- Antenna
- Structure for storing MWA antennas (tiles without polarisation) information from the metafits file
- Baseline
- This is a struct for our baselines, so callers know the antenna ordering
- Calibration
Fit - Calibration Fits This table is present in some metafits files, and if present, contains data from the calibration_solutions database table with a calibration fit from the most recent fitted calibration observation with the same frequency channel setttings as this observation.
- Coarse
Channel - This is a struct for coarse channels
- Correlator
Context - This represents the basic metadata and methods for an MWA correlator observation.
- Metafits
Context - Metafits context. This represents the basic metadata for an MWA observation.
- Rfinput
- Structure for storing MWA rf_chains (tile with polarisation) information from the metafits file
- Signal
Chain Correction - Signal chain correction table
- Time
Step - This is a struct for our timesteps NOTE: correlator timesteps use unix time, voltage timesteps use gpstime, but we convert the two depending on what we are given
- Voltage
Beam - Voltage
Context - This represents the basic metadata and methods for an MWA voltage capture system (VCS) observation.
Enums§
- Cable
Delays Applied - The type of cable delays applied to the data
- Calibration
FitError - EfinputError subtypes
- Coarse
Channel Error - CoarseChannelError subtypes
- Geometric
Delays Applied - The type of geometric delays applied to the data
- Gpubox
Error - GpuboxError subtypes - mainly used by CorrelatorContext
- MWAMode
- The MODE the system was in for this observation
- MWAVersion
- Enum for all of the known variants of file format based on Correlator version
- Metafits
Error - Metafits error subtypes - used by MetafitsContext
- Mwalib
Error - MwalibError subtypes
- Pol
- Instrument polarisation.
- Receiver
Type - ReceiverType enum.
- Rfinput
Error - RfinputError subtypes
- VisPol
- Visibility polarisations
- Voltage
File Error - VoltageFileError subtypes - mainly used by VoltageContext
Constants§
- MWALIB_
MWA_ ALTITUDE_ METRES - The MWA’s altitude in metres.
- MWALIB_
MWA_ COAX_ V_ FACTOR - the velocity factor of electic fields in RG-6 like coax cable
- MWALIB_
MWA_ LATITUDE_ RADIANS - NOTE: the below constants are here for FFI compatibility
If you are using
Marlu, then it’s recommended to use the constants from that library - MWALIB_
MWA_ LONGITUDE_ RADIANS - The MWA’s longitude on Earth in radians. This is 116d40m14.93485s.
- MWALIB_
SPEED_ OF_ LIGHT_ IN_ VACUUM_ M_ PER_ S - speed of light in m/s