WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
WXP::UpaFile Class Reference

This class reads in and parses upper air data from a converted file. More...

#include "../include/UpaFile.h"

Public Types

enum  Type { UNK , WXP , NETCDF , UNISYS }

Public Member Functions

 UpaFile (const char *filename)
 UpaFile (const char *filename, int access, int type)
int open (const char *filename, int access, int type)
int open (const char *filename)
int getDate (Date &rdate)
int setDate (Date &rdate)
bool isOpen ()
int rewind ()
int close ()
int read (UpaRawinData &data)
int readId (String &rid)
Date getDate ()
const char * getDatestr ()
int write (UpaRawinData &data)

Static Public Member Functions

static int checkType (const char *filename)

Detailed Description

This class reads in and parses upper air data from a converted file.

Author
Dan Vietor

Member Function Documentation

◆ getDate()

int UpaFile::getDate ( Date & rdate)

Gets the date of the file

Return values
rdateDate class to put date information

Referenced by WXP::UpaRaw::compute(), WXP::ProfPlot::draw(), WXP::UpaPlot::draw(), WXP::UpaXSectCont::draw(), and WXP::UpaXSectPlot::draw().

◆ read()

int UpaFile::read ( UpaRawinData & data)

This function reads a upper air report

Parameters
dataOutput station report

Referenced by WXP::UpaRaw::compute(), WXP::HodoPlot::draw(), WXP::ProfPlot::draw(), WXP::SoundPlot::draw(), WXP::UpaPlot::draw(), WXP::UpaXSectCont::draw(), and WXP::UpaXSectPlot::draw().

◆ readId()

int UpaFile::readId ( String & rid)

This function reads just the upper air report identifier

Parameters
dataOutput station report

◆ setDate()

int UpaFile::setDate ( Date & rdate)

Sets the date of the file

Parameters
rdateDate of file

◆ write()

int UpaFile::write ( UpaRawinData & data)

This function writes a upper air report

Parameters
dataStation report to write

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