Skip to content

Instantly share code, notes, and snippets.

View daniestevez's full-sized avatar

Daniel Estévez daniestevez

View GitHub Profile
@daniestevez
daniestevez / ce5.grc
Created November 14, 2022 20:23
Chang'e 5 512 baud demodulator
options:
parameters:
author: Daniel Estevez
catch_exceptions: 'True'
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: ''
description: ''
gen_cmake: 'On'
@daniestevez
daniestevez / qpks_trivia.grc
Created October 12, 2022 14:18
QPSK & BPSK DSP Puzzle
options:
parameters:
author: daniel
catch_exceptions: 'True'
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: ''
description: ''
gen_cmake: 'On'
@daniestevez
daniestevez / stereo_a_bg2bhc.grc
Created September 24, 2022 18:15
STEREO-A decoder for BG2BHC recordings
options:
parameters:
author: Daniel Estevez
catch_exceptions: 'True'
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: ''
description: ''
gen_cmake: 'On'
@daniestevez
daniestevez / qo100_multimedia_beacon.grc
Created May 21, 2022 08:31
QO-100 multimedia beacon GNU Radio decoder flowgraph
options:
parameters:
author: Daniel Estevez
catch_exceptions: 'True'
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: ''
description: ''
gen_cmake: 'On'
@daniestevez
daniestevez / extract_voyager.py
Created November 15, 2021 18:36
Extract Voyager 1 signal from GUPPI files
#!/usr/bin/env python3
import argparse
from blimpy import GuppiRaw
def parse_args():
parser = argparse.ArgumentParser(
description='Extract IQ channel for Voyager-1 from GUPPI file')
@daniestevez
daniestevez / binar.grc
Created September 18, 2021 16:36
BINAR-1 work in progress decoder
options:
parameters:
author: daniel
catch_exceptions: 'True'
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: ''
description: ''
gen_cmake: 'On'
@daniestevez
daniestevez / gist:2096640d251d4dd59a75774a061367d4
Created July 31, 2021 20:14
Join all observations in CASA
tb.open('observation.ms', nomodify=False)
a = tb.getcol('OBSERVATION_ID')
a[:] = 0
tb.putcol('OBSERVATION_ID', a)
tb.close()
@daniestevez
daniestevez / gnuradio-m1-macs.md
Created June 15, 2021 20:36
GNU Radio in M1 Macs (with Docker Desktop)

GNU Radio in M1 Macs (with Docker Desktop)

This note describes the steps we took with the SETI Institute summer interns 2021 to install GNU Radio in their M1 Macs (MacBook Air M1 2020 model). We used gnuradio-docker-env as a starting point, which was of invaluable help.

There might be omissions, typos, etc., in this note, so any feedback is welcome. The procedure could also be streamlined a lot by generating known-good images and pushing the to Docker Hub.

XQuartz

@daniestevez
daniestevez / gps-log.txt
Created March 26, 2021 15:54
Falcon-9 GPS log
1300610994400436905> 23 PLL stress
1300611017022690372> Track: [21s 10s 32e 23s 25e 01c 20s . . . . . . . . . | 01s 28s 19s .611017204400061> Running hot start for sid:5 TOW_ms 291017118!
1300611017204597275> Tracking! PRN:5
1300611026057717790> 1 PLL stress
1300611031677221262> 23 PLL stress
1300611032023066595> Track: [21c 10s 32e 23s 25e 01c 20s . . . . . . . . . | 01s 28s 19s . 17s . 23c 13s 24s 12s 05e 15s 21s . 14s . ]
1300611032023330905> dB: [34 42 41 40 38 33 38 . . . . . . . . . | 38 44 48 . 48 . 26 48 45 39 36 46 35 . 41 . ]
1300611032215555222> solution x/y/z: 4134817.9 257063.8 5103019.7 PDOP=1.7 n_sats=12
1300611032215837521> solution tow:291031.8257235776, wn:2150
1300611034525282910> 23 PLL stress
@daniestevez
daniestevez / kvla.txt
Created March 26, 2021 15:37
Falcon-9 TS KVL data
Sync-Byte 0x47: 71 (0x47)
Transport_error_indicator: 0 (0x00) [= packet ok]
Payload_unit_start_indicator: 1 (0x01) [= Packet data starts]
transport_priority: 0 (0x00)
PID: 2748 (0x0abc) [= ]
transport_scrambling_control: 0 (0x00) [= No scrambling of TS packet payload]
adaptation_field_control: 3 (0x03) [= adaptation_field followed by payload]
continuity_counter: 14 (0x0e) [= (sequence ok)]
Adaptation_field:
adaptation_field_length: 138 (0x8a)