Go to the documentation of this file.
46 using std::ostringstream;
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;
232 for (
Index i = 0; i < gf.
dim; i++) {
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;
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
GridType get_grid_type(Index i) const
Get grid type.
Array< ArrayOfString > mstringgrids
const Vector & get_numeric_grid(Index i) const
Get a numeric grid.
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.
This file contains the definition of String, the ARTS string class.