47 using std::runtime_error;
99 os <<
" is not a numeric grid.";
101 throw runtime_error(os.
str());
128 os <<
" is not a numeric grid.";
130 throw runtime_error(os.
str());
157 os <<
" is not a string grid.";
159 throw runtime_error(os.
str());
186 os <<
" is not a string grid.";
188 throw runtime_error(os.
str());
230 if (gf.
mname.size()) os << gf.
mname <<
":" << endl;
254 return os << *((
GriddedField*)&gf) <<
"Data:" << endl << gf.data << endl;
259 return os << *((
GriddedField*)&gf) <<
"Data:" << endl << gf.data << endl;
264 return os << *((
GriddedField*)&gf) <<
"Data:" << endl << gf.data << endl;
269 return os << *((
GriddedField*)&gf) <<
"Data:" << endl << gf.data << endl;
274 return os << *((
GriddedField*)&gf) <<
"Data:" << endl << gf.data << endl;
279 return os << *((
GriddedField*)&gf) <<
"Data:" << endl << gf.data << endl;
INDEX Index
The type to use for all integer numbers and indices.
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.
_CS_string_type str() const
ArrayOfVector mnumericgrids
void set_grid(Index i, const Vector &g)
Set a numeric grid.
The declarations of all the exception classes.
Array< ArrayOfString > mstringgrids
const Vector & get_numeric_grid(Index i) const
Get a numeric grid.
friend std::ostream & operator<<(std::ostream &os, const GriddedField &gf)
basic_ostringstream< char, string_char_traits< char >, alloc > ostringstream
Implementation of gridded fields.
Array< GridType > mgridtypes
This file contains the definition of String, the ARTS string class.