Code Monkey home page Code Monkey logo

polarpy's Introduction

Build Status codecov Scrutinizer Code Quality Maintainability DOI

polarpy

The gamma-ray polarimeter POLAR on board the Chinese space-station observed gamma-rays from 80-600 keV and collected both spectral and polarization data from a variety of astrophysical objects including gamma-ray bursts.

This suite of tools allows for the reduction, and analysis of the data in the 3ML framework.

The RAW POLAR data are in ROOT format. This package provides conversion tools to create data in HDF5 format.

If you find the code and or methodlogy useful, please cite Burgess, Kole, et al 2019.

polarpy's People

Contributors

grburgess avatar sujaymate avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

polarpy's Issues

polar_data.py is not compatible with h5py ver 3.3

The dataset.value attribute was deprecated.
It gives 'Dataset' object has no attribute 'value' error, from the 25th line on polar_data.py, invoked when using from_polar_spectrum(), leading to POLARData().

I have replaced dataset.value with dataset[()] and it is working smoothly.

Convert polarpy to more generic routine that can be used by all future polarisation instruments

Updates to polarpy based on the discussions at the Nendaz workshop. The points discussed and agreed upon are:

  1. The current polarpy repo will be converted to more generic repo which can fit polarisation data for any future instrument provided the data and response is given in the decided format.
  2. It will be renamed to be a more generic name and pushed to pip so people can do pip install to do the fitting.

Action items to do:

  • Write a generic coordinate transform function (@sujaymate) using the agreed upon convention.
  • Split the current polarlike.py such that common routines and POLAR specific routines are separated.
  • Decide a common (across instruments) input data format and edit the relevant routines to read this file.

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.