© Copyright by Ceccaroni, R., Brutti, P., Castellano, M., Fontana, A., Merlin, E.
TIS is a Python library for the segmentation of astronomical images. It uses persistent homology to find and separate objects.
TIS is free software: you can redistribute it and / or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
- Clone this repository:
git clone https://github.com/riccardoc95/TIS.git- Go to this repository:
cd TIS- Install TIS package:
pip install -e .- (Default options) Run:
python -m tis
Default paths is ./data/img.fits for image and ./data/rms.fits for rms map.
To change inputs and outputs you can use tags:
--img: to change the path of the image--rms: to change the path of the rms map--output: to specify the output folder
Example:
python -m tis --img /path/of/img.fits --rms /path/of/rms.fits --output /output_folder/
- (Custom options) Run:
python -m tis --export_config .
to export the configuration file to the current directory. Then, edit the file tis.conf and run the script as in point 1 in the same directory as the configuration file.
The script takes only .fits files as input.
The segmentation is in .fits format while the file containing the information is in .csv format.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.