OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
hc2dap.cc File Reference

Generate DAP Grids from HDF-EOS2 Grid files. More...

#include "config_hdf.h"
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <algorithm>
#include <iostream>
#include <BESDebug.h>
#include <debug.h>
#include <mfhdf.h>
#include <hdfclass.h>
#include <hcstream.h>
#include "escaping.h"
#include "HDFInt32.h"
#include "HDFInt16.h"
#include "HDFUInt32.h"
#include "HDFUInt16.h"
#include "HDFFloat64.h"
#include "HDFFloat32.h"
#include "HDFByte.h"
#include "HDFStr.h"
#include "HDFArray.h"
#include "HDFGrid.h"
#include "HDFSequence.h"
#include "HDFStructure.h"
#include "hdfutil.h"
#include "dhdferr.h"
#include "hdf-maps.h"
Include dependency graph for hc2dap.cc:

Go to the source code of this file.

Macros

#define SIGNED_BYTE_TO_INT32   1
 

Functions

string DAPTypeName (int32 hdf_type)
 
void LoadArrayFromGR (HDFArray *ar, const hdf_gri &gr)
 
void LoadArrayFromSDS (HDFArray *ar, const hdf_sds &sds)
 
void LoadGridFromSDS (HDFGrid *gr, const hdf_sds &sds)
 
void LoadSequenceFromVdata (HDFSequence *seq, hdf_vdata &vd, int row)
 
void LoadStructureFromField (HDFStructure *stru, hdf_field &f, int row)
 
void LoadStructureFromVgroup (HDFStructure *str, const hdf_vgroup &vg, const string &hdf_file)
 
HDFArrayNewArrayFromGR (const hdf_gri &gr, const string &dataset)
 
HDFArrayNewArrayFromSDS (const hdf_sds &sds, const string &dataset)
 
BaseType * NewDAPVar (const string &varname, const string &dataset, int32 hdf_type)
 
HDFGridNewGridFromSDS (const hdf_sds &sds, const string &dataset)
 
HDFSequenceNewSequenceFromVdata (const hdf_vdata &vd, const string &dataset)
 
HDFStructureNewStructureFromVgroup (const hdf_vgroup &vg, vg_map &vgmap, sds_map &sdmap, vd_map &vdmap, gr_map &grmap, const string &dataset)
 

Detailed Description

Generate DAP Grids from HDF-EOS2 Grid files.

This file contains the functions that generate DAP Grid out of HDF-EOS2 grid files when –enable-cf configuration option is enabled.

Definition in file hc2dap.cc.

Macro Definition Documentation

#define SIGNED_BYTE_TO_INT32   1

Definition at line 97 of file hc2dap.cc.

Function Documentation

string DAPTypeName ( int32  hdf_type)

Definition at line 399 of file hc2dap.cc.

Referenced by AddHDFAttr().

void LoadArrayFromGR ( HDFArray ar,
const hdf_gri gr 
)

Definition at line 461 of file hc2dap.cc.

References hdf_genvec::data(), ExportDataForDODS(), hdf_gri::image, and hdf_genvec::number_type().

Referenced by HDFArray::read_tagref().

Here is the call graph for this function:

void LoadArrayFromSDS ( HDFArray ar,
const hdf_sds sds 
)

Definition at line 441 of file hc2dap.cc.

References hdf_genvec::data(), hdf_sds::data, ExportDataForDODS(), and hdf_genvec::number_type().

Referenced by LoadGridFromSDS(), and HDFArray::read_tagref().

Here is the call graph for this function:

void LoadGridFromSDS ( HDFGrid gr,
const hdf_sds sds 
)

Definition at line 484 of file hc2dap.cc.

References hdf_sds::dims, ExportDataForDODS(), LoadArrayFromSDS(), and THROW.

Referenced by HDFGrid::read_tagref().

Here is the call graph for this function:

void LoadSequenceFromVdata ( HDFSequence seq,
hdf_vdata vd,
int  row 
)

Definition at line 523 of file hc2dap.cc.

References hdf_vdata::fields, LoadStructureFromField(), HDFStructure::set_read_p(), and THROW.

Referenced by HDFSequence::read_tagref().

Here is the call graph for this function:

void LoadStructureFromField ( HDFStructure stru,
hdf_field f,
int  row 
)

Definition at line 546 of file hc2dap.cc.

References ExportDataForDODS(), THROW, and hdf_field::vals.

Referenced by LoadSequenceFromVdata().

Here is the call graph for this function:

void LoadStructureFromVgroup ( HDFStructure str,
const hdf_vgroup vg,
const string &  hdf_file 
)

Definition at line 585 of file hc2dap.cc.

References BESDEBUG, hdf_vgroup::refs, hdf_vgroup::tags, and hdf_vgroup::vnames.

Referenced by HDFStructure::read_tagref().

HDFArray* NewArrayFromGR ( const hdf_gri gr,
const string &  dataset 
)

Definition at line 272 of file hc2dap.cc.

References hdf_gri::dims, hdf_gri::image, hdf_gri::name, NewDAPVar(), hdf_gri::num_comp, and hdf_genvec::number_type().

Referenced by NewStructureFromVgroup().

Here is the call graph for this function:

HDFArray* NewArrayFromSDS ( const hdf_sds sds,
const string &  dataset 
)

Definition at line 242 of file hc2dap.cc.

References hdf_sds::data, hdf_sds::dims, hdf_sds::name, NewDAPVar(), and hdf_genvec::number_type().

Referenced by NewGridFromSDS(), and NewStructureFromVgroup().

Here is the call graph for this function:

BaseType * NewDAPVar ( const string &  varname,
const string &  dataset,
int32  hdf_type 
)

Definition at line 357 of file hc2dap.cc.

Referenced by NewArrayFromGR(), NewArrayFromSDS(), NewGridFromSDS(), and NewSequenceFromVdata().

HDFGrid* NewGridFromSDS ( const hdf_sds sds,
const string &  dataset 
)

Definition at line 304 of file hc2dap.cc.

References BESDEBUG, hdf_sds::dims, hdf_sds::has_scale(), hdf_sds::name, NewArrayFromSDS(), and NewDAPVar().

Referenced by NewStructureFromVgroup().

Here is the call graph for this function:

HDFSequence* NewSequenceFromVdata ( const hdf_vdata vd,
const string &  dataset 
)

Definition at line 120 of file hc2dap.cc.

References hdf_vdata::fields, hdf_vdata::name, and NewDAPVar().

Referenced by NewStructureFromVgroup().

Here is the call graph for this function:

HDFStructure* NewStructureFromVgroup ( const hdf_vgroup vg,
vg_map vgmap,
sds_map sdmap,
vd_map vdmap,
gr_map grmap,
const string &  dataset 
)

Definition at line 177 of file hc2dap.cc.

References hdf_vgroup::name, NewArrayFromGR(), NewArrayFromSDS(), NewGridFromSDS(), NewSequenceFromVdata(), hdf_vgroup::refs, and hdf_vgroup::tags.

Here is the call graph for this function: