Skip to content

rcrupi/ImageGRB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageGRB

Convert a GRB event in a pretty image.

WhatsApp Image 2023-01-10 at 11 35 32

(GRB110920)

You can cite this work as:

@software{Crupi_ImageGRB_2023,
author = {Crupi, Riccardo},
doi = {10.5281/zenodo.7880873},
month = feb,
title = {{ImageGRB}},
url = {https://github.com/rcrupi/ImageGRB},
version = {1.0.0},
year = {2023}
}

Installation

Create a new venv, install the library specified in the requirements.txt and finally install GBM data tools

python3 -m venv gbm
source gbm/bin/activate
cd <PATH_OF_THE_REPO>
pip install -r requirements.txt
wget https://fermi.gsfc.nasa.gov/ssc/data/analysis/gbm/gbm_data_tools/gbm_data_tools-1.1.1.tar.gz
pip install gbm_data_tools-1.1.1.tar.gz

Config

In the config folder you must create a file named 'path.yaml'.

# Example YAML
PATH_TO_SAVE: /.../<PATH_FOLDER_WITH_A_LOT_OF_SPACE>/
GBM_BURST_DB: data/gbm_burst_catalog.csv
GRB_REDSHIFT: data/grb_red.csv
GRB_TTE: tte/
GRB_PKL: tte_pkl_img/
GRB_IMG: tte_img_scaled/

Usage

In the folder 'script' there is the pipeline.py:

# # # Download GRB TTE
download_tte(download=True)

# # # Preprocess the data
# Convert TTE to 2D array, background subtracted
tte2mat()
# Convert matrix data into images
ds_train, ds_train_scale, lst_name = mat2img()

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages