GithubHelp home page GithubHelp logo

masking_s-plus's Introduction

MASKING S-PLUS

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.

Code description

The code is organized as follows:

    1. Text section: explain the general idea behind the work (document/document.pdf);
    1. 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

Document description

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].

masking_s-plus's People

Contributors

natalidesanti avatar

Stargazers

Lilianne Nakazono avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.