ARTS
2.2.66
|
Workspace methods and template functions for supergeneric NetCDF IO. More...
#include "arts.h"
#include "exceptions.h"
#include "workspace_ng.h"
#include "agenda_class.h"
#include "nc_io.h"
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, const Verbosity &verbosity) |
WORKSPACE METHOD: ReadNetCDF. More... | |
template<typename T > | |
void | WriteNetCDF (const T &v, const String &f, const String &v_name, const String &f_name, const Verbosity &verbosity) |
WORKSPACE METHOD: WriteNetCDF. More... | |
template<typename T > | |
void | WriteNetCDFIndexed (const Index &file_index, const T &v, const String &f, const String &v_name, const String &f_name, const Verbosity &verbosity) |
WORKSPACE METHOD: WriteNetCDFIndexed. 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) |
Workspace methods and template functions for supergeneric NetCDF IO.
Definition in file m_nc.h.
void ReadNetCDF | ( | T & | out, |
const String & | out_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.
[out] | out | Supergeneric output |
[in] | out_wsvname | Generic Output Name |
[in] | filename | Generic Input |
[in] | filename_wsvname | Generic Input Name |
Definition at line 43 of file m_nc.h.
References nca_read_from_file().
Referenced by ReadNetCDF(), ReadNetCDF_sg_ArrayOfMatrix_g(), ReadNetCDF_sg_ArrayOfVector_g(), ReadNetCDF_sg_GasAbsLookup_g(), ReadNetCDF_sg_Matrix_g(), ReadNetCDF_sg_Tensor3_g(), ReadNetCDF_sg_Tensor4_g(), ReadNetCDF_sg_Tensor5_g(), ReadNetCDF_sg_Vector_g(), and WriteNetCDFIndexed().
void ReadNetCDF | ( | Workspace & | ws, |
T & | v, | ||
const String & | v_name, | ||
const String & | f, | ||
const String & | f_name, | ||
const Verbosity & | verbosity | ||
) |
Definition at line 145 of file m_nc.h.
References ReadNetCDF().
void WriteNetCDF | ( | const T & | in, |
const String & | filename, | ||
const String & | in_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 limited groups.
If the filename is omitted, the variable is written to <basename>.<variable_name>.nc.
[in] | in | Generic Input |
[in] | filename | Generic Input (Default: "") |
[in] | in_wsvname | Generic Input Name |
[in] | filename_wsvname | Generic Input Name |
Definition at line 57 of file m_nc.h.
References nca_filename(), and nca_write_to_file().
Referenced by WriteNetCDF(), WriteNetCDF_sg_ArrayOfMatrix_g(), WriteNetCDF_sg_ArrayOfVector_g(), WriteNetCDF_sg_GasAbsLookup_g(), WriteNetCDF_sg_Matrix_g(), WriteNetCDF_sg_Tensor3_g(), WriteNetCDF_sg_Tensor4_g(), WriteNetCDF_sg_Tensor5_g(), WriteNetCDF_sg_Vector_g(), and WriteNetCDFIndexed().
void WriteNetCDF | ( | Workspace & | ws, |
const Agenda & | v, | ||
const String & | f, | ||
const String & | v_name, | ||
const String & | f_name, | ||
const Verbosity & | verbosity | ||
) |
Definition at line 160 of file m_nc.h.
References WriteNetCDF().
void WriteNetCDFIndexed | ( | const Index & | file_index, |
const T & | in, | ||
const String & | filename, | ||
const String & | in_wsvname, | ||
const String & | filename_wsvname, | ||
const Verbosity & | verbosity | ||
) |
WORKSPACE METHOD: WriteNetCDFIndexed.
As WriteNetCDF, but creates indexed file names.
This method can write variables of any group.
If the filename is omitted, the variable is written to <basename>.<variable_name>.nc.
[in] | file_index | WS Input |
[in] | in | Generic Input |
[in] | filename | Generic Input (Default: "") |
[in] | in_wsvname | Generic Input Name |
[in] | filename_wsvname | Generic Input Name |
Definition at line 76 of file m_nc.h.
References nca_filename_with_index(), ReadNetCDF(), WriteNetCDF(), and WriteNetCDFIndexed().
Referenced by WriteNetCDFIndexed(), WriteNetCDFIndexed_sg_ArrayOfMatrix_g(), WriteNetCDFIndexed_sg_ArrayOfVector_g(), WriteNetCDFIndexed_sg_GasAbsLookup_g(), WriteNetCDFIndexed_sg_Matrix_g(), WriteNetCDFIndexed_sg_Tensor3_g(), WriteNetCDFIndexed_sg_Tensor4_g(), WriteNetCDFIndexed_sg_Tensor5_g(), and WriteNetCDFIndexed_sg_Vector_g().