OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
HE2CF Class Reference

A class for writing attributes from an HDF-EOS2 file. More...

#include <HE2CF.h>

Collaboration diagram for HE2CF:
Collaboration graph

Public Member Functions

bool close ()
 closes the opened file. More...
 
string get_metadata (const string &metadataname, bool &suffix_is_num, vector< string > &non_num_names, vector< string > &non_num_data)
 retrieves the merged metadata. More...
 
 HE2CF ()
 
bool open (const string &filename, const int sd_id, const int file_id)
 openes HDF4 file. More...
 
void set_DAS (DAS *das)
 sets DAS pointer so that we can bulid attribute tables. More...
 
bool set_non_ecsmetadata_attrs ()
 
bool write_attribute (const string &gname, const string &fname, const string &newfname, int n_groups, int fieldtype)
 writes attribute table into DAS given grid/swath name and its field name. More...
 
bool write_attribute_coordinates (const string &varname, string coord)
 writes coordinates attribute into varname attribute table. More...
 
bool write_attribute_FillValue (const string &varname, int type, float val)
 writes _FillValue attribute into varname attribute table. More...
 
bool write_attribute_units (const string &varname, string units)
 writes units attribute into varname attribute table. More...
 
virtual ~HE2CF ()
 

Detailed Description

A class for writing attributes from an HDF-EOS2 file.

This class contains functions that generates SDS attributes and Vdata attributes. Since HDF-EOS2 library API don't have access to field attributes, we need to use generic HDF4 API.

For most HDF-EOS2 files, Grid doesn't use Vdata. Swath has Vdata but fields with Vdata normally contain attributes. However, we still check and provide ways to generate attributes.

Author
Hyo-Kyung Lee hyokl.nosp@m.ee@h.nosp@m.dfgro.nosp@m.up.o.nosp@m.rg

Definition at line 57 of file HE2CF.h.

Constructor & Destructor Documentation

HE2CF::HE2CF ( )

Definition at line 1026 of file HE2CF.cc.

References NULL.

HE2CF::~HE2CF ( )
virtual

Definition at line 1036 of file HE2CF.cc.

Member Function Documentation

bool HE2CF::close ( void  )

closes the opened file.

Definition at line 1043 of file HE2CF.cc.

string HE2CF::get_metadata ( const string &  metadataname,
bool &  suffix_is_num,
vector< string > &  non_num_names,
vector< string > &  non_num_data 
)

retrieves the merged metadata.

Definition at line 1059 of file HE2CF.cc.

bool HE2CF::open ( const string &  filename,
const int  sd_id,
const int  file_id 
)

openes HDF4 file.

Definition at line 1068 of file HE2CF.cc.

void HE2CF::set_DAS ( DAS *  das)

sets DAS pointer so that we can bulid attribute tables.

Definition at line 332 of file HE2CF.cc.

bool HE2CF::set_non_ecsmetadata_attrs ( )

Definition at line 337 of file HE2CF.cc.

References HDFCFUtil::escattr(), HDFCFUtil::get_CF_string(), NULL, HDFCFUtil::print_attr(), and HDFCFUtil::print_type().

Here is the call graph for this function:

bool HE2CF::write_attribute ( const string &  gname,
const string &  fname,
const string &  newfname,
int  n_groups,
int  fieldtype 
)

writes attribute table into DAS given grid/swath name and its field name.

Definition at line 1098 of file HE2CF.cc.

bool HE2CF::write_attribute_coordinates ( const string &  varname,
string  coord 
)

writes coordinates attribute into varname attribute table.

This attribute plays an essential role for two dimensional coordinate system like Swath.

Definition at line 1230 of file HE2CF.cc.

bool HE2CF::write_attribute_FillValue ( const string &  varname,
int  type,
float  val 
)

writes _FillValue attribute into varname attribute table.

This attribute plays an essential role for two dimensional coordinate system like Swath.

Definition at line 1151 of file HE2CF.cc.

References NULL, HDFCFUtil::print_attr(), and HDFCFUtil::print_type().

Here is the call graph for this function:

bool HE2CF::write_attribute_units ( const string &  varname,
string  units 
)

writes units attribute into varname attribute table.

Any existing units attribute will be overwritten by this function.

Definition at line 1243 of file HE2CF.cc.


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