SatDump 2.0.0-alpha-520736c72
Loading...
Searching...
No Matches
earth_curvature.h File Reference

Earth curvature correction for simple instruments (eg, AVHRR) More...

#include "image.h"

Go to the source code of this file.

Functions

Image satdump::image::earth_curvature::correct_earth_curvature (Image &image, float satellite_height, float swath, float resolution_km, std::vector< float > *foward_table=nullptr, std::vector< float > *reverse_table=nullptr)
 This allows correcting the effect of the earth's curvature and instrument scanning methods to generate an image with a more linear relation between pixels and the Earth's surface distances. It is meant to correct images from nadir-pointing instruments scanning on the roll axis at a constant angle between pixels.
image::Image satdump::image::earth_curvature::perform_geometric_correction (image::Image img, bool &success, std::vector< float > *foward_table=nullptr, std::vector< float > *reverse_table=nullptr)
 The same as correct_earth_curvature, but automatically reading the correction's configuration in the image metadata.

Detailed Description

Earth curvature correction for simple instruments (eg, AVHRR)

Function Documentation

◆ correct_earth_curvature()

Image satdump::image::earth_curvature::correct_earth_curvature ( Image & image,
float satellite_height,
float swath,
float resolution_km,
std::vector< float > * foward_table = nullptr,
std::vector< float > * reverse_table = nullptr )

This allows correcting the effect of the earth's curvature and instrument scanning methods to generate an image with a more linear relation between pixels and the Earth's surface distances. It is meant to correct images from nadir-pointing instruments scanning on the roll axis at a constant angle between pixels.

Parameters
imageinput image
satellite_heightsatellite orbit height (in km)
swathinstrument swath in km
resolution_kminstrument ground resolution in km
foward_tableoptional LUT generated. Input => Corrected
reverse_tableoptional LUT generated. Corrected => Input
Returns
corrected image

◆ perform_geometric_correction()

Image satdump::image::earth_curvature::perform_geometric_correction ( image::Image img,
bool & success,
std::vector< float > * foward_table = nullptr,
std::vector< float > * reverse_table = nullptr )

The same as correct_earth_curvature, but automatically reading the correction's configuration in the image metadata.

Parameters
imginput image
successwill be set to true on success
foward_tableoptional LUT generated. Input => Corrected
reverse_tableoptional LUT generated. Corrected => Input
Returns
corrected image