Go to the documentation of this file.
47 using std::ostringstream;
49 using std::runtime_error;
108 os <<
" is not a numeric grid.";
110 throw runtime_error(os.str());
141 os <<
" is not a numeric grid.";
143 throw runtime_error(os.str());
174 os <<
" is not a string grid.";
176 throw runtime_error(os.str());
208 os <<
" is not a string grid.";
210 throw runtime_error(os.str());
259 if (gf.
mname.size()) os << gf.
mname <<
":" << endl;
264 else os <<
"Grid " << i;
285 return os << *((
GriddedField*)&gf) <<
"Data:" << endl << gf.data << endl;
292 return os << *((
GriddedField*)&gf) <<
"Data:" << endl << gf.data;
299 return os << *((
GriddedField*)&gf) <<
"Data:" << endl << gf.data;
306 return os << *((
GriddedField*)&gf) <<
"Data:" << endl << gf.data;
313 return os << *((
GriddedField*)&gf) <<
"Data:" << endl << gf.data;
320 return os << *((
GriddedField*)&gf) <<
"Data:" << endl << gf.data;
Implementation of gridded fields.
const ArrayOfString & get_string_grid(Index i) const
Get a string grid.
The declarations of all the exception classes.
Array< GridType > mgridtypes
Index get_dim() const
Get the dimension of this gridded field.
ArrayOfVector mnumericgrids
ConstVectorView get_numeric_grid(Index i) const
Get a numeric grid.
GridType get_grid_type(Index i) const
Get grid type.
Array< ArrayOfString > mstringgrids
void copy_grids(const GriddedField &gf)
Copy grids.
void set_grid(Index i, const Vector &g)
Set a numeric grid.
ostream & operator<<(ostream &os, const GriddedField &gf)
Output operator for GriddedField.
INDEX Index
The type to use for all integer numbers and indices.
A constant view of a Vector.
This file contains the definition of String, the ARTS string class.