WXP C++ Library Version 6.74.9
|
This class reads satellite imagery in Unisys format. More...
#include "../include/SatUniFile.h"
Public Types | |
enum | Type { UNK , UNISYS } |
Public Member Functions | |
SatUniFile () | |
SatUniFile (const char *filename, int rtype) | |
~SatUniFile () | |
int | init () |
int | open (const char *filename, int rtype) |
bool | isOpen () |
int | rewind () |
int | close () |
int | getHeader (Image &data) |
int | read (Image &data) |
int | readHeader (Image &data) |
int | readData (Image &data) |
int | setMapRemove (int val) |
int | setBlackWhite (int val) |
int | setDomain (const char *str) |
int | setCalibration (const char *str) |
This class reads satellite imagery in Unisys format.
SatUniFile::SatUniFile | ( | ) |
Constructor. Initializes the class
References init().
SatUniFile::SatUniFile | ( | const char * | filename, |
int | rtype | ||
) |
SatUniFile::~SatUniFile | ( | ) |
Destructor
References close().
int SatUniFile::close | ( | ) |
int SatUniFile::init | ( | ) |
Initializes the class data
References WXP::String::init().
Referenced by SatUniFile(), and SatUniFile().
bool SatUniFile::isOpen | ( | ) |
Is file open
int SatUniFile::open | ( | const char * | filename, |
int | rtype | ||
) |
Opens a satellite image file
filename | File to open |
rtype | Type of Unisys file (UNISYS) |
References WXP::File::isOpen(), and WXP::File::open().
Referenced by WXP::SatFile::open(), and SatUniFile().
int SatUniFile::read | ( | Image & | image | ) |
Reads in a Unisys formatted image file
image | Image class to put satellite image |
References WXP::File::isOpen(), readData(), and readHeader().
Referenced by WXP::SatFile::read().
int SatUniFile::readData | ( | Image & | image | ) |
Reads in Unisys formatted image data
image | Image class to put satellite image |
References WXP::Image::allocData(), WXP::Image::getPixel(), WXP::File::isOpen(), WXP::File::read(), WXP::Image::setPixel(), and WXP::File::tell().
Referenced by read().
int SatUniFile::readHeader | ( | Image & | image | ) |
Reads in Unisys formatted image header
image | Image class to put header information |
References WXP::DomainVal::clat, WXP::DomainVal::clon, WXP::DateTool::createLabel(), WXP::DomainTool::decode(), WXP::DomainVal::dx, WXP::DomainVal::dy, WXP::StrLib::equal(), WXP::String::get(), WXP::Image::init(), WXP::File::isOpen(), WXP::Domain::LAMB, WXP::DomainVal::nx, WXP::DomainVal::ny, WXP::Wxp::outWarning(), WXP::DomainVal::param, WXP::Domain::PIXEL, WXP::DomainVal::plat, WXP::DomainVal::plon, WXP::DomainVal::proj, WXP::File::read(), WXP::Domain::SAT, WXP::File::scanf(), and WXP::String::valid().
Referenced by WXP::SatFile::getHeader(), and read().
int SatUniFile::rewind | ( | ) |
Rewinds the file
References WXP::File::rewind(), and WXP::File::skipLine().