Peano
Loading...
Searching...
No Matches
toolbox::curvi::NetCDFWriter Class Reference

#include <NetCDFWriter.h>

Collaboration diagram for toolbox::curvi::NetCDFWriter:

Public Member Functions

 NetCDFWriter (std::string filename, int a_nz, int a_ny, int a_nx)
void open (int o_nz=0, int o_ny=0, int o_nx=0, bool open=true, std::string prefix="")
void init (int o_nz=0, int o_ny=0, int o_nx=0)
int addVariable (std::string var_name)
void write (const size_t *start, const size_t *count, const std::vector< double > &var, int var_id)
void write (const size_t *start, const size_t *count, const std::vector< double > &var)
void close ()

Private Attributes

std::string m_filename
int nx
int ny
int nz
int ncid
int zt_var_id
int yt_var_id
int xt_var_id
int dims
std::vector< int > dim_ids

Detailed Description

Definition at line 15 of file NetCDFWriter.h.

Constructor & Destructor Documentation

◆ NetCDFWriter()

toolbox::curvi::NetCDFWriter::NetCDFWriter ( std::string filename,
int a_nz,
int a_ny,
int a_nx )

Member Function Documentation

◆ addVariable()

int toolbox::curvi::NetCDFWriter::addVariable ( std::string var_name)

◆ close()

void toolbox::curvi::NetCDFWriter::close ( )

◆ init()

void toolbox::curvi::NetCDFWriter::init ( int o_nz = 0,
int o_ny = 0,
int o_nx = 0 )

◆ open()

void toolbox::curvi::NetCDFWriter::open ( int o_nz = 0,
int o_ny = 0,
int o_nx = 0,
bool open = true,
std::string prefix = "" )

References open().

Referenced by open().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write() [1/2]

void toolbox::curvi::NetCDFWriter::write ( const size_t * start,
const size_t * count,
const std::vector< double > & var )

◆ write() [2/2]

void toolbox::curvi::NetCDFWriter::write ( const size_t * start,
const size_t * count,
const std::vector< double > & var,
int var_id )

Field Documentation

◆ dim_ids

std::vector<int> toolbox::curvi::NetCDFWriter::dim_ids
private

Definition at line 39 of file NetCDFWriter.h.

◆ dims

int toolbox::curvi::NetCDFWriter::dims
private

Definition at line 38 of file NetCDFWriter.h.

◆ m_filename

std::string toolbox::curvi::NetCDFWriter::m_filename
private

Definition at line 31 of file NetCDFWriter.h.

◆ ncid

int toolbox::curvi::NetCDFWriter::ncid
private

Definition at line 34 of file NetCDFWriter.h.

◆ nx

int toolbox::curvi::NetCDFWriter::nx
private

Definition at line 33 of file NetCDFWriter.h.

◆ ny

int toolbox::curvi::NetCDFWriter::ny
private

Definition at line 33 of file NetCDFWriter.h.

◆ nz

int toolbox::curvi::NetCDFWriter::nz
private

Definition at line 33 of file NetCDFWriter.h.

◆ xt_var_id

int toolbox::curvi::NetCDFWriter::xt_var_id
private

Definition at line 37 of file NetCDFWriter.h.

◆ yt_var_id

int toolbox::curvi::NetCDFWriter::yt_var_id
private

Definition at line 36 of file NetCDFWriter.h.

◆ zt_var_id

int toolbox::curvi::NetCDFWriter::zt_var_id
private

Definition at line 35 of file NetCDFWriter.h.


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