TECA
The Toolkit for Extreme Climate Analysis
teca_metadata_util.h
Go to the documentation of this file.
1
#ifndef teca_metadata_util_h
2
#define teca_metadata_util_h
3
4
/// @file
5
6
class
teca_metadata
;
7
8
/// Codes for dealing with teca_metadata
9
namespace
teca_metadata_util
10
{
11
/** Given a collection of array attributes (following the conventions used by
12
* the teca_cf_reader) and a mesh extent, compute and return the valid extent
13
* of the array. This takes into account 1d and 2d arrays on a 3d mesh. Return
14
* zero if successful. The mesh_dims_active key is required, if not found 1
15
* is returned and the array_extent is set to the mesh_extent.
16
*/
17
int
get_array_extent
(
const
teca_metadata
&array_attributes,
18
const
unsigned
long
mesh_extent[6],
unsigned
long
array_extent[6]);
19
};
20
21
#endif
teca_metadata
A generic container for meta data in the form of name=value pairs.
Definition:
teca_metadata.h:18
teca_metadata_util::get_array_extent
int get_array_extent(const teca_metadata &array_attributes, const unsigned long mesh_extent[6], unsigned long array_extent[6])
teca_metadata_util
Codes for dealing with teca_metadata.
Definition:
teca_metadata_util.h:9
rtd_doxygen
core
teca_metadata_util.h
Generated on Thu Oct 14 2021 20:46:27 for TECA by
1.8.17