bes Updated for version 3.20.13
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 402 of file hc2dap.cc.

◆ LoadArrayFromGR()

void LoadArrayFromGR ( HDFArray ar,
const hdf_gri gr 
)

Definition at line 464 of file hc2dap.cc.

◆ LoadArrayFromSDS()

void LoadArrayFromSDS ( HDFArray ar,
const hdf_sds sds 
)

Definition at line 444 of file hc2dap.cc.

◆ LoadGridFromSDS()

void LoadGridFromSDS ( HDFGrid gr,
const hdf_sds sds 
)

Definition at line 487 of file hc2dap.cc.

◆ LoadSequenceFromVdata()

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

Definition at line 526 of file hc2dap.cc.

◆ LoadStructureFromField()

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

Definition at line 549 of file hc2dap.cc.

◆ LoadStructureFromVgroup()

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

Definition at line 588 of file hc2dap.cc.

◆ NewArrayFromGR()

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

Definition at line 275 of file hc2dap.cc.

◆ NewArrayFromSDS()

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

Definition at line 245 of file hc2dap.cc.

◆ NewDAPVar()

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

Definition at line 360 of file hc2dap.cc.

◆ NewGridFromSDS()

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

Definition at line 307 of file hc2dap.cc.

◆ NewSequenceFromVdata()

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

Definition at line 120 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 177 of file hc2dap.cc.