TECA
The Toolkit for Extreme Climate Analysis
teca_cf_layout_manager Class Reference

Puts data on disk using NetCDF CF2 conventions. More...

#include <teca_cf_layout_manager.h>

Collaboration diagram for teca_cf_layout_manager:

Classes

struct  var_def_t
 

Public Member Functions

int create (const std::string &file_name, const std::string &date_format, const teca_metadata &md_in, int mode_flags, int use_unlimited_dim)
 
int define (const teca_metadata &md, unsigned long *extent, const std::vector< std::string > &point_arrays, const std::vector< std::string > &info_arrays, int compression_level)
 
int write (long index, const const_p_teca_array_collection &point_arrays, const const_p_teca_array_collection &info_arrays)
 
int close ()
 
bool opened ()
 
bool defined ()
 
bool completed ()
 
int flush ()
 
int to_stream (std::ostream &os)
 

Static Public Member Functions

static p_teca_cf_layout_manager New (MPI_Comm comm, long file_id, long first_index, long n_indices)
 

Protected Member Functions

 teca_cf_layout_manager (MPI_Comm fcomm, long fid, long first_id, long n_ids)
 
 teca_cf_layout_manager (const teca_cf_layout_manager &)=delete
 
 teca_cf_layout_manager (const teca_cf_layout_manager &&)=delete
 
void operator= (const teca_cf_layout_manager &)=delete
 
void operator= (const teca_cf_layout_manager &&)=delete
 

Protected Attributes

MPI_Comm comm
 
long file_id
 
std::string file_name
 
teca_netcdf_util::netcdf_handle handle
 
long first_index
 
long n_indices
 
long n_written
 
int mode_flags
 
int use_unlimited_dim
 
int n_dims
 
size_t dims [4]
 
std::map< std::string, var_def_tvar_def
 
std::string t_variable
 
p_teca_double_array t
 

Detailed Description

Puts data on disk using NetCDF CF2 conventions.


The documentation for this class was generated from the following file: