bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
|
#include <GeoFile.h>
Public Member Functions | |
void | close_sidecar_file () |
GeoFile (const std::string &data_file_name) | |
Open and read the sidecar file for a given data file. | |
void | get_stare_indices (const std::string &var_name, std::vector< STARE_ArrayIndexSpatialValue > &values) |
size_t | get_variable_cols (std::string variable_name) const |
size_t | get_variable_rows (std::string variable_name) const |
Protected Member Functions | |
int | read_sidecar_file (const std::string &file_name) |
Read a sidecar file. | |
std::string | sanitize_pathname (string path) const |
Strip away path info. Use in error messages. | |
std::string | sidecar_filename (const std::string &file_name) const |
|
inlineexplicit |
void GeoFile::close_sidecar_file | ( | ) |
Close sidecar file.
ncid | ID of the sidecar file. |
Definition at line 191 of file GeoFile.cc.
void GeoFile::get_stare_indices | ( | const std::string & | var_name, |
std::vector< STARE_ArrayIndexSpatialValue > & | values ) |
Get the STARE indices for data variable.
ncid | ID of the open sidecar file. |
var_name | The name of the data variable. |
values | Value-result parameter; holds the returned stare indices. |
Definition at line 137 of file GeoFile.cc.
size_t GeoFile::get_variable_cols | ( | std::string | variable_name | ) | const |
Definition at line 172 of file GeoFile.cc.
size_t GeoFile::get_variable_rows | ( | std::string | variable_name | ) | const |
Definition at line 160 of file GeoFile.cc.
|
protected |
Read a sidecar file.
Open and read information (except the actual stare indices) from a STARE sidecar file. Each set of stare indices and the variables geolocation information they describe is recorded in the GeoFile instance.
The caller is responsible for calling close_sidecar_file().
fileName | Full pathname of the sidecar file. |
ncid | Value-result parameter that returns the ncid of the open file |
Definition at line 56 of file GeoFile.cc.
Strip away path info. Use in error messages.
path | Full pathname, etc., to a file. |
Definition at line 22 of file GeoFile.cc.
|
protected |
Get STARE index sidecar filename.
Definition at line 30 of file GeoFile.cc.