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;
Modules§
Macros§
- Open a fits file.
- Open a fits file’s HDU.
- Get a column from a fits file’s HDU.
- Given a FITS file pointer and a HDU, read the associated float image.
- Given a FITS file pointer and a HDU, read the associated image.
- Get the size of the image on the supplied FITS file pointer and HDU.
- 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.
- 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.
- 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.
- 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§
- Structure for storing MWA antennas (tiles without polarisation) information from the metafits file
- This is a struct for our baselines, so callers know the antenna ordering
- This is a struct for coarse channels
- This represents the basic metadata and methods for an MWA correlator observation.
- Metafits context. This represents the basic metadata for an MWA observation.
- Structure for storing MWA rf_chains (tile with polarisation) information from the metafits file
- 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
- This represents the basic metadata and methods for an MWA voltage capture system (VCS) observation.
Enums§
- The type of cable delays applied to the data
- CoarseChannelError subtypes
- FitsError subtypes - mainly used by CorrelatorContext
- The type of geometric delays applied to the data
- GpuboxError subtypes - mainly used by CorrelatorContext
- The MODE the system was in for this observation
- Enum for all of the known variants of file format based on Correlator version
- Metafits error subtypes - used by MetafitsContext
- MwalibError subtypes
- Instrument polarisation.
- ReceiverType enum.
- EfinputError subtypes
- Visibility polarisations
- VoltageFileError subtypes - mainly used by VoltageContext
Constants§
- The MWA’s altitude in metres.
- the velocity factor of electic fields in RG-6 like coax cable
- 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 - The MWA’s longitude on Earth in radians. This is 116d40m14.93485s.
- speed of light in m/s
Functions§
- Returns a UNIX time given a GPStime
- Returns a UNIX time given a GPStime
- Function to take d m s and return the decimal degrees.
- Given a baseline index, return a tuple of (ant1,ant2) for a std right upper triangle e.g. (where N is num antennas) Returns None if baseline was not found (your baseline is out of range) 0,0 0,1 … 0,N-1 1,1 1,2 1,N-1 … 2,2 … N-1,N-1
- Given the number of antennas, calculate the number of baselines (cross+autos)
- Given two antenna names and the vector of Antenna structs from metafits, return the baseline index.
- Given two antenna indicies, return the baseline index.
- Returns a bool based on whether this cable flavour has a whitening filter. (Used by rfinput::new())