WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
AreaFile.h
1#ifndef _WINC_AREAFILE
2#define _WINC_AREAFILE
3
4#include <WXP/AreaDir.h>
5#include <WXP/AreaNav.h>
6#include <WXP/Date.h>
7#include <WXP/DomainVal.h>
8#include <WXP/File.h>
9#include <WXP/Gvar.h>
10#include <WXP/Image.h>
11#include <WXP/String.h>
12#include <WXP/Swap.h>
13
14namespace WXP {
15 class AreaFile {
16 File file;
17 int file_type;
18 Swap swap;
19 bool opened;
20 AreaDir dir;
21 char nav_type[5];
22 AreaNav nav;
23 Gvar gvar;
24 int bshift;
25 String calib;
26
27 public:
28 AreaFile();
29 int init();
30 int open( const char *filename );
31 bool isOpen();
32 int rewind();
33 int close();
34 int setCalibration( const char *str );
35 unsigned int readWord();
36 unsigned char readByte();
37 int getSync();
38 int calcDomain( DomainVal &dom );
39 int getImageDate( Date &date );
40 int getImageDate();
41 int getComment( String &str );
43 inline int getSatId(){ return dir.satid; };
45 inline int getLineCor(){ return dir.lcor; };
47 inline int getElemCor(){ return dir.ecor; };
49 inline int getLineRes(){ return dir.lres; };
51 inline int getElemRes(){ return dir.eres; };
53 inline int getLineSize(){ return dir.lsiz; };
55 inline int getElemSize(){ return dir.esiz; };
57 inline int getBands(){ return dir.bands; };
59 inline int getFilterMap(){ return dir.filtmap; };
61 inline int getImageId(){ return dir.imageid; };
63 inline const char *getNavType(){ return nav_type; };
64
65 int read( Image &image );
66 int readHeader();
67 int readHeader( Image &image );
68 int readData( Image &image );
69 int print();
70 int printNav();
71 int printGvar();
72
73 };
74}
75#endif
This class decodes McIDAS AREA files.
Definition AreaFile.h:15
int getImageDate()
Definition AreaFile.cc:475
int readHeader()
Definition AreaFile.cc:155
int getFilterMap()
Definition AreaFile.h:59
int close()
Definition AreaFile.cc:85
int print()
Definition AreaFile.cc:778
int getLineCor()
Definition AreaFile.h:45
int readData(Image &image)
Definition AreaFile.cc:386
int getComment(String &str)
Definition AreaFile.cc:485
int getLineRes()
Definition AreaFile.h:49
int read(Image &image)
Definition AreaFile.cc:146
int getLineSize()
Definition AreaFile.h:53
unsigned char readByte()
Definition AreaFile.cc:112
int getElemSize()
Definition AreaFile.h:55
int getSync()
Definition AreaFile.cc:121
int open(const char *filename)
Definition AreaFile.cc:57
bool isOpen()
Definition AreaFile.cc:69
unsigned int readWord()
Definition AreaFile.cc:100
int init()
Definition AreaFile.cc:47
int rewind()
Definition AreaFile.cc:76
int getSatId()
Definition AreaFile.h:43
const char * getNavType()
Definition AreaFile.h:63
int calcDomain(DomainVal &dom)
Definition AreaFile.cc:498
int getElemCor()
Definition AreaFile.h:47
AreaFile()
Definition AreaFile.cc:39
int getElemRes()
Definition AreaFile.h:51
int getBands()
Definition AreaFile.h:57
int getImageId()
Definition AreaFile.h:61
int printGvar()
Definition AreaFile.cc:795
int printNav()
Definition AreaFile.cc:787
This class stores date and time information.
Definition Date.h:8
This class accesses files.
Definition File.h:15
This class manages GVAR GOES satellite image navigation.
Definition Gvar.h:15
This class defines an image.
Definition Image.h:19
This is a variable length string class.
Definition String.h:5
This class performs byte swapping.
Definition Swap.h:7
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct stores AREA file parameters.
Definition AreaDir.h:5
This struct stores extra AREA navigation data.
Definition AreaNav.h:5
This struct defines basic domain parameters.
Definition DomainVal.h:5