Code Monkey home page Code Monkey logo

fof's Introduction

Friends of Friends Algorithm

Disclaimer: WORK IN PROGRESS!!

This project uses the Friends-of-friends (FoF) algorithm to search for high redshift (0.5 < z < 2) galaxy clusters within the COSMOS survey.

This code base was developed for and used in my undergraduate thesis:

Detection and Analysis of High Redshift Galaxy Clusters

Completed: May 2021

About

Dependencies

  • Python 3.6 or later
  • Popular STEM libraries including: Numpy, Scipy
  • Data Processing libraries: Pandas, Matplotlib
  • Astropy
  • GrisPy

Usage

  1. Pull this repository with
git pull https://github.com/kennethcheo/FoF.git
  1. Obtain your dataset in your desired format (FITS, csv etc.)

    • This project mainly uses Pandas' dataframes to hold data.
    • Refer to data_processing.py for conversion of FITS to DF
  2. Ensure galaxy photometric or spectroscopic dataset with the relevant properties: RA, DEC, z, Absolute Magnitude, Galaxy ID

  3. Run pipeline with pipeline.py by commenting out relevant parts (or using it as a guide)

  4. Remember to change the default parameters in params.py

  5. Run dataset through the pipeline and save them to the appropriate location

    • Large datasets (> 1 million points) might take awhile.

Parameters

  • max_velocity: Maximum relative velocity of member galaxies to cluster center.
  • linking_length_factor: Constant of proportionality in determining linking length, default is 0.2 for dark matter halos.
  • virial_radius: Maximum separation of member galaxies from to cluster center.
  • richness, R: Minimum number of galaxies to form a cluster.
  • overdensity, D: Cluster density comparison with background density.

fof's People

Watchers

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