Code Monkey home page Code Monkey logo

matching_grb_frb_script's Introduction

matching_grb_frb_script

matching_frbgrb_finder_python.py

This python script can be used to find overlapping events between 2 catalogs. It compares the location (RA/DEC) and time of event to find any similarities. It is used in step 2 of my analysis into the "Search for Gamma-ray Emissions from a Population of Fast Radio Bursts."

Usage requirements:

  • The script requires .csv files and knowledge of what column contains the GRB/FRB code, the event time, RA, DEC, and RA/DEC errors.
  • Input a time uncertainty when prompted, filenames, and number of entries in each file
  • The script displays when a match is found and it will output a total runtime at the end as well as the time the script finished
  • The package 'pandas' is required which can be installed here: https://pandas.pydata.org/getting_started.html
  • Generates 2 .txt files, one containing photons and FRBs that only match in location and the other containing photons and FRBs that mathc in both location and time.

matching_frbgrb_finder_bash.sh

This bash script utilises the Fermi tool 'gtselect' and is much more optimised than the python version above. It is used in step 2 of my analysis into the "Search for Gamma-ray Emissions from a Population of Fast Radio Bursts."

Usage requirements:

  • Have Fermi tools pre installed and he conda enviornment activated (https://github.com/fermi-lat/Fermitools-conda/wiki/Installation-Instructions)
  • Activate Fermi enviornment
  • Input a time uncertainty and energy range when prompted
  • Requires the data and knowledge of what column contains the GRB/FRB code, the event time, RA, DEC, and RA/DEC errors.
  • The script can be adapted by changing the lines with comments.

These scripts was produced by Ethan H. Kao at the Laboratory for Space Research (HKU)

For any questions, contact: [email protected]

matching_grb_frb_script's People

Contributors

ethanka0 avatar

Stargazers

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