bes  Updated for version 3.20.6
HDFSP::SD Class Reference

This class retrieves all SDS objects and SD file attributes. More...

#include <HDFSP.h>

Collaboration diagram for HDFSP::SD:
Collaboration graph

Public Member Functions

const std::vector< Attribute * > & getAttributes () const
 Public interface to obtain the SD(file) attributes. More...
 
const std::vector< SDField * > & getFields () const
 Redundant member function. More...
 
void obtain_noneos2_sds_path (int32, char *, int32) throw (Exception)
 Obtain SDS path, this is like a clone of obtain_path in File class, except the Vdata and some minor parts. More...
 
 ~SD ()
 Destructor. More...
 

Static Public Member Functions

static SDRead (int32 sdfileid, int32 hfileid) throw (Exception)
 Read the information of all SDS objects from the HDF4 file. More...
 
static SDRead_Hybrid (int32 sdfileid, int32 hfileid) throw (Exception)
 Read the information of all hybrid SDS objects from the HDF4 file. More...
 

Protected Member Functions

 SD (int32 sdfileid, int32 hfileid)
 

Protected Attributes

std::vector< Attribute * > attrs
 SD attributes stored in vectors. More...
 
std::map< std::string, std::string > dimcvarlist
 dimension name to coordinate variable name list: the key list to generate CF "coordinates" attributes. More...
 
std::set< std::string > fulldimnamelist
 Full dimension name list set. More...
 
std::map< std::string, int32 > n1dimnamelist
 
std::map< std::string, std::string > n2dimnamelist
 Original dimension name to corrected dimension name map. More...
 
std::set< std::string > nonmisscvdimnamelist
 
std::map< int32, int > refindexlist
 SDS reference number to index map, use to quickly obtain the SDS id. More...
 
std::vector< SDField * > sdfields
 SDS objects stored in vectors. More...
 
std::list< int32 > sds_ref_list
 SDS reference number list. More...
 

Friends

class File
 

Detailed Description

This class retrieves all SDS objects and SD file attributes.

Definition at line 557 of file HDFSP.h.

Constructor & Destructor Documentation

◆ ~SD()

SD::~SD ( )

Destructor.

Definition at line 152 of file HDFSP.cc.

Member Function Documentation

◆ getAttributes()

const std::vector< Attribute * >& HDFSP::SD::getAttributes ( ) const
inline

Public interface to obtain the SD(file) attributes.

Definition at line 583 of file HDFSP.h.

◆ getFields()

const std::vector< SDField * >& HDFSP::SD::getFields ( ) const
inline

Redundant member function.

Public interface to obtain information of all SDS vectors(objects).

Definition at line 577 of file HDFSP.h.

◆ obtain_noneos2_sds_path()

void SD::obtain_noneos2_sds_path ( int32  file_id,
char *  full_path,
int32  pobj_ref 
)
throw (Exception
)

Obtain SDS path, this is like a clone of obtain_path in File class, except the Vdata and some minor parts.

Definition at line 3316 of file HDFSP.cc.

◆ Read()

SD * SD::Read ( int32  sdfileid,
int32  hfileid 
)
throw (Exception
)
static

Read the information of all SDS objects from the HDF4 file.

Definition at line 1599 of file HDFSP.cc.

◆ Read_Hybrid()

SD * SD::Read_Hybrid ( int32  sdfileid,
int32  hfileid 
)
throw (Exception
)
static

Read the information of all hybrid SDS objects from the HDF4 file.

Definition at line 1948 of file HDFSP.cc.

Member Data Documentation

◆ attrs

std::vector< Attribute * > HDFSP::SD::attrs
protected

SD attributes stored in vectors.

Definition at line 605 of file HDFSP.h.

◆ dimcvarlist

std::map< std::string, std::string > HDFSP::SD::dimcvarlist
protected

dimension name to coordinate variable name list: the key list to generate CF "coordinates" attributes.

Definition at line 629 of file HDFSP.h.

◆ fulldimnamelist

std::set< std::string > HDFSP::SD::fulldimnamelist
protected

Full dimension name list set.

Definition at line 621 of file HDFSP.h.

◆ n1dimnamelist

std::map< std::string, int32 > HDFSP::SD::n1dimnamelist
protected

Unique dimension name to its size map, may be replaced in the current implementation.
Still leave it here for potential fakeDim handling in the future.

Definition at line 615 of file HDFSP.h.

◆ n2dimnamelist

std::map< std::string, std::string > HDFSP::SD::n2dimnamelist
protected

Original dimension name to corrected dimension name map.

Definition at line 618 of file HDFSP.h.

◆ nonmisscvdimnamelist

std::set< std::string > HDFSP::SD::nonmisscvdimnamelist
protected

This set stores non-missing coordinate variable dimension names. Many third dimensions of HDF4 files have to be treated as missing coordinate variables. But latitude and longitude's corresponding dimensions are normally provided in the file. So this set is used to exclude these dimensions when creating the corresponding missing fields.

Definition at line 626 of file HDFSP.h.

◆ refindexlist

std::map< int32, int > HDFSP::SD::refindexlist
protected

SDS reference number to index map, use to quickly obtain the SDS id.

Definition at line 611 of file HDFSP.h.

◆ sdfields

std::vector< SDField * > HDFSP::SD::sdfields
protected

SDS objects stored in vectors.

Definition at line 602 of file HDFSP.h.

◆ sds_ref_list

std::list<int32> HDFSP::SD::sds_ref_list
protected

SDS reference number list.

Definition at line 608 of file HDFSP.h.


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