Code Monkey home page Code Monkey logo

mcs_rot_angles's Introduction

mcs_rot_angles

Geometrical definitions used by the code. See van der Marel & Cioni (2001), and van der Marel et al. (2002).

alt tag

Fig 2, van der Marel et al. (2002)

alt tag

Fig 3, van der Marel et al. (2002)

  • Line of nodes: intersection of the rotated galaxy plane (x', y', z') and the sky plane (x, y, z). Formally, it is the x' axis.

  • Position angle of the line of nodes (\Theta): counterclockwise rotation around the z axis, measured form the y axis (North). \Theta = \theta - 90ΒΊ, ie: \theta is measured from the x axis (West)

  • Inclination (i): clockwise rotation around the new x' axis. It is the angle between the (x, y)-plane of the sky and the (x', y')-plane of the galaxy disk.

Structure

1. rot_angles()

Main function. Reads input data, obtains the angles for each method, and produces the final plots.

2. readData()

Read input data for both galaxies.

3. procParams()

Reads all the parameters needed to process the data.

  1. inc_PA_grid()

    Define a grid of (i, theta) angles.

  2. angles2Plane()

    Convert each pair of (i, theta) angles to its "plane form": ax + by + c*z + d = 0.

    1. gal_theta()

      Convert position angle 'Theta' (N-->E) to 'theta' (W-->E).

4. galax_struct_dist()

Process all data.

  1. dist2CloudCenter()

    3D distance between cluster-galaxy center and its error, in parsec.

    1. MCs_data()

      Read fixed data for each galaxy (center, distance, error in distance.

    2. dist_err_mag_2_pc()

      Convert the error in distance modulus to an error, in parsec.

    3. dist_err_2_pts()

      Error for the cluster-galaxy center distances, in parsec.

  2. dist_filter()

    Filter clusters based on their projected angular distances ('rho').

    1. get_rho_phi()

      Projected angular distance cluster-galaxy center, and position angle of cluster.

  3. i_PA_DeprjDist()

    Deprojected distance values for each (i, PA) point in the defined grid.

    1. get_deproj_dist()

      1. vdm_2001_dep_dist_kpc()

        Use Eq. (8) from van der Marel & Cioni (2001).

  4. xyz_coords()

    Coordinates of filtered clusters in the (x,y,z) system.

  5. Methods

    1. m1_ccc_map
      1. ccc Concordance correlation coefficient between deprojected distances obtained using ASteCA's distances and the van der Marel's equations.
    2. interp_dens_map
    3. m2_fix_plane_perp_dist For each (i, theta) pair, calculate the mean of the perpendicular distances of all clusters to that plane.
    4. interp_dens_map
    5. m3_min_perp_distance
      1. perp_error
    6. interp_dens_map
    7. get_angles Extract the best fit angles from all the (i, theta) values tested by the methods 1 and 2. For method 3, call function below.
      1. angle_betw_planes Transform the (a, b, c, d) plane parameters for the best fit found by Method 3, into (i, theta) angles.
    8. ccc_sum_d_for_best_fit
      1. get_deproj_dist
      2. ccc
      3. perp_error
    9. monte_carlo_errors
      1. draw_rand_dep_dist
      2. draw_rand_dist_mod
    10. cov_ellipse

5. make_plots()

Produce final plots.


Subramanian & Subramaniam (2015) (SMC), Subramanian & Subramaniam (2010) (LMC)

alt tag

alt tag


mcs_rot_angles's People

Contributors

gabriel-p avatar

Watchers

 avatar  avatar

mcs_rot_angles's Issues

Plot mean+std zone for published angle values + extreme values

Currently a grey band is plotted showing the region that contains the most extreme values plus/minus one standard deviation.

This could be separated in two: a grey band showing the mean+-std for all literature values, and two red dashed lines showing the most extreme values (angle +- std).

Find best fit angles for filtered out OCs too

Right now only those OCs with angular distances larger than a given r_min value are used to fit a plane, and obtain the best viewing angles.

Those filtered out (closer to the center of the galaxy) could also be used to obtain some information.

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.