This guide allows you to use the ZTF anomaly detection tool presented by by Malanchev et al., 2020.
Install current version by
pip install git+https://github.com/snad-space/zwad
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 .
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
# 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