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 #include "teca_config.h"
7 
8 class teca_metadata;
9 
10 /// Codes for dealing with teca_metadata
12 {
13 /** Given a collection of array attributes (following the conventions used by
14  * the teca_cf_reader) and a mesh extent, compute and return the valid extent
15  * of the array. This takes into account 1d and 2d arrays on a 3d mesh. Return
16  * zero if successful. The mesh_dims_active key is required, if not found 1
17  * is returned and the array_extent is set to the mesh_extent.
18  */
20 int get_array_extent(const teca_metadata &array_attributes,
21  const unsigned long mesh_extent[6], unsigned long array_extent[6]);
22 };
23 
24 #endif
teca_metadata
A generic container for meta data in the form of name=value pairs.
Definition: teca_metadata.h:21
teca_metadata_util::get_array_extent
TECA_EXPORT int get_array_extent(const teca_metadata &array_attributes, const unsigned long mesh_extent[6], unsigned long array_extent[6])
teca_error::TECA_EXPORT
p_teca_error_handler error_handler TECA_EXPORT
The global error handler instance.
teca_metadata_util
Codes for dealing with teca_metadata.
Definition: teca_metadata_util.h:11