Skip to content

Instantly share code, notes, and snippets.

@anielsen001
anielsen001 / quicklook.py
Last active November 18, 2019 10:53
meteor collection
import numpy as np
from matplotlib.pylab import plt
plt.ion()
def to_cplx( r ):
c = ( r[0::2]-127.5 ) + ( r[1::2]-127.5 )*1.0J
return c
d = np.fromfile( 'file2019-11-17-21', dtype=np.uint8, count = 2**32 )
@anielsen001
anielsen001 / adsbx.conf
Created November 24, 2019 16:44
adsbexchange.com api interaction
[adsbx]
api_key =
[search]
lat =
lon =
dist =
# example of using xargs to find files and sending files to a shell command with complicated file parsing
ls *mp4 | xargs -I{} sh -c 'base=$(basename $1 .mp4) ; ffmpeg -i "$1" -vcodec copy -an "${base}"_noaudio.mp4' -- {}
# this is a simple example of how to parse an Aranet4 CO2 sensor and plot the data using Julia
using Dates
using DataFrames
using CSV
using Plots
plotly()
fname = "Aranet4 017E9_2020-12-10T05_04_41.csv"
@anielsen001
anielsen001 / exiftool.qmd
Created December 27, 2023 21:54
remove photo EXIF meta data with exiftool
Remove photo EXIF metadata with `exiftool`
```bash
exiftool -EXIF= <filename>
```