SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
satdump::projection::SatelliteRaytracer Class Referenceabstract

Generic base class for satellite raytracers. More...

#include <satellite_raytracer.h>

Inheritance diagram for satdump::projection::SatelliteRaytracer:
satdump::projection::SatelliteRaytracerSatTrack satdump::projection::TimestampLineGCPsRaytracer satdump::projection::ManualLineRaytracerOld satdump::projection::NormalLineRaytracer satdump::projection::NormalLineRaytracerOld satdump::projection::NormalPerIFOVRaytracerOld

Public Member Functions

 SatelliteRaytracer (nlohmann::ordered_json cfg)
virtual bool get_position (double x, double y, geodetic::geodetic_coords_t &pos, double *otime=nullptr)=0
 Get geodetic position of a pixel (can be fractional)

Protected Attributes

const nlohmann::ordered_json d_cfg

Detailed Description

Generic base class for satellite raytracers.

The general idea is that in most cases in order to geo-reference satellite imagery it is necessary to calculate where the instrument was looking from the attitude & position of the satellite, and raytrace this to Earth. In this instance, it is meant to convert pixel positions in an image to lat/lon.

IMPORTANT : The pixel values here MUST already have been ran through a ChannelTransform if required for the channel you're working with!

Of course there are many different methods to do this considering how variable the instruments and scanning patterns are, therefore many variants are required.

Parameters
d_cfginternal copy of the JSON configuration

Member Function Documentation

◆ get_position()

virtual bool satdump::projection::SatelliteRaytracer::get_position ( double x,
double y,
geodetic::geodetic_coords_t & pos,
double * otime = nullptr )
pure virtual

Get geodetic position of a pixel (can be fractional)

Parameters
xpixel position
ypixel position
posoutput geodetic position
otimeoptionally, timestamp of the position
Returns
true on error

Implemented in satdump::projection::ManualLineRaytracerOld, satdump::projection::NormalLineRaytracer, satdump::projection::NormalLineRaytracerOld, satdump::projection::NormalPerIFOVRaytracerOld, and satdump::projection::TimestampLineGCPsRaytracer.


The documentation for this class was generated from the following file: