Giter VIP home page Giter VIP logo

match-pipeline's Introduction

Pipeline's desined in Model–View–Controller architecture. Main parts of the script based on Match script, which you should have installed in order to have working pipeline. More information you can find here: http://spiff.rit.edu/match/match-0.16/match.html

  1. For start create folder named with name of your cluster exp. "Gulliver_27/".

  2. In that folder create .yaml file with name of your cluster exp. "Gulliver_27.yaml"

  3. In the same folder create new folder "input/" and put there your UV and GAIA data exp. "uv.csv" and "star_table_Gulliver_27.csv".

  4. To obtain GAIA data use "get_stars_at_oc.py". To use it type in command line:

    "python3 get_stars_at_oc.py Gulliver_27 146.0801 -54.1154 0.12 19"

    where: Gulliver_27 is the name of the object (We need it only to navigate in folders, in general, GAIA doesn't provied cluster names.

    Be free to name it howewer you want, just make it the same name as folder and .yaml file from step 1) and 2)), 146.0801 is the RA, -54.1154 is the DEC, 0.12 is the search radius in degrees (Pick radius not too large, so it will be approxomatley the same as UV data radius. Or you have a risk to have 0 matched stars.), and 19 is the magnitude limit.

  5. UV data should contain 3 columns with names: "ra", "dec", "u". First two stands for coordinates and last stand for magnitude in U-filter

    GAIA data obtained by "get_stars_at_oc.py" should be in the same form always. (Sometimes first colums SOURCE_ID could be in lowercase. If it's so, change it to uppercase)

  6. In .yaml file add information about:

    your cluster: "cluster",

    coordinates of the center of GAIA data: "coords",

    magnitude you will use for matching: "gaia_mag",

    do you want to make plots?: "plots" (True - make plots / False - don't make plots),

    do you want to plot members of a cluster in sky coordinates plot?: "members" (True - add members to the plot / False - don't add members to the plot) Be careful, because members are filtered by given cluster name, which is also presented in members files from Hunt catalogue in column "name". But sometimes cluster name could be different from one in Hunt catalogue and script will give you error, but still will proseed and plot sky coordinates, just without members.

    parameters for matching: "matchrad", "trirad", "nobj",

    colours you want to use for CC-diagram: "colour1", "colour2"

    do you want to adjust positions of obtained stars on CC-diagram, in order to get they offset from MS in that filter: "adjust" (True - adjust / False - don't adjust)

    do you want to plot CMD?: "cmd" (True - plot / False - don't plot)

  7. Script has 4 procedures:

    "coords_reproject" takes RA and DEC coordinates of objects from UV and GAIA data and using project_coords from Match script to project them on tangential plane and get X and Y coordinates. More information avaliable by link above.

    "matching" matching UV and GAIA stars and gives as output lists of matched stars from both datasets.

    "filtering" filters stars from Hunt catalogue of clusters memberships with probability of membership >0.7. At the end you will have lists of filtered stars from both datasets.

    "diagram" creates CC-diagram, or CM-diagram if "cmd: True", in colours/filteres given by "colour1", "colour2" in .yaml file. If you have "adjust : True", firstly you will see interactive plot, when you can adjust vertical and horisontal positions of filtered stars (pink triangles). After you adjusted them, so they will fit some part of MS, close poped up window and your plot will be saved in "plots/" directory. Note that adjustment works only for CC-digram, since only colours presented in MS data files.

  8. To run the script procedure by procedure, type in the command line:

    "python3 controller.py Gulliver_27 coords_reproject",

    where "Gulliver_27" is the name or your cluster and "coords_reproject" is the name of procedure.

  9. In general case, you can run all the procedurer at ones by typing:

    "python3 controller.py Gulliver_27 process",

    where process is the name of procedure which contains all previously mentioned procedures. RECCOMENDED to do it in this way.

  10. All of the parameters should be changes in .yaml file. Try to avoid modifications of controller. and process_data.py if you're not sure what you're doing.

match-pipeline's People

Contributors

poruchikrzhevsky avatar

Stargazers

Gabriel Szász avatar

Watchers

 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.