hop.target_selection package

Submodules

hop.target_selection.HectorSim module

class hop.target_selection.HectorSim.HectorSim(entire_table, BoundaryType, zlimit, MstarMin, MstarMax, SparseFunction, SourceCat, MSparseCut1, minRe, total_area=nan, quiet=False, Dec_Min=nan, Dec_Max=nan)[source]

Bases: object

A class to simulate obsverations for Hector.

We load in a catalogue, select the columns we want, then make plots with (in general) three samples:
  • all objects above some limiting surface brightness (plotted in RED)

  • all objects given some selection function in mass (plotted in BLUE)

  • a subsample of the blue objects, given some sampling technique (plotted in MAGENTA)

static Taipan_Selection(x)[source]

Taipan Selection cut. Lines 760-765

cumulative_fraction_sample_imaged_to_2Re(fig, ax)[source]

Lines 1435-1486

cumulative_percentage_galaxies_imaged_2Re(fig, ax)[source]

Lines 1716- 1798

general_selection(z)[source]
get_qz_pz(BoundaryType)[source]
make_Julias_plot(fig, axs)[source]

Make an indetical plot to Julia’s Hector sim code

plot_IFU_needed_for_2Re_hist(fig, ax)[source]
plot_IFU_needed_for_2Re_kde(fig, ax)[source]
plot_Mstar_z_gi_colour(fig, ax)[source]

Make a plot of M* vs z and colour by G-I colour

plot_Re_hist(fig, ax)[source]
plot_SB_Re(fig, ax)[source]
plot_SB_hist(fig, ax)[source]

Plot histograms of effective surface brightness within 1Re and surface brightness at 2 and 3Re.

plot_cumulative_fraction_imaged_vs_bundle_diameter(fig, ax)[source]
plot_ellipticity_hist(fig, ax)[source]
plot_gmi_hist(fig, ax)[source]
plot_mass_hist(fig, ax)[source]
plot_parent_sample(fig, ax)[source]

Make a plot of the parent sample in M*-z coordinates

plot_percentage_galaxy_sample_imaged_2Re(fig, ax)[source]

Lines 1597 - 1707

plot_selected_sample_MZ(fig, ax)[source]

Make another M*-Z plot, but this time mark on each sample. This is going to be a new function which doesn’t reusue _plot_M_z- I can’t see an easy way to do what I want with that function without changing everything!

plot_selected_sample_MZ_colour_Re(fig, ax)[source]
plot_z_Re(fig, ax)[source]
plot_z_hist(fig, ax)[source]
static qz_function()[source]
static sami_stepfunc(a)[source]

Get the SAMI steps. Vectorised version of Lines 786-823.

hop.target_selection.HectorSim.add_boxes_to_Mstar_z(fig, ax, table_data)[source]

Taken from original code, lines 1169 to 1204

hop.target_selection.HectorSim.calculate_SB_at_R(Sersic_index, Mu_e, multiple_of_Re)[source]

Calculate a galaxy’s surface brightness at a given multiple of Re from its surface brightness at Re

hop.target_selection.HectorSim.load_table(config, quiet=False)[source]

Read in the table, apply the selection cuts and make our cut-down table

hop.target_selection.HectorSim.safe_div(x, y)[source]
hop.target_selection.HectorSim.sparse_select_flat_in_Mass(table, bins, MStarSparseCutBin)[source]

Take a table of stellar masses and bin into 5 bins between MstarMin and MstarMax. Take the number in the MSparseCut1 bin (call it n) and then flatten all bins to have at most n galaxies in

Module contents