Skip to content

Repository for the extragalactic hostless project from CRP7

License

Notifications You must be signed in to change notification settings

pjpessi/extragalactic_hostless

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ICON ELEPHANT: ExtragaLactic alErt Pipeline for Hostless AstroNomical Transients

This repository contains the ELEPHANT pipeline described in the paper(link).

To use the pipeline, you can clone this repository with the command below

git clone https://github.com/COINtoolbox/extragalactic_hostless.git

After cloning install the necessary packages with the command below

pip install -r requirements.txt

The pipeline parameters can be configured in pipeline_config.json file. A subset of sample data used in the paper is available in data folder. The entire dataset used in the paper can be downloaded from the Fink broker data server

{
    "parquet_files_list": path to downloaded input parquet files (An example file available in data folder)
    "save_directory": path to a folder to save results
    "fwhm_bins":  A list of FWHM bin values (check paper)
    "image_shape": Input stamps shape
    "is_save_stacked_images": If true, stacked images are saved in results "save_directory" folder,
    "sigma_clipping_kwargs": kwargs parameters for astropy sigma_clip function
    "hostless_detection_with_clipping": sigma clipping hosteless detection threshold parameters defined in pixels
    "number_of_processes": Number of workers used in pythong multiprocessing to process files in parallel
}

To run the pipeline use the command below

python run_pipeline.py

The pipeline generates a result parquet file with the following columns for each input parquet file

  • b:cutoutScience_stampData_stacked: stacked science images
  • b:cutoutTemplate_stampData_stacked: stacked template images
  • b:cutoutDifference_stampData_stacked: stacked difference images
  • science_clipped: stacked sigma clipped science image
  • template_clipped: stacked sigma clipped template image
  • number_of_stamps_in_stacking: number of images used for stacking after FWHM stamp preprocessing
  • is_hostless_candidate_clipping: True, if the candidate flagged as hostless by sigma clipping approach
  • distance_science: distance from transient to the nearest mask in pixels
  • kstest_SCIENCE_N_statistic: Kolmogorov-Smirnov test statistic value for N x N cutout science image
  • kstest_SCIENCE_N_pvalue: Kolmogorov-Smirnov test p-value for N x N cutout science image
  • kstest_TEMPLATE_N_statistic: Kolmogorov-Smirnov test statistic value for N x N cutout template image
  • kstest_TEMPLATE_N_pvalue: Kolmogorov-Smirnov test p-value for N x N cutout template image

The project is part of COIN Residence Program #7, Portugal, 2023

About

Repository for the extragalactic hostless project from CRP7

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%