OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
ncdas.cc File Reference
#include "config_nc.h"
#include <iostream>
#include <string>
#include <sstream>
#include <iomanip>
#include <vector>
#include <netcdf.h>
#include <util.h>
#include <escaping.h>
#include <DAS.h>
#include <BESDebug.h>
#include "NCRequestHandler.h"
#include "nc_util.h"
Include dependency graph for ncdas.cc:

Go to the source code of this file.

Macros

#define ATTR_STRING_QUOTE_FIX
 
#define READ_ATTRIBUTES_MACRO   read_attributes_netcdf3
 

Functions

void nc_read_dataset_attributes (DAS &das, const string &filename)
 Given a reference to an instance of class DAS and a filename that refers to a netcdf file, read the netcdf file and extract all the attributes of each of its variables. More...
 

Macro Definition Documentation

#define ATTR_STRING_QUOTE_FIX

Definition at line 62 of file ncdas.cc.

#define READ_ATTRIBUTES_MACRO   read_attributes_netcdf3

Definition at line 67 of file ncdas.cc.

Referenced by nc_read_dataset_attributes().

Function Documentation

void nc_read_dataset_attributes ( DAS &  das,
const string &  filename 
)

Given a reference to an instance of class DAS and a filename that refers to a netcdf file, read the netcdf file and extract all the attributes of each of its variables.

Add the variables and their attributes to the instance of DAS.

Parameters
dasA reference to the DAS object where the attribute information should be stored.
filenameThe name of the source file.

Definition at line 548 of file ncdas.cc.

References BESDEBUG, NCRequestHandler::get_ignore_unknown_types(), is_user_defined_type(), print_attr(), and READ_ATTRIBUTES_MACRO.

Referenced by NCRequestHandler::nc_build_das(), NCRequestHandler::nc_build_data(), NCRequestHandler::nc_build_dds(), and NCRequestHandler::nc_build_dmr().

Here is the call graph for this function: