WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
SatFile.h
1#ifndef _WINC_SATFILE
2#define _WINC_SATFILE
3
4#include <WXP/AreaFile.h>
5#include <WXP/Date.h>
6#include <WXP/File.h>
7#include <WXP/Filename.h>
8#include <WXP/GifFile.h>
9#include <WXP/GiniFile.h>
10#include <WXP/Image.h>
11#include <WXP/ImgWxpFile.h>
12#include <WXP/LritFile.h>
13#include <WXP/PngFile.h>
14#include <WXP/SatCdfFile.h>
15#include <WXP/SatUniFile.h>
16#include <WXP/TiffFile.h>
17
18namespace WXP {
19 class SatFile {
20 int type;
21 int subtype;
22 int ver;
23 int access;
24 long pos;
25 int cnt;
26 File file;
27 ImgWxpFile img;
28 GiniFile gini;
29 AreaFile area;
30 SatCdfFile netcdf;
31 SatUniFile unisys;
32 LritFile lrit;
33 TiffFile tiff;
34 GifFile gif;
35 PngFile png;
36 bool opened;
37 Date date;
38
39 public:
40 SatFile();
41 SatFile( const char *filename, int raccess, int rtype );
42 SatFile( const char *filename, int raccess, const char *rtype );
43 SatFile( Filename &filename, int raccess );
44 ~SatFile();
45 int init();
46 int open( const char *filename, int raccess, int rtype );
47 int open( const char *filename, int raccess, const char *rtype );
48 int open( Filename &filename, int raccess );
49 static int getType( const char *str );
50 bool isOpen();
51 int rewind();
52 int close();
53 int getHeader( Image &data );
54 int read( Image &data );
55 int read( const char *filename, int type, Image &image );
56 int read( const char *filename, const char *type, Image &image );
57 int read( Filename &filename, Image &image );
58 int write( Image &data );
59 int write( const char *filename, int type, Image &image );
60 int setMapRemove( int val );
61 int setDomain( const char *str );
62 int setCalibration( const char *str );
63
64 static int checkType( const char *filename );
65 /*
66 Satellite types
67 */
68 enum Type {
69 UNK,
70 RAW,
71 IMG,
72 IMGZ,
73 GINI,
74 GINIZ,
75 GINIP,
76 NETCDF,
77 UNISYS,
78 AREA,
79 TIFF,
80 LRIT,
81 GIF,
82 PNG
83 };
84 };
85}
86#endif
This class decodes McIDAS AREA files.
Definition AreaFile.h:15
This class stores date and time information.
Definition Date.h:8
This class accesses files.
Definition File.h:15
This class creates filenames.
Definition Filename.h:11
This class reads and writes GIF files.
Definition GifFile.h:10
This class reads satellite imagery in GINI format.
Definition GiniFile.h:10
This class defines an image.
Definition Image.h:19
This class reads and writes image files.
Definition ImgWxpFile.h:9
This class reads and decodes LRIT satellite data from file.
Definition LritFile.h:12
This class reads and write PNG image files.
Definition PngFile.h:8
This class reads in surface data from a netCDF file.
Definition SatCdfFile.h:9
This class reads satellite imagery from file.
Definition SatFile.h:19
int setDomain(const char *str)
Definition SatFile.cc:122
~SatFile()
Definition SatFile.cc:105
int setMapRemove(int val)
Definition SatFile.cc:113
int init()
Definition SatFile.cc:52
int getHeader(Image &data)
Definition SatFile.cc:299
int open(const char *filename, int raccess, int rtype)
Definition SatFile.cc:143
int read(Image &data)
Definition SatFile.cc:314
bool isOpen()
Definition SatFile.cc:268
SatFile()
Definition SatFile.cc:65
int rewind()
Definition SatFile.cc:275
int close()
Definition SatFile.cc:288
int setCalibration(const char *str)
Definition SatFile.cc:131
static int checkType(const char *filename)
Definition SatFile.cc:32
This class reads satellite imagery in Unisys format.
Definition SatUniFile.h:10
This class reads and writes GIF files.
Definition TiffFile.h:9
All WXP classes fall under the WXP namespace.
Definition Angle.h:4