A Meteor-M geometry corrector
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Xerbo b65d04bbec Handle 16 bit images correctly and output a 16 bit image 2 weeks ago
.gitignore Fix output width calculation, improve README 3 months ago
LICENSE Initial Commit 4 months ago
README.md Improve legibility of command line arguments 1 month ago
correct.py Handle 16 bit images correctly and output a 16 bit image 2 weeks ago

README.md

Meteor-M2 Geometry Corrector

meteor_corrector is a tool for correcting the warp at the edges of images from Meteor-M2 satellite (and alike) written in python3.

It uses OpenCV for image transforms meaning that it can typically process an image in under 2 seconds.

Requirements

If you are on x86 all requirements can be installed easily through pip:

pip3 install numpy opencv-python
# Or for headless systems
pip3 install numpy opencv-python-headless

However if you are on ARM (eg Raspberry Pi’s), you will have to install OpenCV through apt:

pip3 install numpy
sudo apt install python3-opencv

Usage

usage: meteor_corrector [-h] [-s swath] [-a altitude] [-o path] [-f] input image

Correct the warp at the edges of images from Meteor-M2 satellite (and alike)

positional arguments:
  input image           path to the input image

optional arguments:
  -h, --help            show this help message and exit
  -s swath, --swath swath
                        swath of the satellite (in km)
  -a altitude, --altitude altitude
                        altitude of the satellite (in km)
  -o path, --output path
                        path of the corrected image
  -f, --flip            flip the image, for northbound passes

Examples

python3 correct.py LRPT_2020_07_09-10_47.png

Correct LRPT_2020_07_09-10_47.png, output filename will be LRPT_2020_07_09-10_47-corrected.png

python3 correct.py -o corrected_image.png LRPT_2020_07_09-10_47.png

Manually specify the output filename

python3 correct.py -a 870 -s 2800 HRPT_N19_20200708_113834.png

Correct a NOAA 19 HRPT image (NOAA 19 has altitude of 870km, and swath of 2800km)

License

See LICENSE