Skip to content

Instantly share code, notes, and snippets.

View Yeqzids's full-sized avatar

Quanzhi Ye Yeqzids

View GitHub Profile
@Yeqzids
Yeqzids / ztf_3i_table.txt
Last active September 11, 2025 15:31
ZTF photometry of 3I/ATLAS
Title: Prediscovery Activity of New Interstellar Object 3I/ATLAS: A Dynamically-Old Comet?
Authors: Ye et al.
Table: ZTF photometry of 3I/ATLAS
================================================================================
Byte-by-byte Description of file: ztf_3i_table.txt
--------------------------------------------------------------------------------
Bytes Format Units Label Explanations
--------------------------------------------------------------------------------
1- 15 F14.6 d jd_mid Midpoint observation time, JD
16- 30 F14.6 d jd_start Observation start time, JD
@Yeqzids
Yeqzids / timelapse.md
Last active December 14, 2018 07:22 — forked from porjo/timelapse.md
ffmpeg time-lapse

Convert sequence of JPEG images to MP4 video

Simple glob:

ffmpeg -r 24 -pattern_type glob -i '*.JPG' -s hd1080 -vcodec libx264 timelapse.mp4

Start from DSC_0079.JPG

ffmpeg -r 24 -f image2 -start_number 79 -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse2.mp4
@Yeqzids
Yeqzids / jpl2mpc.py
Last active August 6, 2018 20:24 — forked from mkelley/jpl2mpc.py
Convert between JPL and MPC cometary orbital elements. Does not work for all comets.
import argparse
import warnings
from astropy.time import Time
from astropy.utils.exceptions import AstropyWarning
parser = argparse.ArgumentParser(
description='Convert JPL comet orbits to MPC comet orbits.')
parser.add_argument('jpl_file', help='JPL formatted file')
parser.add_argument('--halt-on-error', action='store_true',
help='stop on errors parsing the JPL file')
@Yeqzids
Yeqzids / mpccmt_conv.py
Last active March 30, 2018 00:52
Python script to convert comets with JPL fullname into MPC packed form.
#!/usr/bin/env python3
"""
Convert comet designations from JPL fullname into MPC packed form.
Does not deal with fragments and comets discovered before 1 AD.
Usage: mpccmt_conv.py "C/2007 N3"
Q.-Z. Ye
"""