Skip to content

AzNOAOTares/ztf-avro-alert

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ztf-avro-alert

Repository with the ZTF Avro schemas, example data products, and simple example scripts demonstrating how to work with them.

Additional documentation is available in the docs/ directory, which is rendered here.

Schemas are in schema/ and are given as .avsc files. alert.avsc is the top-level schema.

Example Avro packets are saved as binary files in data/. A simple script to print the contents of a packet to the terminal is in bin/.

Requires python3 and avro.schema for combining nested schemas, which you can get with pip install avro-python3. The python2 avro is significantly different from avro-python3 and will not work here without addressing those changes.

Usage

./bin/cat_avro_file.py data/1726958725155001.avro

About

✴️ Avro schema for ZTF alerts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%