ARTS  2.0.49
m_nc.h File Reference

Workspace methods and template functions for supergeneric NetCDF IO. More...

#include "arts.h"
#include "exceptions.h"
#include "workspace_ng.h"
#include "agenda_class.h"

Go to the source code of this file.

Functions

template<typename T >
void ReadNetCDF (T &, const String &, const String &, const String &, const Verbosity &)
 WORKSPACE METHOD: ReadNetCDF. More...
 
template<typename T >
void WriteNetCDF (const T &, const String &, const String &, const String &, const Verbosity &)
 WORKSPACE METHOD: WriteNetCDF. More...
 
template<typename T >
void ReadNetCDF (Workspace &ws, T &v, const String &v_name, const String &f, const String &f_name, const Verbosity &verbosity)
 
void WriteNetCDF (Workspace &ws, const Agenda &v, const String &f, const String &v_name, const String &f_name, const Verbosity &verbosity)
 

Detailed Description

Workspace methods and template functions for supergeneric NetCDF IO.

Author
Oliver Lemke olemk.nosp@m.e@co.nosp@m.re-du.nosp@m.mp.i.nosp@m.nfo
Date
2008-09-19

Definition in file m_nc.h.

Function Documentation

◆ ReadNetCDF() [1/2]

template<typename T >
void ReadNetCDF ( T &  v,
const String v_wsvname,
const String filename,
const String filename_wsvname,
const Verbosity verbosity 
)

WORKSPACE METHOD: ReadNetCDF.

Reads a workspace variable from a NetCDF file.

This method can read variables of any group.

If the filename is omitted, the variable is read from <basename>.<variable_name>.nc.

Author
Oliver Lemke
Parameters
[out]vSupergeneric output
[in]v_wsvnameGeneric Output Name
[in]filenameGeneric Input
[in]filename_wsvnameGeneric Input Name

Definition at line 78 of file m_nc.h.

Referenced by ReadNetCDF(), ReadNetCDF_sg_ArrayOfMatrix_g(), ReadNetCDF_sg_ArrayOfVector_g(), ReadNetCDF_sg_Matrix_g(), ReadNetCDF_sg_Tensor3_g(), ReadNetCDF_sg_Tensor4_g(), ReadNetCDF_sg_Tensor5_g(), and ReadNetCDF_sg_Vector_g().

◆ ReadNetCDF() [2/2]

template<typename T >
void ReadNetCDF ( Workspace ws,
T &  v,
const String v_name,
const String f,
const String f_name,
const Verbosity verbosity 
)

Definition at line 108 of file m_nc.h.

References ReadNetCDF().

◆ WriteNetCDF() [1/2]

template<typename T >
void WriteNetCDF ( const T &  v,
const String filename,
const String v_wsvname,
const String filename_wsvname,
const Verbosity verbosity 
)

WORKSPACE METHOD: WriteNetCDF.

Writes a workspace variable to a NetCDF file.

This method can write variables of any group.

If the filename is omitted, the variable is written to <basename>.<variable_name>.nc.

Author
Oliver Lemke
Parameters
[in]vGeneric Input
[in]filenameGeneric Input (Default: "")
[in]v_wsvnameGeneric Input Name
[in]filename_wsvnameGeneric Input Name

Definition at line 92 of file m_nc.h.

Referenced by WriteNetCDF(), WriteNetCDF_sg_ArrayOfMatrix_g(), WriteNetCDF_sg_ArrayOfVector_g(), WriteNetCDF_sg_Matrix_g(), WriteNetCDF_sg_Tensor3_g(), WriteNetCDF_sg_Tensor4_g(), WriteNetCDF_sg_Tensor5_g(), and WriteNetCDF_sg_Vector_g().

◆ WriteNetCDF() [2/2]

void WriteNetCDF ( Workspace ws,
const Agenda v,
const String f,
const String v_name,
const String f_name,
const Verbosity verbosity 
)

Definition at line 123 of file m_nc.h.

References WriteNetCDF().