WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Public Member Functions | List of all members
WXP::LritFile Class Reference

This class reads and decodes LRIT satellite data from file. More...

#include "../include/LritFile.h"

Public Member Functions

 LritFile ()
 
 LritFile (const char *filename)
 
 ~LritFile ()
 
int init ()
 
int open (const char *filename)
 
int close ()
 
bool isOpen ()
 
int getHeader ()
 
int read (Image &image)
 
int readHeader (Image &image)
 
int readData (Image &image)
 

Detailed Description

This class reads and decodes LRIT satellite data from file.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ LritFile() [1/2]

LritFile::LritFile ( )

Constructor. Initializes class data

References init().

◆ LritFile() [2/2]

LritFile::LritFile ( const char *  filename)

Constructor. Opens file.

Parameters
filenameFile to open

References init(), and open().

◆ ~LritFile()

LritFile::~LritFile ( )

Destructor.

Member Function Documentation

◆ close()

int LritFile::close ( )

Closes the file

References WXP::File::close().

◆ getHeader()

int LritFile::getHeader ( )

Reads in the LRIT header and stores data internally

References WXP::StrLib::copy(), WXP::Wxp::outDebug(), WXP::File::read(), WXP::File::seek(), WXP::Date::setDays(), and WXP::Date::setTime().

Referenced by readHeader().

◆ init()

int LritFile::init ( )

Initializes class data

Referenced by LritFile(), LritFile(), and open().

◆ isOpen()

bool LritFile::isOpen ( )

Is file opened

Returns
True if open

◆ open()

int LritFile::open ( const char *  filename)

Opens a LRIT file

Parameters
filenameFile to open

References init(), WXP::File::isOpen(), and WXP::File::open().

Referenced by LritFile(), and WXP::SatFile::open().

◆ read()

int LritFile::read ( Image image)

Read in full LRIT image

Return values
imageThe output image

References WXP::Image::allocData(), WXP::Image::init(), WXP::Wxp::isDebug(), WXP::Wxp::outDebug(), WXP::File::read(), readHeader(), and WXP::Image::setPixel().

Referenced by WXP::SatFile::read().

◆ readHeader()

int LritFile::readHeader ( Image image)

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