EMBERS: Home ༶ Table of Contents ༶ API Reference
embers.mwa_utils
is used to download and metadata of the MWA Telescope and compute FEE beam models.
It contains mwa_pointings
, mwa_dipoles
, mwa_fee
Tools to download metadata of the MWA telescope and extract its observational schedule
embers.mwa_utils.mwa_pointings.
download_meta
(start, stop, num_pages, out_dir, wait)¶Download MWA metadata from mwatelescope.org
Parameters: |
|
---|---|
Returns: | MWA metadata json files saved to |
embers.mwa_utils.mwa_pointings.
clean_meta_json
(out_dir)¶Organize json files. Clean up quirks in metadata
Clear up confusion in Andrew Williams’ custom pointing names
Parameters: | out_dir – Path to root of directory with json metadata files str |
---|---|
Returns: | A tuple (start_gps, stop_gps, obs_length, pointings)
|
embers.mwa_utils.mwa_pointings.
combine_pointings
(start_gps, stop_gps, obs_length, pointings, out_dir)¶Combine successive observations with same pointing and save to file.
Parameters: | |
---|---|
Returns: |
|
embers.mwa_utils.mwa_pointings.
point_integration
(out_dir)¶Calculate total integration at each pointing
Parameters: | out_dir – Path to directory where mwa_pointings.json is saved |
---|---|
Returns: | A tuple
|
embers.mwa_utils.mwa_pointings.
pointing_hist
(pointings, int_hours, time_thresh, out_dir)¶Plot a histogram of pointing integration
Many pointings can have very low total integration, use the time_thresh
argument to exclude low integration pointings.
Parameters: | |
---|---|
Returns: | Pointing histogram plot saved to |
embers.mwa_utils.mwa_pointings.
rf_obs_times
(start_date, stop_date, time_zone)¶Generate start & end times of 30 minuts rf observations in local, unix, gps formats
Parameters: | |
---|---|
Returns: | A |
embers.mwa_utils.mwa_pointings.
obs_pointings
(start, stop, time_zone, out_dir)¶Classify the pointing of each rf_obs
Loop over all rf observations within a date interval and determine whether
the 30 minute period had more that a 60% majority at a single pointing. If
it does, the rf observation is saved to an appropriate list. Save the pointing
data to obs_pointings.json
in the out_dir
.
Parameters: | |
---|---|
Returns: |
|
embers.mwa_utils.mwa_pointings.
tile_integration
(out_dir, rf_dir)¶Calculate total integration at multiple pointings for all tiles
Parameters: | |
---|---|
Returns: | A |
embers.mwa_utils.mwa_pointings.
plt_hist_array
(tile_ints, out_dir)¶A massive grid of histograms with a subplot for pointing integration of each tile.
Parameters: |
|
---|---|
Returns: |
|
embers.mwa_utils.mwa_pointings.
mwa_point_meta
(start, stop, num_pages, time_thresh, time_zone, rf_dir, out_dir, wait=29)¶Download mwa pointing metadata, sort and parse it, and create diagonistic plots,
Parameters: |
|
---|---|
Returns: | Data products saved to |
Tools to download MWA metafits files and finding dead dipoles
embers.mwa_utils.mwa_dipoles.
download_metafits
(num_files, wait, out_dir)¶Download metafits files from mwatelescope.org
This function requires a list of obsids which it reads from out_dir
.
Before running functions in this module, run mwa_pointings
to
created the required obsid files.
Parameters: | |
---|---|
Returns: | Metafits files are saved to the |
embers.mwa_utils.mwa_dipoles.
find_flags
(out_dir)¶Read metafits files and determine which dipoles are flagged
Parameters: | out_dir – Path to root of output directory where the metafits files are saved str |
---|---|
Returns: | A plot of flagged dipoles in each tile |
embers.mwa_utils.mwa_dipoles.
mwa_flagged_dipoles
(num_files, out_dir, wait=29)¶Download metafits and find flagged dipoles
Parameters: | |
---|---|
Returns: | Metafits files and dipole flagging plot saved to |
Tool to create XX & YY FEE (Fully Embedded Element) simulated beam maps.
embers.mwa_utils.mwa_fee.
local_beam
(za, az, freq, delays=None, zenithnorm=True, power=True, jones=False, interp=True, pixels_per_deg=5, amps=None)¶Code pulled from mwapy that generates the MWA beam response.
Parameters: |
|
---|---|
Returns: | XX and YY beam models. By default Power beams are returned, but Jones matrices are also possible. |
embers.mwa_utils.mwa_fee.
mwa_fee_model
(out_dir, nside, pointings=[0, 2, 4, 41], flags=[])¶Create MWA FEE beam models at multiple pointings, with dipoles flagged.
Parameters: |
|
---|---|
Returns: |
|