|
OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
|
A class for writing attributes from an HDF-EOS2 file. More...
#include <HE2CF.h>

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 () |
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.
| string HE2CF::get_metadata | ( | const string & | metadataname, |
| bool & | suffix_is_num, | ||
| vector< string > & | non_num_names, | ||
| vector< string > & | non_num_data | ||
| ) |
| bool HE2CF::open | ( | const string & | filename, |
| const int | sd_id, | ||
| const int | file_id | ||
| ) |
| void HE2CF::set_DAS | ( | DAS * | das | ) |
| 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().

| bool HE2CF::write_attribute | ( | const string & | gname, |
| const string & | fname, | ||
| const string & | newfname, | ||
| int | n_groups, | ||
| int | fieldtype | ||
| ) |
| bool HE2CF::write_attribute_coordinates | ( | const string & | varname, |
| string | coord | ||
| ) |
| 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().

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