|
OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
|
Map and generate DDS and DAS for the CF option for HDF-EOS5 products. More...
#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>#include <iostream>#include <sstream>#include <BESLog.h>#include <BESDebug.h>#include "parser.h"#include "heos5cfdap.h"#include "h5cfdaputil.h"#include "HDF5CFByte.h"#include "HDF5CFUInt16.h"#include "HDF5CFInt16.h"#include "HDF5CFUInt32.h"#include "HDF5CFInt32.h"#include "HDF5CFFloat32.h"#include "HDF5CFFloat64.h"#include "HDF5CFStr.h"#include "HDF5CFArray.h"#include "HDFEOS5CFMissLLArray.h"#include "HDFEOS5CFMissNonLLCVArray.h"#include "HDFEOS5CFSpecialCVArray.h"#include "he5dds.tab.hh"#include "HE5Checker.h"#include "he5das.tab.hh"
Go to the source code of this file.
Macros | |
| #define | HANDLE_CASE(tid, type) |
Functions | |
| void | gen_dap_oneeos5cvar_dds (DDS &dds, const HDF5CF::EOS5CVar *cvar, const hid_t file_id, const string &filename) |
| void | gen_eos5_cfdas (DAS &das, hid_t file_id, HDF5CF::EOS5File *f) |
| void | gen_eos5_cfdds (DDS &dds, HDF5CF::EOS5File *f) |
| int | get_metadata_num (const string &meta_str) |
| yy_buffer_state * | he5das_scan_string (const char *str) |
| Buffer state for NASA EOS metadata scanner. More... | |
| int | he5daslex_destroy () |
| int | he5dasparse (libdap::parser_arg *arg) |
| yy_buffer_state * | he5dds_scan_string (const char *str) |
| int | he5ddslex_destroy () |
| int | he5ddsparse (HE5Parser *he5parser) |
| void | map_eos5_cfdas (DAS &das, hid_t file_id, const string &filename) |
| void | map_eos5_cfdds (DDS &dds, hid_t file_id, const string &filename) |
| void | read_ecs_metadata (hid_t s_file_id, string &total_strmeta_value, string &total_coremeta_value, string &total_archmeta_value, string &total_xmlmeta_value, string &total_submeta_value, string &total_prometa_value, string &total_othermeta_value, bool s_st_only) |
Map and generate DDS and DAS for the CF option for HDF-EOS5 products.
This file also includes a function to retrieve ECS metadata in C++ string forms.
Definition in file heos5cfdap.cc.
| #define HANDLE_CASE | ( | tid, | |
| type | |||
| ) |
Referenced by gen_dap_oneeos5cvar_dds().
| void gen_dap_oneeos5cvar_dds | ( | DDS & | dds, |
| const HDF5CF::EOS5CVar * | cvar, | ||
| const hid_t | file_id, | ||
| const string & | filename | ||
| ) |
Definition at line 390 of file heos5cfdap.cc.
References CV_EXIST, CV_LAT_MISS, CV_LON_MISS, CV_MODIFY, CV_NONLATLON_MISS, CV_SPECIAL, HDF5CF::CVar::getCVType(), HDF5CF::Var::getDimensions(), HDF5CF::Var::getFullPath(), HDF5CF::Var::getNewName(), HDF5CF::EOS5CVar::getOrigin(), HDF5CF::EOS5CVar::getPixelReg(), HDF5CF::EOS5CVar::getPointLeft(), HDF5CF::EOS5CVar::getPointLower(), HDF5CF::EOS5CVar::getPointRight(), HDF5CF::EOS5CVar::getPointUpper(), HDF5CF::EOS5CVar::getProjCode(), HDF5CF::Var::getRank(), HDF5CF::Var::getType(), HDF5CF::EOS5CVar::getXDimSize(), HDF5CF::EOS5CVar::getYDimSize(), H5CHAR, H5FLOAT32, H5FLOAT64, H5FSTRING, H5INT16, H5INT32, H5UCHAR, H5UINT16, H5UINT32, H5VSTRING, HANDLE_CASE, and NULL.
Referenced by gen_eos5_cfdds().

| void gen_eos5_cfdas | ( | DAS & | das, |
| hid_t | file_id, | ||
| HDF5CF::EOS5File * | f | ||
| ) |
Definition at line 581 of file heos5cfdap.cc.
References BESDEBUG, HDF5CFDAPUtil::check_beskeys(), gen_dap_oneobj_das(), HDF5CF::File::getAttributes(), HDF5CF::EOS5File::getCVars(), HDF5CF::File::getGroups(), HDF5CF::File::getVars(), he5das_scan_string(), he5daslex_destroy(), he5dasparse(), NULL, read_ecs_metadata(), HDF5CFDAPUtil::replace_double_quote(), and BESLog::TheLog().
Referenced by map_eos5_cfdas().

| void gen_eos5_cfdds | ( | DDS & | dds, |
| HDF5CF::EOS5File * | f | ||
| ) |
Definition at line 364 of file heos5cfdap.cc.
References BESDEBUG, gen_dap_oneeos5cvar_dds(), gen_dap_onevar_dds(), HDF5CF::EOS5File::getCVars(), HDF5CF::File::getFileID(), HDF5CF::File::getPath(), and HDF5CF::File::getVars().
Referenced by map_eos5_cfdds().

| int get_metadata_num | ( | const string & | meta_str | ) |
Definition at line 1572 of file heos5cfdap.cc.
Referenced by read_ecs_metadata().
| yy_buffer_state* he5das_scan_string | ( | const char * | str | ) |
Buffer state for NASA EOS metadata scanner.
Referenced by gen_eos5_cfdas().
| int he5daslex_destroy | ( | void | ) |
Definition at line 2019 of file lex.he5das.cc.
References he5das_delete_buffer(), he5dasfree(), he5daspop_buffer_state(), NULL, YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.
Referenced by gen_eos5_cfdas().

