GNU Radio's SATNOGS Package
gr::satnogs::noaa_apt_sink Class Reference

#include <noaa_apt_sink.h>

Inheritance diagram for gr::satnogs::noaa_apt_sink:
gr::satnogs::noaa_apt_sink_impl

Public Types

typedef boost::shared_ptr< noaa_apt_sinksptr
 

Static Public Member Functions

static sptr make (const char *filename_png, size_t width, size_t height, bool sync, bool flip)
 

Detailed Description

Sink block for NOAA satellites

Member Typedef Documentation

◆ sptr

typedef boost::shared_ptr<noaa_apt_sink> gr::satnogs::noaa_apt_sink::sptr

Member Function Documentation

◆ make()

static sptr gr::satnogs::noaa_apt_sink::make ( const char *  filename_png,
size_t  width,
size_t  height,
bool  sync,
bool  flip 
)
static

Accepts a stream of floats in the range [0,1] which correspond to one sample per symbol (pixel) and outputs a grayscale PNG image. The user can choose between deriving a single PNG file for each width x length pixels or two PNG files corresponding to each one of the two different spectrum images contained in a NOAA APT transmission. The notation 'left' and 'right' is with respect to the original image sent by the satellite. Further, this block performs normalization on the input float values based on the max and min values observed in the stream. Adding to that, the user has the option to synchronize to the first of the two training sequences used by the NOAA APT protocol so that the two images are displayed one next to the other. The user can also select to rotate the image 180 degrees in case the captured one is upside down.

Parameters
filename_pngthe base filename of the output PNG file(s)
widththe width of the image in the APT transmission
heightthe height of the image in the APT transmission
syncuser option for synchronizing to the first of the two training sequences
flipuser option to rotate the image(s) 180 degrees

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