Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

4 роки тому
4 роки тому
4 роки тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. ![Aptdec logo](textlogo.png)
  2. Copyright (c) 2004-2009 Thierry Leconte (F4DWV), Xerbo (xerbo@protonmail.com) 2019-2020
  3. ## Introduction
  4. 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.
  5. These transmissions can easily be received with a cheap SDR and simple antenna. Then the transmission can be decoded in narrow FM mode.
  6. Aptdec can turn the audio recordings into PNG images and generate images such as:
  7. - Raw image: both channels with full telemetry included
  8. - Individual channel: one of the channels form the image
  9. - Temperature image: a temperature compensated image derived from the IR channel
  10. - Palleted image: a image where the color is derived from a palette (false color, etc)
  11. - MCIR: a false color that uses a underlay map for color
  12. 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.
  13. ## Quick start
  14. ```sh
  15. sudo apt install git gcc libsndfile-dev libpng-dev
  16. git clone https://github.com/Xerbo/aptdec.git && cd aptdec
  17. make
  18. ```
  19. ## Examples
  20. To create an image from `gqrx_20200527_115730_137914960.wav` (output filename will be `gqrx_20200527_115730_137914960-r.png`)
  21. ```sh
  22. ./aptdec gqrx_20200527_115730_137914960.wav
  23. ```
  24. To manually set the output filename
  25. ```sh
  26. ./aptdec -o image.png gqrx_20200527_115730_137914960.wav
  27. ```
  28. Decode all WAV files in the current directory and put them in `images`
  29. ```sh
  30. mkdir images && ./aptdec -d images *.wav
  31. ```
  32. Apply a denoise filter (see [Post-Processing Effects](#post-processing-effects) for a full list of post-processing effects)
  33. ```sh
  34. ./aptdec -e d gqrx_20200527_115730_137914960.wav
  35. ```
  36. Create a temperature compensated image for NOAA 18
  37. ```sh
  38. ./aptdec -i t -s 18 gqrx_20200527_115730_137914960.wav
  39. ```
  40. Apply a falsecolor palette
  41. ```sh
  42. ./aptdec -i p -p palettes/WXtoImg-N18-HVC.png gqrx_20200527_115730_137914960.wav
  43. ```
  44. ## Usage
  45. ### Arguments
  46. ```
  47. -i [r|a|b|t|m|p] Output type (kinda stackable)
  48. -e [t|h|l|d|p|f] Effects (stackable)
  49. -o <path> Output filename
  50. -d <path> Destination directory
  51. -s (15-19) Satellite number
  52. -m <path> Path to WXtoImg map
  53. -p <path> Path to palette
  54. -r Realtime decode
  55. -g Gamma adjustment (1.0 = off)
  56. ```
  57. ### Image types
  58. - `r`: Raw Image
  59. - `a`: Channel A
  60. - `b`: Channel B
  61. - `t`: Temperature
  62. - `m`: MCIR (Map Color InfraRed)
  63. - `p`: Palleted
  64. ### Post-Processing Effects
  65. - `t`: Crop telemetry (only effects raw image)
  66. - `h`: Histogram equalise
  67. - `l`: Linear equalise
  68. - `d`: Denoise
  69. - `p`: Precipitation overlay
  70. - `f`: Flip image (for southbound passes)
  71. - `c`: Crop noise from ends of image
  72. ## Realtime decoding
  73. 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`
  74. ```
  75. mkfifo /tmp/aptaudio
  76. aptdec /tmp/aptaudio
  77. sox -t pulseaudio alsa_output.pci-0000_00_1b.0.analog-stereo.monitor -c 1 -t wav /tmp/aptaudio
  78. ```
  79. To stop the decode and calibrate the image simply kill the `sox` process.
  80. ## Palette formatting
  81. 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.
  82. ## Further Reading
  83. [User's Guide for Building and Operating
  84. Environmental Satellite Receiving Stations](https://noaasis.noaa.gov/NOAASIS/pubs/Users_Guide-Building_Receive_Stations_March_2009.pdf)
  85. [NOAA KLM coefficients](https://web.archive.org/web/20141220021557/https://www.ncdc.noaa.gov/oa/pod-guide/ncdc/docs/klm/tables.htm)
  86. ## License
  87. See `LICENSE`