All inputs and settings are contained in the python configuration script
notebooks/params.py
, that needs to be edited accordingly.
The main parameters are:
name
: field or patch name, can be any string. E.g.P3
for patch 3.data_dir
: input directory for data. Set to.
for validation run in current directory.galaxy_cat_path
: path to galaxy catalogue, format.fits
. or.hdf5
.star_cat_path
: path to star catalogue, format.fits
.
Optional parameters are:
path_tile_ID
: path to ascii file containing lines of tile IDs. Used to identify missing tiles.param_list_path
: path to ascii (SExtractor) parameter file; used to avoid hdf5 data read errors if input parameters vary from tile to tile. Set toNone
if not required.mask_external_path
: path to external mask file, format.reg
. Set toNone
if not required.
See the script prepare_patch_for_spval.sh
for an example of copying
the required input files to where the validation is to be run.
There are two possibilities to carry out the shear validation, by running the jupyter notebooks
in jupyter-lab
, or by running a python script in the command line via ipython
.
- In the run directory start JupyterLab:
jupyer-lab
-
Load and run first notebook
main_set_up.ipynb
:- Double-click in file manager tab on the left.
- Run notebook.
-
Run all further notebooks:
- Double-click as above.
- Change kernel to
main_set_up.ipynb
:
Either via the menuKernel -> Change Kernel
or
by clicking onPython 3
on the top left of the notebook. - Run notebook.
Run the notebooks in the following order:
main_set_up.ipynb
(main notebook)metacal_global.ipynb
- [
metacal_local.ipynb
] optional psf_leakage.ipynb
write_cat.ipynb
maps.ipynb
cosmology.ipynb
- Create the python script from the jupyter notbooks. In
notebooks
:
python config_convert.py
- Run python script. In run directory:
ipython /path/to/sp_validation/notebooks/validation.py