Xerbo 1766b42220 | 4 лет назад | |
---|---|---|
cmake | 4 лет назад | |
palettes | 4 лет назад | |
util | 4 лет назад | |
.gitignore | 4 лет назад | |
CMakeLists.txt | 4 лет назад | |
LICENSE | 5 лет назад | |
Makefile | 4 лет назад | |
README.md | 4 лет назад | |
color.c | 4 лет назад | |
common.h | 4 лет назад | |
dsp.c | 4 лет назад | |
filter.c | 4 лет назад | |
filter.h | 4 лет назад | |
filtercoeff.h | 4 лет назад | |
image.c | 4 лет назад | |
main.c | 4 лет назад | |
median.c | 4 лет назад | |
offsets.h | 4 лет назад | |
pngio.c | 4 лет назад | |
reg.c | 4 лет назад | |
satcal.h | 4 лет назад | |
textlogo.png | 5 лет назад |
Copyright (c) 2004-2009 Thierry Leconte (F4DWV), Xerbo (xerbo@protonmail.com) 2019-2020
Aptdec is a FOSS program that decodes images transmitted by NOAA weather satellites. These satellites transmit constantly (among other things) medium resolution (4km/px) images of the earth over a analog mode called APT. These transmissions can easily be received with a cheap SDR and simple antenna. Then the transmission can be decoded in narrow FM mode.
Aptdec can turn the audio recordings into PNG images and generate images such as:
The input audio format can be anything supported by libsndfile
(although only tested with WAV and FLAC). Sample rate doesn’t matter, although lower samples rates will process faster.
sudo apt install git gcc libsndfile-dev libpng-dev
git clone https://github.com/Xerbo/aptdec.git && cd aptdec
make
To create an image from gqrx_20200527_115730_137914960.wav
(output filename will be gqrx_20200527_115730_137914960-r.png
)
./aptdec gqrx_20200527_115730_137914960.wav
To manually set the output filename
./aptdec -o image.png gqrx_20200527_115730_137914960.wav
Decode all WAV files in the current directory and put them in images
mkdir images && ./aptdec -d images *.wav
Apply a denoise filter (see Post-Processing Effects for a full list of post-processing effects)
./aptdec -e d gqrx_20200527_115730_137914960.wav
Create a temperature compensated image for NOAA 18
./aptdec -i t -s 18 gqrx_20200527_115730_137914960.wav
Apply a falsecolor palette
./aptdec -i p -p palettes/WXtoImg-N18-HVC.png gqrx_20200527_115730_137914960.wav
-i [r|a|b|t|m|p] Output type (kinda stackable)
-e [t|h|l|d|p|f] Effects (stackable)
-o <path> Output filename
-d <path> Destination directory
-s (15-19) Satellite number
-m <path> Path to WXtoImg map
-p <path> Path to palette
-r Realtime decode
-g Gamma adjustment (1.0 = off)
r
: Raw Imagea
: Channel Ab
: Channel Bt
: Temperaturem
: MCIR (Map Color InfraRed)p
: Palletedt
: Crop telemetry (only effects raw image)h
: Histogram equalisel
: Linear equalised
: Denoisep
: Precipitation overlayf
: Flip image (for southbound passes)c
: Crop noise from ends of imageAptdec even supports decoding in realtime. The following decodes the audio coming from the audio device pulseaudio alsa_output.pci-0000_00_1b.0.analog-stereo
mkfifo /tmp/aptaudio
aptdec /tmp/aptaudio
sox -t pulseaudio alsa_output.pci-0000_00_1b.0.analog-stereo.monitor -c 1 -t wav /tmp/aptaudio
To stop the decode and calibrate the image simply kill the sox
process.
Palettes are just simple PNG images, 256x256px in size with 24bit RGB color. The X axis represents the value of Channel A and the Y axis the value of Channel B.
User’s Guide for Building and Operating Environmental Satellite Receiving Stations
See LICENSE