#include <netcdf.h>
#include "mystring.h"
#include "exceptions.h"
#include "messages.h"


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 err, const String msg) |
Definition in file nc_io.h.
Gives the default filename for the NetCDF formats.
The default name is only used if the filename is empty.
| filename | filename | |
| varname | variable name |
Definition at line 52 of file nc_io.cc.
References out_basename.
Gives the default filename, with file index, for the NetCDF formats.
The default name is only used if the filename is empty.
| [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_int | ( | const int | ncid, | |
| const String & | name, | |||
| int * | data | |||
| ) |
| void nc_get_data_long | ( | const int | ncid, | |
| const String & | name, | |||
| long * | data | |||
| ) |
| 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().
| 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 | err, | |
| const String | msg | |||
| ) |
Definition at line 191 of file nc_io.cc.
Referenced by nc_get_data_double(), nc_get_data_int(), nc_get_data_long(), nc_get_dataa_double(), nc_get_dim(), and nc_write_to_file().
1.5.6