m_nc.h File Reference

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

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

Include dependency graph for m_nc.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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


Detailed Description

Workspace methods and template functions for supergeneric NetCDF IO.

Author:
Oliver Lemke <olemke@core-dump.info>
Date:
2008-09-19

Definition in file m_nc.h.


Function Documentation

template<typename T>
void ReadNetCDF ( Workspace ws,
T &  v,
const String v_name,
const String f,
const String f_name 
) [inline]

Definition at line 108 of file m_nc.h.

References ReadNetCDF().

template<typename T>
void ReadNetCDF ( T &  gout1,
const String gout1_wsvname,
const String filename,
const String filename_wsvname 
) [inline]

WORKSPACE METHOD: ReadNetCDF.

Reads a workspace variable from a NetCDF file.

This is a supergeneric method. It 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] gout1 Supergeneric output
[in] gout1_wsvname Generic Output Name
[in] filename Generic Input
[in] filename_wsvname Generic Input Name

Definition at line 80 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(), and ReadNetCDF_sg_Vector_g().

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

Definition at line 122 of file m_nc.h.

References WriteNetCDF().

template<typename T>
void WriteNetCDF ( const T &  genericinput1,
const String filename,
const String genericinput1_wsvname,
const String filename_wsvname 
) [inline]

WORKSPACE METHOD: WriteNetCDF.

Writes a workspace variable to a NetCDF file.

This is a supergeneric method. It 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] genericinput1 Generic Input
[in] filename Generic Input (Default: "")
[in] genericinput1_wsvname Generic Input Name
[in] filename_wsvname Generic Input Name

Definition at line 93 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(), and WriteNetCDF_sg_Vector_g().


Generated on Mon Mar 23 14:06:41 2009 for ARTS by  doxygen 1.5.6