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;
INDEX Index
The type to use for all integer numbers and indices.
ConstVectorView get_numeric_grid(Index i) const
Get a numeric grid.
const ArrayOfString & get_string_grid(Index i) const
Get a string grid.
GridType get_grid_type(Index i) const
Get grid type.
void copy_grids(const GriddedField &gf)
Copy grids.
Index get_dim() const
Get the dimension of this gridded field.
ArrayOfVector mnumericgrids
void set_grid(Index i, const Vector &g)
Set a numeric grid.
The declarations of all the exception classes.
Array< ArrayOfString > mstringgrids
friend std::ostream & operator<<(std::ostream &os, const GriddedField &gf)
A constant view of a Vector.
Implementation of gridded fields.
Array< GridType > mgridtypes
This file contains the definition of String, the ARTS string class.