This repo contains a code and a document explaining how to mask some tiles from the Southern Photometric Local Universe Survey (S-PLUS). It was made as a term project for the discipline Astronomical databases and astrostatistics in the era of big data.
This work was made with the extremely helpful contributions from Maria Luísa Gomes Buzzo, Felipe de Almeida Fernandes, Lilianne Nakazono, Erik Vinicius Rodrigues de Lima and Professors Claudia Lucia Mendes de Oliveira, Zeljko Ivezic and Luis Raul Weber Abramo.
The code is organized as follows:
-
- Text section: explain the general idea behind the work (
document/document.pdf
);
- Text section: explain the general idea behind the work (
-
- Codes:
- a)
getting_and_preprocessing_data.ipynb
: get fz images, convert fz to fits, convert fits to RGB images, crops the borders, get and convert the original S-PLUS mask into image/matrix form, save the saturated points; - b)
masking-SPLUS.ipynb
: build the masks using computer vision techniques with and without segmentations image; - c)
creating_SPLUS_total_mask.ipynb
: get all the masks (for each different band) and join them in one band; - d)
SExtractor_analysis.ipynb
: use the tables from the masked and unmasked fits images (in each band) to measure the number of found objects, as well the interference in the magnitudes. It compares the original and masked images.
The necessary data to run the notebook (apart from d section) is giving using S-PLUS python interface. To get access to it, you need to make an account in S-PLUS cloud and log-in in the cell provided in the notebook. In order to organize the data and the results, I create some folders, using os
(to create the folders: data/field_name/
and results/field_name/fits
). You can easily change this cell and choose the best way and to save the things as you want, but you will need to change it in all the save stages of the notebook.
The necessary data to run the part (d) is obtained running SExtractor. But do not worries, I upload here the results from it. Otherwise, you can run it by yourself in the data/
and results/field_name/fits/
folders, for each respective band and field (after installing SExtractor in your machine and after running the previous parts of the notebook) using:
$ sex *name_of_your_image* -c configuration_file_of_your_image.sex
Contains a pdf, explaining the motivation, steps and results of this project.
If you have any doubts, complains or suggestions, please, contact me: [email protected]
.