Giter Site home page Giter Site logo

fjankowsk / meertrapdb Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.77 MB

Database backend and survey analysis code for MeerTRAP.

License: MIT License

Makefile 1.28% Dockerfile 1.00% Python 97.43% Shell 0.29%
astronomy astronomy-astrophysics database fastradiobursts pulsars survey survey-analysis

meertrapdb's Introduction

MeerTRAP Database Backend

This repository contains the database backend code for the MeerTRAP project at the MeerKAT telescope. The code is mainly developed for Python 3, but Python 2 from version 2.7 onwards should work fine.

Author

The software is primarily developed and maintained by Fabian Jankowski. For more information feel free to contact me via: fabian.jankowski at manchester.ac.uk.

Citation

If you make use of the software, please add a link to this repository and cite our upcoming paper. See the CITATION file.

Installation

The easiest and recommended way to install the software is through pip directly from its GitHub repository. For example, to install the master branch of the code, use the following command:

pip3 install git+https://github.com/fjankowsk/meertrapdb.git@master

This will automatically install all dependencies.

Known source matching

The psrmatch known source matching code has been moved into a separate repository.

Sky map data handling

The skymap code to create, handle, and visualise sky map (e.g. HEALPix) data has been moved into a separate repository.

Multi-beam clustering

The repository contains a module to cluster (or sift) single-pulse candidates detected in multiple beams, based on their proximity in time and fractional dispersion measure. The parameters of the temporal width of the matching box and the fractional DM threshold can be tweaked as required. Example usage is like this:

from meertrapdb.clustering import Clusterer

clust = Clusterer()
info = clust.match_candidates(candidates)

Usage

$ meertrapdb-benchmark_clusterer
$ meertrapdb-cluster_multibeam -h
usage: meertrapdb-cluster_multibeam [-h] [--dm DM] [--time TIME] [--spccl_version SPCCL_VERSION] filename

Perform multi-beam candidate clustering.

positional arguments:
  filename

optional arguments:
  -h, --help            show this help message and exit
  --dm DM               Fractional DM tolerance. (default: 0.02)
  --time TIME           Time tolerance for matching in milliseconds. (default: 10.0)
  --spccl_version SPCCL_VERSION
                        The version of the input SPCCL file. (default: 2)
$ meertrapdb-make_plots -h
usage: meertrapdb-make_plots [-h] [--version] {heimdall,knownsources,sifting,skymap,timeline,timeonsky}

Make plots from database.

positional arguments:
  {heimdall,knownsources,sifting,skymap,timeline,timeonsky}
                        Mode of operation.

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
$ meertrapdb-parse_datadump -h
usage: meertrapdb-parse_datadump [-h] [--enddate YYYY-MM-DDThh:mm:ss]

Process the sensor data dump.

optional arguments:
  -h, --help            show this help message and exit
  --enddate YYYY-MM-DDThh:mm:ss
                        Process sensor data until this UTC date in ISOT format. (default: None)
$ meertrapdb-populate_db -h
usage: meertrapdb-populate_db [-h] [-s SCHEDULE_BLOCK] [-t] [-v] [--version] {fake,init_tables,known_sources,production,sift,parameters}

Populate the database.

positional arguments:
  {fake,init_tables,known_sources,production,sift,parameters}
                        Mode of operation.

optional arguments:
  -h, --help            show this help message and exit
  -s SCHEDULE_BLOCK, --schedule_block SCHEDULE_BLOCK
                        The schedule block ID to use. (default: None)
  -t, --test_run        Do neither move, nor copy files. This flag works with "production" mode only. (default: False)
  -v, --verbose         Get verbose program output. This switches on the display of debug messages. (default: False)
  --version             show program's version number and exit
$ meertrapdb-search_knownsources

meertrapdb's People

Contributors

fjankowsk avatar mmalenta avatar

Stargazers

 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.