Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
Xerbo 751baefdff Close file stream if libpng fails to init 4 anos atrás
cmake Initial CMake support 4 anos atrás
palettes First HRPT palette! Also fix some warnings in pngio.c 4 anos atrás
util Add palette generator script 4 anos atrás
.gitignore Initial CMake support 4 anos atrás
CMakeLists.txt Initial CMake support 4 anos atrás
LICENSE I don't really know what happened, but I can think of these off the top of my head 4 anos atrás
Makefile Actaully disable that warning, fix a bug 4 anos atrás
README.md Add gamma adjustment, improve MCIR colors 4 anos atrás
color.c Use WXtoImg precipitation palette 4 anos atrás
common.h Add gamma adjustment, improve MCIR colors 4 anos atrás
dsp.c Fix map handling & improve alignment, fix #5 4 anos atrás
filter.c Switch to tabs 4 anos atrás
filter.h Fix temperature calibration & lots of small changes 4 anos atrás
filtercoeff.h Update copyright year 4 anos atrás
image.c Fix clipping on linear equalise 4 anos atrás
main.c Add gamma adjustment, improve MCIR colors 4 anos atrás
median.c Switch to tabs 4 anos atrás
offsets.h Fix temperature calibration & lots of small changes 4 anos atrás
pngio.c Close file stream if libpng fails to init 4 anos atrás
reg.c Switch to tabs 4 anos atrás
satcal.h Switch to tabs 4 anos atrás
textlogo.png A few changes here and there. 5 anos atrás

README.md

Aptdec logo

Copyright (c) 2004-2009 Thierry Leconte (F4DWV), Xerbo (xerbo@protonmail.com) 2019-2020

Introduction

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:

  • Raw image: both channels with full telemetry included
  • Individual channel: one of the channels form the image
  • Temperature image: a temperature compensated image derived from the IR channel
  • Palleted image: a image where the color is derived from a palette (false color, etc)
  • MCIR: a false color that uses a underlay map for color

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.

Quick start

sudo apt install git gcc libsndfile-dev libpng-dev
git clone https://github.com/Xerbo/aptdec.git && cd aptdec
make

Examples

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

./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

Usage

Arguments

-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)

Image types

  • r: Raw Image
  • a: Channel A
  • b: Channel B
  • t: Temperature
  • m: MCIR (Map Color InfraRed)
  • p: Palleted

Post-Processing Effects

  • t: Crop telemetry (only effects raw image)
  • h: Histogram equalise
  • l: Linear equalise
  • d: Denoise
  • p: Precipitation overlay
  • f: Flip image (for southbound passes)

Realtime decoding

Aptdec 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.

Palette formatting

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.

Further Reading

User’s Guide for Building and Operating Environmental Satellite Receiving Stations

NOAA KLM coefficients

License

See LICENSE