bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
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 <libdap/debug.h>
#include <mfhdf.h>
#include <hdfclass.h>
#include <hcstream.h>
#include <libdap/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 &)
 
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

◆ SIGNED_BYTE_TO_INT32

#define SIGNED_BYTE_TO_INT32   1

Definition at line 97 of file hc2dap.cc.

Function Documentation

◆ DAPTypeName()

string DAPTypeName ( int32 hdf_type)

Definition at line 445 of file hc2dap.cc.

◆ LoadArrayFromGR()

void LoadArrayFromGR ( HDFArray * ar,
const hdf_gri & gr )

Definition at line 516 of file hc2dap.cc.

◆ LoadArrayFromSDS()

void LoadArrayFromSDS ( HDFArray * ar,
const hdf_sds & sds )

Definition at line 487 of file hc2dap.cc.

◆ LoadGridFromSDS()

void LoadGridFromSDS ( HDFGrid * gr,
const hdf_sds & sds )

Definition at line 547 of file hc2dap.cc.

◆ LoadSequenceFromVdata()

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

Definition at line 596 of file hc2dap.cc.

◆ LoadStructureFromField()

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

Definition at line 618 of file hc2dap.cc.

◆ LoadStructureFromVgroup()

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

Definition at line 659 of file hc2dap.cc.

◆ NewArrayFromGR()

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

Definition at line 318 of file hc2dap.cc.

◆ NewArrayFromSDS()

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

Definition at line 288 of file hc2dap.cc.

◆ NewDAPVar()

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

Definition at line 403 of file hc2dap.cc.

◆ NewGridFromSDS()

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

Definition at line 350 of file hc2dap.cc.

◆ NewSequenceFromVdata()

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

Definition at line 119 of file hc2dap.cc.

◆ NewStructureFromVgroup()

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

Definition at line 220 of file hc2dap.cc.