WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
WXP::SfcCdfFile Class Reference

This class reads in surface data from a netCDF file. More...

#include "../include/SfcCdfFile.h"

Public Member Functions

 SfcCdfFile ()
 
 SfcCdfFile (const char *filename)
 
 SfcCdfFile (const char *filename, int access)
 
 ~SfcCdfFile ()
 
bool isOpen ()
 
int open (const char *filename, int access)
 
int rewind ()
 
int close ()
 
int setDate (Date &rdate)
 
int getDate (Date &rdate)
 
int read (SfcData &data)
 
int write (SfcData &data)
 

Static Public Member Functions

static int checkType (const char *filename)
 

Detailed Description

This class reads in surface data from a netCDF file.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ SfcCdfFile() [1/3]

SfcCdfFile::SfcCdfFile ( )

Constructor

◆ SfcCdfFile() [2/3]

SfcCdfFile::SfcCdfFile ( const char *  filename)

Constructor. Opens the surface data file (access=READ, type=UNK)

Parameters
filenameFile to open

References open(), and WXP::FileAttr::READ.

◆ SfcCdfFile() [3/3]

SfcCdfFile::SfcCdfFile ( const char *  filename,
int  raccess 
)

Constructor. Opens the surface data file

Parameters
filenameFile to open
raccessAccess type (FileAttr::READ, FileAttr::WRITE, FileAttr::APPEND)

References open().

◆ ~SfcCdfFile()

SfcCdfFile::~SfcCdfFile ( )

Destructor

Member Function Documentation

◆ checkType()

int SfcCdfFile::checkType ( const char *  filename)
static

Checks the type of data in the file

Parameters
filenameFile to check

References WXP::File::isOpen(), and WXP::File::scanf().

◆ close()

int SfcCdfFile::close ( )

Closes the surface data file

Referenced by WXP::SfcFile::close().

◆ getDate()

int SfcCdfFile::getDate ( Date rdate)

Gets the date of the file

Return values
rdateDate class to put date information

Referenced by WXP::SfcFile::getDate().

◆ open()

int SfcCdfFile::open ( const char *  filename,
int  raccess 
)

◆ read()

int SfcCdfFile::read ( SfcData data)

◆ rewind()

int SfcCdfFile::rewind ( )

Rewinds the surface data file

References WXP::FileAttr::READ.

◆ setDate()

int SfcCdfFile::setDate ( Date rdate)

Sets the date of the file

Return values
rdateDate class containing date information

Referenced by WXP::SfcFile::setDate().


The documentation for this class was generated from the following files: