|
WXP C++ Library Version 6.74.9
|
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) |
This class reads and decodes LRIT satellite data from file.
| LritFile::LritFile | ( | ) |
Constructor. Initializes class data
References init().
| LritFile::LritFile | ( | const char * | filename | ) |
| LritFile::~LritFile | ( | ) |
Destructor.
| int LritFile::close | ( | ) |
Closes the file
References WXP::File::close().
| 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().
| int LritFile::init | ( | ) |
Initializes class data
Referenced by LritFile(), LritFile(), and open().
| bool LritFile::isOpen | ( | ) |
Is file opened
| int LritFile::open | ( | const char * | filename | ) |
Opens a LRIT file
| filename | File to open |
References init(), WXP::File::isOpen(), and WXP::File::open().
Referenced by LritFile(), and WXP::SatFile::open().
| int LritFile::read | ( | Image & | image | ) |
Read in full LRIT image
| image | The 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().
| int LritFile::readHeader | ( | Image & | image | ) |
Reads in the LRIT header and stores in Image
| image | The output image |
References WXP::Wxp::checkMessage(), WXP::DomainVal::clat, WXP::DomainVal::clon, WXP::DateTool::createLabel(), WXP::Const::DRC, WXP::DomainVal::dx, WXP::DomainVal::dy, WXP::DomainVal::ellipse, WXP::StrLib::equal(), getHeader(), WXP::EarthPoint::lat, WXP::EarthPoint::lon, WXP::DomainVal::nx, WXP::DomainVal::ny, WXP::DomainVal::param, WXP::DomainVal::plat, WXP::DomainVal::plon, WXP::DomainVal::print(), WXP::DomainVal::proj, WXP::Domain::SAT, WXP::Domain::set(), WXP::Point::set(), and WXP::Domain::tran().
Referenced by WXP::SatFile::getHeader(), and read().