This class reads satellite imagery in GINI format. More...
#include "../include/GiniFile.h"
Public Types | |
| enum | Type { UNK, GINI, GINIZ } |
Public Member Functions | |
| GiniFile () | |
| GiniFile (const char *filename, int rtype) | |
| ~GiniFile () | |
| 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) |
This class reads satellite imagery in GINI format.
| GiniFile::GiniFile | ( | ) |
Constructor. Initializes the class
References init().
| GiniFile::GiniFile | ( | const char * | filename, | |
| int | rtype | |||
| ) |
| GiniFile::~GiniFile | ( | ) |
Destructor
References close().
| int GiniFile::close | ( | ) |
| int GiniFile::init | ( | ) |
| bool GiniFile::isOpen | ( | ) |
Is file open
| int GiniFile::open | ( | const char * | filename, | |
| int | rtype | |||
| ) |
Opens a satellite image file
| filename | File to open | |
| rtype | Type of GINI file (GINI, GINIZ) |
References WXP::File::isOpen(), and WXP::File::open().
Referenced by GiniFile(), and WXP::SatFile::open().
| int GiniFile::read | ( | Image & | image | ) |
Reads in a GINI formatted image file
| image | Image class to put satellite image |
References WXP::File::isOpen(), readData(), and readHeader().
Referenced by WXP::SatFile::read().
| int GiniFile::readData | ( | Image & | image | ) |
Reads in GINI formatted image data
| image | Image class to put satellite image |
References WXP::Image::allocData(), WXP::Buffer::clear(), WXP::Buffer::clearUsed(), WXP::Zlib::decomp(), WXP::Buffer::equal(), WXP::Buffer::get(), WXP::Buffer::getAvail(), WXP::Buffer::getSize(), WXP::Zlib::getStatus(), WXP::Zlib::init(), WXP::Wxp::isDebug(), WXP::Zlib::isError(), WXP::File::isOpen(), WXP::Zlib::print(), WXP::File::read(), WXP::Image::setPixel(), WXP::Zlib::STREAM_END, and WXP::Buffer::trunc().
Referenced by read().
| int GiniFile::readHeader | ( | Image & | image | ) |
Reads in GINI formatted image header
| image | Image class to put header information |
References WXP::DomainVal::clat, WXP::Buffer::clear(), WXP::Buffer::clearUsed(), WXP::DomainVal::clon, close(), WXP::DateTool::createLabel(), WXP::DateVal::day, WXP::Zlib::decomp(), WXP::DomainVal::dx, WXP::DomainVal::dy, WXP::Buffer::get(), WXP::File::getLine(), WXP::DateVal::hour, WXP::Zlib::init(), WXP::Wxp::isDebug(), WXP::File::isOpen(), WXP::Domain::LAMB, WXP::EarthPoint::lat, WXP::EarthPoint::lon, WXP::Domain::MERC, WXP::DateVal::min, WXP::DateVal::month, WXP::DomainVal::nx, WXP::DomainVal::ny, WXP::Wxp::outDebug(), WXP::Wxp::outWarning(), WXP::DomainVal::param, WXP::DomainVal::plat, WXP::DomainVal::plon, WXP::Zlib::print(), WXP::DomainVal::proj, WXP::Domain::PSTEREO, WXP::File::read(), WXP::DateVal::sec, WXP::Domain::set(), WXP::SatTool::toIRG7Temp(), WXP::Domain::tran(), WXP::Point::x, WXP::Point::y, and WXP::DateVal::year.
Referenced by WXP::SatFile::getHeader(), and read().
| int GiniFile::rewind | ( | ) |
Rewinds the file
References WXP::File::rewind(), and WXP::File::skipLine().
1.6.1