WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
SatCdfFile.h
1#ifndef _WINC_SATCDFFILE
2#define _WINC_SATCDFFILE
3
4#include <WXP/NetCdfFile.h>
5#include <WXP/Date.h>
6#include <WXP/Image.h>
7
8namespace WXP {
9 class SatCdfFile {
10 int type;
11 int ver;
12 int access;
13 int nx, ny;
14 NetCdfFile cdf;
15 Date date;
16 bool opened;
17
18 public:
19 SatCdfFile( );
20 SatCdfFile( const char *filename );
21 SatCdfFile( const char *filename, int access );
22 ~SatCdfFile( );
23 bool isOpen();
24 int open( const char *filename, int access );
25 int open( const char *filename );
26 int rewind( );
27 int close( );
28 int setDate( Date &rdate );
29 int getDate( Date &rdate );
30 int readHeader( Image &data );
31 int readData( Image &data );
32 int read( Image &data );
33 int write( Image &data );
34
35 static int checkType( const char *filename );
36 // CDF types
37 enum Type {
38 UNK,
39 RAW,
40 DATA,
41 IMAGE,
42 CMI };
43 };
44}
45#endif
This class stores date and time information.
Definition Date.h:8
This class defines an image.
Definition Image.h:19
This class is an access layer to netCDF files.
Definition NetCdfFile.h:11
This class reads in surface data from a netCDF file.
Definition SatCdfFile.h:9
int close()
Definition SatCdfFile.cc:115
int rewind()
Definition SatCdfFile.cc:108
int setDate(Date &rdate)
Definition SatCdfFile.cc:134
int open(const char *filename, int access)
Definition SatCdfFile.cc:73
SatCdfFile()
Definition SatCdfFile.cc:47
int getDate(Date &rdate)
Definition SatCdfFile.cc:143
static int checkType(const char *filename)
Definition SatCdfFile.cc:34
int readHeader(Image &data)
Definition SatCdfFile.cc:152
~SatCdfFile()
Definition SatCdfFile.cc:126
int readData(Image &data)
Definition SatCdfFile.cc:511
All WXP classes fall under the WXP namespace.
Definition Angle.h:4