ARTS  2.3.1285(git:92a29ea9-dirty)
gridded_fields.h File Reference

Implementation of gridded fields. More...

#include <stdexcept>
#include "array.h"
#include "matpackVI.h"
#include "mystring.h"

Go to the source code of this file.

Classes

class  GriddedField
 
class  GriddedField1
 
class  GriddedField2
 
class  GriddedField3
 
class  GriddedField4
 
class  GriddedField5
 
class  GriddedField6
 

Macros

#define CHECK_ERROR_BOILERPLATE
 

Typedefs

typedef Array< GridTypeArrayOfGridType
 
typedef Array< GriddedField1ArrayOfGriddedField1
 
typedef Array< GriddedField2ArrayOfGriddedField2
 
typedef Array< GriddedField3ArrayOfGriddedField3
 
typedef Array< GriddedField4ArrayOfGriddedField4
 
typedef Array< GriddedField5ArrayOfGriddedField5
 
typedef Array< Array< GriddedField1 > > ArrayOfArrayOfGriddedField1
 
typedef Array< Array< GriddedField2 > > ArrayOfArrayOfGriddedField2
 
typedef Array< Array< GriddedField3 > > ArrayOfArrayOfGriddedField3
 

Enumerations

enum  GridType { GRID_TYPE_NUMERIC, GRID_TYPE_STRING }
 

Functions

std::ostream & operator<< (std::ostream &os, const GriddedField &gf)
 Output operator for GriddedField. More...
 
std::ostream & operator<< (std::ostream &os, const GriddedField1 &gf)
 See GriddedField::operator<<. More...
 
std::ostream & operator<< (std::ostream &os, const GriddedField2 &gf)
 See GriddedField::operator<<. More...
 
std::ostream & operator<< (std::ostream &os, const GriddedField3 &gf)
 See GriddedField::operator<<. More...
 
std::ostream & operator<< (std::ostream &os, const GriddedField4 &gf)
 See GriddedField::operator<<. More...
 
std::ostream & operator<< (std::ostream &os, const GriddedField5 &gf)
 See GriddedField::operator<<. More...
 
std::ostream & operator<< (std::ostream &os, const GriddedField6 &gf)
 See GriddedField::operator<<. More...
 

Detailed Description

Implementation of gridded fields.

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

This file contains the implementation for gridded fields. Gridded fields are needed to store moredimesional data together with the corresponding grids in the same variable.

For further description see ARTS Developer Guide.

Definition in file gridded_fields.h.

Macro Definition Documentation

◆ CHECK_ERROR_BOILERPLATE

#define CHECK_ERROR_BOILERPLATE
Value:
"size mismatch between grids and data.\n" \
"Note that a grid is allowed to be empty, but in the\n" \
"data that dimension must have exactly one element.\n"

Definition at line 46 of file gridded_fields.h.

Referenced by GriddedField1::checksize_strict(), GriddedField2::checksize_strict(), GriddedField3::checksize_strict(), GriddedField4::checksize_strict(), GriddedField5::checksize_strict(), and GriddedField6::checksize_strict().

Typedef Documentation

◆ ArrayOfArrayOfGriddedField1

Definition at line 536 of file gridded_fields.h.

◆ ArrayOfArrayOfGriddedField2

Definition at line 537 of file gridded_fields.h.

◆ ArrayOfArrayOfGriddedField3

Definition at line 538 of file gridded_fields.h.

◆ ArrayOfGriddedField1

Definition at line 531 of file gridded_fields.h.

◆ ArrayOfGriddedField2

Definition at line 532 of file gridded_fields.h.

◆ ArrayOfGriddedField3

Definition at line 533 of file gridded_fields.h.

◆ ArrayOfGriddedField4

Definition at line 534 of file gridded_fields.h.

◆ ArrayOfGriddedField5

Definition at line 535 of file gridded_fields.h.

◆ ArrayOfGridType

Definition at line 44 of file gridded_fields.h.

Enumeration Type Documentation

◆ GridType

enum GridType

Enumeration containing the possible grid types for gridded fields

Enumerator
GRID_TYPE_NUMERIC 
GRID_TYPE_STRING 

Definition at line 42 of file gridded_fields.h.

Function Documentation

◆ operator<<() [1/7]

std::ostream& operator<< ( ostream &  os,
const GriddedField gf 
)

Output operator for GriddedField.

Outputs the grids for the given GriddedField.

Parameters
[in,out]osOutput stream.
[in]gfGriddedField.

Definition at line 229 of file gridded_fields.cc.

References GriddedField::dim, GRID_TYPE_NUMERIC, GRID_TYPE_STRING, i, GriddedField::mgridnames, GriddedField::mgridtypes, GriddedField::mname, GriddedField::mnumericgrids, and GriddedField::mstringgrids.

◆ operator<<() [2/7]

std::ostream& operator<< ( std::ostream &  os,
const GriddedField1 gf 
)

See GriddedField::operator<<.

Definition at line 253 of file gridded_fields.cc.

◆ operator<<() [3/7]

std::ostream& operator<< ( std::ostream &  os,
const GriddedField2 gf 
)

See GriddedField::operator<<.

Definition at line 258 of file gridded_fields.cc.

◆ operator<<() [4/7]

std::ostream& operator<< ( std::ostream &  os,
const GriddedField3 gf 
)

See GriddedField::operator<<.

Definition at line 263 of file gridded_fields.cc.

◆ operator<<() [5/7]

std::ostream& operator<< ( std::ostream &  os,
const GriddedField4 gf 
)

See GriddedField::operator<<.

Definition at line 268 of file gridded_fields.cc.

◆ operator<<() [6/7]

std::ostream& operator<< ( std::ostream &  os,
const GriddedField5 gf 
)

See GriddedField::operator<<.

Definition at line 273 of file gridded_fields.cc.

◆ operator<<() [7/7]

std::ostream& operator<< ( std::ostream &  os,
const GriddedField6 gf 
)

See GriddedField::operator<<.

Definition at line 278 of file gridded_fields.cc.