Skip to main content

Transient Recognition, Annotation, and Classification Kit

Project description

NEEDLE-TRACK

Transient Recognition, Annotation, and Classification Kit

System Overview

NEEDLE-TRACK is a local system (with future migration potential to cloud or other machines) for managing transient data from Lasair (ZTF). It provides structured data storage, update tracking, search capabilities, and a publicly available package for easy deployment.

Core Components

  1. Local System Management

    • Designed to run locally, with future migration capability to cloud or other machines.
    • Configuration options allow users to set up the system on various environments.
  2. Database for Data Storage

    • Stores transient objects with changeable tags and associated comments for further annotation.
    • Maintains an Update List to track objects whose data has changed or that have new incoming updates.
    • Supports updates and tracking of object status changes.
  3. Terminal Interface

    • Users interact with the system through a command-line interface (CLI).
    • Provides commands for ingestion, searching, commenting, and annotation.
  4. Search Function

    • Query objects by unique ZTF ID.
    • Filter objects based on tags.
    • Search based on annotation status (astronote presence).
  5. Public Package Distribution

    • The package, named needle_track, is hosted on GitHub for public access.
    • Includes installation instructions, dependencies, and usage guidelines.

Data Ingestion

  1. Source: Data exported from Lasair broker (ZTF).
  2. Format: JSON.
  3. Update Mechanism:
    • Runs a script to fetch the latest data (default: past week, customizable).
    • Checks for overlapping entries:
      • Overlap Check: Compares incoming data with existing records.
        • If overlaps are detected, the system updates the existing record and logs it into the Update List.
        • New records are added directly to the database.
        • Objects that are not interested are moved to the Removed List.
    • Generates a report summarizing all updates and changes.

Data Storage

  1. SQL Database Structure:

    • object table: list of all objects in the database.
  2. Object Structure:

    • ZTF ID: Unique identifier from Lasair.
    • Object Properties: Data and metadata from Lasair.
    • followup: indicator if the object has been marked for followup.
    • snoozed: indicator if the object has been marked as snoozed.
    • astronote: indicator if the object has been marked as astronote.
    • Comments: User-added comments or notes for each object.
    • Link: URL reference to the Lasair entry for further details.

Tutorial

  1. Initialize the database
    • needle_track -i
  2. Ingest data
    • needle_track ingest --slsn <path_to_data> --tde <path_to_data>
  3. Search for objects
    • needle_track search --objectId/-o <object_id>
    • needle_track search --followup/-f
    • needle_track search --snoozed/-s
    • needle_track search --astronote/-a
    • needle_track search --list/-l
  4. Update objects
    • needle_track update --objectId/-o <object_id> --followup/-f
    • needle_track update --objectId/-o <object_id> --snoozed/-s
    • needle_track update --objectId/-o <object_id> --astronote/-a
  5. Add comments
    • needle_track comment -o <object_id> -c "This is a comment"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

needle_track-0.1.1.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

needle_track-0.1.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file needle_track-0.1.1.tar.gz.

File metadata

  • Download URL: needle_track-0.1.1.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for needle_track-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a9bcf9911abe4c9569889e7e16922ff23fe76cb93c2e82c9239e168d62b206c7
MD5 a1b3f6cf12d703ba3dbc2ee02d0fd622
BLAKE2b-256 49538fe21e5903621801524844f1d0656d67a8b66b624299a6c8b151f393c0be

See more details on using hashes here.

File details

Details for the file needle_track-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: needle_track-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for needle_track-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9fed412bba1220cdf13d7e64101cce380545428a806db28d8d188a43ed7726ab
MD5 d0046b5f30d2824546525606aa398b1b
BLAKE2b-256 bcd67e7cf15d1d01b104800488a3de57a2087fc7bde2a7f27aad59b8f32d1fa9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page