| int he5dasparse | ( | libdap::parser_arg * | arg | ) |
Referenced by gen_eos5_cfdas().
| yy_buffer_state* he5dds_scan_string | ( | const char * | str | ) |
Referenced by map_eos5_cfdas(), and map_eos5_cfdds().
| int he5ddslex_destroy | ( | void | ) |
Definition at line 2187 of file lex.he5dds.cc.
References he5dds_delete_buffer(), he5ddsfree(), he5ddspop_buffer_state(), NULL, YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.
Referenced by map_eos5_cfdas(), and map_eos5_cfdds().

| int he5ddsparse | ( | HE5Parser * | he5parser | ) |
Referenced by map_eos5_cfdas(), and map_eos5_cfdds().
| void map_eos5_cfdas | ( | DAS & | das, |
| hid_t | file_id, | ||
| const string & | filename | ||
| ) |
Definition at line 232 of file heos5cfdap.cc.
References HDF5CF::EOS5File::Add_Dim_Name(), HDF5CF::EOS5File::Add_EOS5File_Info(), HDF5CF::EOS5File::Add_Supplement_Attrs(), HDF5CF::EOS5File::Adjust_Attr_Info(), HDF5CF::EOS5File::Adjust_EOS5Dim_Info(), HDF5CF::EOS5File::Adjust_Obj_Name(), HDF5CF::EOS5File::Adjust_Var_Dim_NewName_Before_Flattening(), HDF5CF::EOS5File::Adjust_Var_NewName_After_Parsing(), BESDEBUG, HDF5CF::EOS5File::Check_Aura_Product_Status(), HDF5CFDAPUtil::check_beskeys(), HE5Checker::check_grids_missing_projcode(), HE5Checker::check_grids_multi_latlon_coord_vars(), HE5Checker::check_grids_support_projcode(), HE5Checker::check_grids_unknown_parameters(), HDF5CF::EOS5File::Flatten_Obj_Name(), gen_eos5_cfdas(), HDF5CF::EOS5File::Handle_Coor_Attr(), HDF5CF::EOS5File::Handle_CVar(), HDF5CF::EOS5File::Handle_Obj_NameClashing(), HDF5CF::EOS5File::Handle_SpVar_Attr(), HDF5CF::EOS5File::Handle_Unsupported_Dspace(), HDF5CF::EOS5File::Handle_Unsupported_Dtype(), he5dds_scan_string(), he5ddslex_destroy(), he5ddsparse(), NULL, read_ecs_metadata(), HDF5CF::EOS5File::Retrieve_H5_Info(), HDF5CF::EOS5File::Retrieve_H5_Supported_Attr_Values(), HDF5CF::EOS5File::Set_COARDS_Status(), HE5Checker::set_grids_missing_pixreg_orig(), and HDF5CF::Exception::what().
Referenced by read_cfdas().

| void map_eos5_cfdds | ( | DDS & | dds, |
| hid_t | file_id, | ||
| const string & | filename | ||
| ) |
Definition at line 77 of file heos5cfdap.cc.
References HDF5CF::EOS5File::Add_Dim_Name(), HDF5CF::EOS5File::Add_EOS5File_Info(), HDF5CF::EOS5File::Adjust_Dim_Name(), HDF5CF::EOS5File::Adjust_EOS5Dim_Info(), HDF5CF::EOS5File::Adjust_Obj_Name(), HDF5CF::EOS5File::Adjust_Var_Dim_NewName_Before_Flattening(), HDF5CF::EOS5File::Adjust_Var_NewName_After_Parsing(), BESDEBUG, HDF5CF::EOS5File::Check_Aura_Product_Status(), HDF5CFDAPUtil::check_beskeys(), HE5Checker::check_grids_missing_projcode(), HE5Checker::check_grids_multi_latlon_coord_vars(), HE5Checker::check_grids_support_projcode(), HE5Checker::check_grids_unknown_parameters(), HDF5CF::EOS5File::Flatten_Obj_Name(), gen_eos5_cfdds(), HDF5CF::EOS5File::Handle_CVar(), HDF5CF::EOS5File::Handle_DimNameClashing(), HDF5CF::EOS5File::Handle_Obj_NameClashing(), HDF5CF::EOS5File::Handle_SpVar(), HDF5CF::EOS5File::Handle_Unsupported_Dspace(), HDF5CF::EOS5File::Handle_Unsupported_Dtype(), he5dds_scan_string(), he5ddslex_destroy(), he5ddsparse(), NULL, read_ecs_metadata(), HDF5CF::EOS5File::Retrieve_H5_Info(), HDF5CF::EOS5File::Set_COARDS_Status(), HE5Checker::set_grids_missing_pixreg_orig(), and HDF5CF::Exception::what().
Referenced by read_cfdds().

| void read_ecs_metadata | ( | hid_t | s_file_id, |
| string & | total_strmeta_value, | ||
| string & | total_coremeta_value, | ||
| string & | total_archmeta_value, | ||
| string & | total_xmlmeta_value, | ||
| string & | total_submeta_value, | ||
| string & | total_prometa_value, | ||
| string & | total_othermeta_value, | ||
| bool | s_st_only | ||
| ) |
Definition at line 795 of file heos5cfdap.cc.
References ArchivedMeta, CoreMeta, get_metadata_num(), NULL, OtherMeta, ProductMeta, StructMeta, SubsetMeta, and XMLMeta.
Referenced by gen_eos5_cfdas(), map_eos5_cfdas(), and map_eos5_cfdds().
