Skip to content

Instantly share code, notes, and snippets.

View godber's full-sized avatar
😺

Austin Godber godber

😺
View GitHub Profile
@godber
godber / RASPI_SSTV_README.md
Last active March 30, 2019 01:13
RaspberryPi Image Acquire Encode and transmit as SSTV

This is what I did to get the attached script, imgxmit.py, to work on raspbian

Make sure raspberry pi camera is enabled:

raspi_config

Installed system level dependencies

@godber
godber / dtype_ex1.py
Last active August 29, 2015 14:26
Creating an ndarray with a given dtype.
import numpy as np
dt = np.dtype([
('time', [('min', int), ('sec', int)]),
('temp', float)
])
# create array with dtype
x = np.zeros((5,5), dtype=dt)
import os
from glob import glob
def file_dir_glob_list(inlist=None):
"""Given a list of files, directories or globs, returns a fully expanded
list of files
"""
file_list = []
if inlist:
@godber
godber / mission_data.json
Last active August 29, 2015 14:23
JSON data file with names of planetary data.
{
"0044ML0205000000E1_DXXX.img": {
"url": "http://"
},
"0778ML0033700000400205E01_XXXX.LBL": {
"url": "http://",
"datafile": "0778ML0033700000400205E01_XXXX.LBL",
"skip": "True"
},
"0778ML0033700000400205I01_XXXX.LBL": {
@godber
godber / Test_All.ipynb
Created June 14, 2015 00:40
Test Lots of Planetary Data Types
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@godber
godber / planetaryimage_example_1
Last active August 29, 2015 14:22
Using PlanetaryImage
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#Testing out PlanetaryImage"
]
},
{
@godber
godber / w7asu-0-aprs-decoded.txt
Created April 25, 2015 23:29
Sample parsing APRS Packets with Python
2015-04-25 09:09:18 MST, 309
2015-04-25 09:11:17 MST, 1089
2015-04-25 09:13:16 MST, 1968
2015-04-25 09:15:16 MST, 2855
2015-04-25 09:17:16 MST, 3710
2015-04-25 09:19:16 MST, 4588
2015-04-25 09:21:15 MST, 5432
2015-04-25 09:23:15 MST, 6317
2015-04-25 09:25:15 MST, 7226
2015-04-25 09:27:14 MST, 8148
@godber
godber / shifty.sh
Last active August 29, 2015 14:16
Need to keep an X11 screen awake? Use shifty!
#!/bin/bash
export DISPLAY=:1
while true;
do
xdotool key shift
sleep 5
done
@godber
godber / gen_pds_sql_table.py
Created February 19, 2015 20:41
This takes a file the Mastcam PDS Index Label file and generates CREATE TABLE command for PostgreSQL.
#!/usr/bin/env python
# Being lazy here, everything is hardcoded.
# This takes a file like the following and generates CREATE TABLE command for
# PostgreSQL:
# http://pds-imaging.jpl.nasa.gov/data/msl/MSLMST_0007/INDEX/EDRINDEX.LBL
# Load it with this:
# psql -U postgres -h localhost -p 5432 -d mslpdsindex -f mcam-pds-index.sql