Skip to content

RossyNguyen/zwad

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Source code for

Anomaly detection in the Zwicky Transient Facility DR3

by Malanchev et al., 2020

This guide allows you to use the ZTF anomaly detection tool presented by by Malanchev et al., 2020.

Package installation

Install current version by

pip install git+https://github.com/snad-space/zwad

Development

Before working with the code, the package should be installed in the development mode:

git clone git@github.com:snad-space/zwad.git
cd zwad
pip install -e .

Data download

Light curve feature data for ZTF DR3 fields used in the research are available on Zenodo. You can download it from the website or by:

cd data
zwad-zenodo

Example

# Run one algorithm
zwadp -c iso --oid oid_m31.dat --feature feature_m31.dat > m31_iso.csv

# zwadp uses only one core by default. Number of parallel
# jobs may be increased with the -j option.
zwadp -c iso -j 4 --oid oid_m31.dat --feature feature_m31.dat > m31_iso.csv

# Run a few more algorithms
for ALGO in iso lof gmm svm; do
  zwadp -c ${ALGO} --oid oid_m31.dat --feature feature_m31.dat > m31_${ALGO}.csv
done

# Combine data-sets:
zwadp -c iso --oid oid_m31.dat --oid fakes/oid_m31_fake.dat --feature feature_m31.dat --feature fakes/feature_m31_fake.dat > m31_iso_fake.csv

# See the help
zwadp -h

Related repositories

About

ZTF anomaly detection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.6%
  • Other 0.4%