nc_io.cc File Reference

This file contains basic functions to handle NetCDF data files. More...

#include "arts.h"
#include "nc_io.h"
#include "nc_io_types.h"
#include "nc_io_instantiation.h"
#include "file.h"
#include "messages.h"
#include "exceptions.h"

Include dependency graph for nc_io.cc:

Go to the source code of this file.

Functions

void filename_nc (String &filename, const String &varname)
 Gives the default filename for the NetCDF formats.
void filename_nc_with_index (String &filename, const Index &file_index, const String &varname)
 Gives the default filename, with file index, for the NetCDF formats.
template<typename T>
void nc_read_from_file (const String &filename, T &type)
template<typename T>
void nc_write_to_file (const String &filename, const T &type)
void nc_get_data_int (const int ncid, const String &name, int *data)
void nc_get_data_long (const int ncid, const String &name, long *data)
void nc_get_data_double (const int ncid, const String &name, Numeric *data)
void nc_get_dataa_double (const int ncid, const String &name, size_t start, size_t count, Numeric *data)
Index nc_get_dim (const int ncid, const String &name)
void ncerror (const int e, const String s)


Detailed Description

This file contains basic functions to handle NetCDF data files.

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

Definition in file nc_io.cc.


Function Documentation

void filename_nc ( String filename,
const String varname 
)

Gives the default filename for the NetCDF formats.

The default name is only used if the filename is empty.

Parameters:
filename filename
varname variable name

Definition at line 52 of file nc_io.cc.

References out_basename.

void filename_nc_with_index ( String filename,
const Index file_index,
const String varname 
)

Gives the default filename, with file index, for the NetCDF formats.

The default name is only used if the filename is empty.

Parameters:
[out] filename filename
[in] file_index Index appended to the filename
[in] varname variable name

Definition at line 73 of file nc_io.cc.

References out_basename.

void nc_get_data_double ( const int  ncid,
const String name,
Numeric data 
)

Definition at line 157 of file nc_io.cc.

References ncerror().

Referenced by nc_read_from_file().

void nc_get_data_int ( const int  ncid,
const String name,
int *  data 
)

Definition at line 137 of file nc_io.cc.

References ncerror().

void nc_get_data_long ( const int  ncid,
const String name,
long *  data 
)

Definition at line 147 of file nc_io.cc.

References ncerror().

Referenced by nc_read_from_file().

void nc_get_dataa_double ( const int  ncid,
const String name,
size_t  start,
size_t  count,
Numeric data 
)

Definition at line 167 of file nc_io.cc.

References ncerror().

Referenced by nc_read_from_file().

Index nc_get_dim ( const int  ncid,
const String name 
)

Definition at line 178 of file nc_io.cc.

References ncerror().

Referenced by nc_read_from_file().

template<typename T>
void nc_read_from_file ( const String filename,
T &  type 
) [inline]

Definition at line 98 of file nc_io.cc.

References nc_read_from_file(), and out2.

Referenced by nc_read_from_file().

template<typename T>
void nc_write_to_file ( const String filename,
const T &  type 
) [inline]

Definition at line 118 of file nc_io.cc.

References nc_write_to_file(), and out2.

Referenced by nc_write_to_file().

void ncerror ( const int  e,
const String  s 
)


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