Giter Site home page Giter Site logo

morpholopy's Introduction

MorpholoPy

Python package that calculates the following morphological parameters :

kappa_co (see e.g. https://arxiv.org/pdf/1704.06283.pdf), specific angular momentum and axial ratios (see e.g https://arxiv.org/pdf/1805.03210.pdf ) for stars and HI+H2 gas. It also calculates HI+H2 surface densities and makes particle projections of the ten most massive galaxies in the simulations.

Morphology outputs figures and tables in a html format.

Requirements

The morpholopy package requires:

  • python3.6 or above
  • see requirements.txt

Usage

To run the script in the single-run mode use

 python3 morpholopy.py -d run_directory \
                       -s snapshot_name \
                       -c catalogue_name \
                       -n name_of_the_run \
                       -g number_of_individual_galaxies_to_show \
                       -o path_to_output_directory \
                       -m minimal_stellar_mass_for_galaxies_to_be_analysed

To run the script in the comparison mode use

 python3 morpholopy.py -d directory_of_run1 directory_of_run2 \
                       -s snapshot_name_run1 snapshot_name_run2 \
                       -c catalogue_name_run1 catalogue_name_run2 \
                       -n name_of_the_run1 name_of_the_run2 \
                       -g number_of_individual_galaxies_to_show \
                       -o path_to_output_directory \
                       -m minimal_stellar_mass_for_galaxies_to_be_analysed

morpholopy's People

Contributors

correac avatar fonotec avatar evgeniichaikin avatar sylviaploeckinger avatar bwvdnbro avatar jtrayford avatar

Watchers

 avatar

morpholopy's Issues

Using star-gas smoothing in stellar mass maps

stars_data[:,7] = data.stars.smoothing_lengths[mask_stars].value * siminfo.a * 1e3 #kpc

This is not so physically relevant for the stellar mass distributions, could instead use a fixed smoothing, e.g:

baryon_maxsoft = float(data.metadata.parameters["Gravity:max_physical_baryon_softening"])*1000. #kpc                                                                                                                                      
stars_data[:,7] = 2*baryon_maxsoft*np.ones(stars_mass.size)

Improve comparison option for new plots

The plots I have recently added are not yet behaving very well when the pipeline is used to compare runs. Currently, all plots are just multiplied even those where the data from different snapshots can be over-plotted.

I would also suggest to only show the combined plots (i.e. not the plots for individual galaxies) when runs are compared. We do not match haloes and comparing individual galaxies by their halo id might be misleading. This is especially the case when comparing different box sized.

Use the correct backends for plots

Currently, the code uses the histogram backend for most of the code, so this should be updated that we can use the subsampled backends instead of these.

Use the same angular momentum vector for all surface density plots

[I'll drop this here so that I do not forget.] Currently the new surface density plots for the HI-H2 transition do not use the same angular momentum vector for the projections as the other plots (e.g the KS plots) (see discussion in #12). They are calculated in a very similar way, but the mask is slightly different and for consistency it would be good if they would use the same projections.

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.