Select regions for zoom-ICs. Requires a density grid generated with DensityGridder
-
sim_test.py-> an example simulation file. Contains a class detailing the simulation. Copy and edit this for each simulation. -
convolve.pyloads the specified gridded density field, and smoothes with a top-hat convolution window (specified in the simulation file). Called as follows:
python convolve.py sim_test grid_weights/example_grid_file.dat output/example_output_file.dat
-
fit.pyfits the overdensity distribution (and plots it). Must specify simulation file as argument. -
select_regions.pyprovides methods for selecting based on overdensity and distance from the mean. It first selects the 15 highest overdensities, so that the subsequent ones don’t overlap with it. Accepts the required sigma of the region as an argument (after the specified simulation file) and displays a subset of the selected coordinates. -
methods.pycontains methods for exporting files, as well as thesimulationclass containing information on the source simulation boxsize, the grid size, and the smoothing window. All changes to these parameters should be made here to ensure consistency across scripts. -
weights_grid.pyuse this for generating the weights of the resim regions
Run the following scripts in the following order:
python convolve.py
python fit.py
python select_regions.py