ARTS  2.0.49
GriddedField2 Class Reference

#include <gridded_fields.h>

Inheritance diagram for GriddedField2:
GriddedField

Public Member Functions

 GriddedField2 ()
 Construct an empty GriddedField2. More...
 
 GriddedField2 (const String &s)
 Construct an empty GriddedField2 with the given name. More...
 
virtual bool checksize () const
 Consistency check. More...
 
void resize (const GriddedField2 &gf)
 Make this GriddedField2 the same size as the given one. More...
 
void resize (Index r, Index c)
 Resize the data matrix. More...
 
- Public Member Functions inherited from GriddedField
Index get_dim () const
 Get the dimension of this gridded field. More...
 
void copy_grids (const GriddedField &gf)
 Copy grids. More...
 
const Stringget_grid_name (Index i) const
 Get grid name. More...
 
Index get_grid_size (Index i) const
 Get the size of a grid. More...
 
GridType get_grid_type (Index i) const
 Get grid type. More...
 
ConstVectorView get_numeric_grid (Index i) const
 Get a numeric grid. More...
 
VectorView get_numeric_grid (Index i)
 Get a numeric grid. More...
 
const ArrayOfStringget_string_grid (Index i) const
 Get a string grid. More...
 
ArrayOfStringget_string_grid (Index i)
 Get a string grid. More...
 
const Stringget_name () const
 Get the name of this gridded field. More...
 
void set_grid (Index i, const Vector &g)
 Set a numeric grid. More...
 
void set_grid (Index i, const ArrayOfString &g)
 Set a string grid. More...
 
void set_grid_name (Index i, const String &s)
 Set grid name. More...
 
void set_name (const String &s)
 Set name of this gridded field. More...
 
virtual ~GriddedField ()
 GriddedField destructor. More...
 

Public Attributes

Matrix data
 

Friends

ostream & operator<< (ostream &os, const GriddedField2 &gf)
 Output operator for GriddedField2. More...
 

Additional Inherited Members

- Protected Member Functions inherited from GriddedField
 GriddedField ()
 Construct an empty GriddedField. More...
 
 GriddedField (const Index d, const String &s)
 Construct a GriddedField. More...
 

Detailed Description

Definition at line 229 of file gridded_fields.h.

Constructor & Destructor Documentation

◆ GriddedField2() [1/2]

GriddedField2::GriddedField2 ( )
inline

Construct an empty GriddedField2.

Definition at line 233 of file gridded_fields.h.

◆ GriddedField2() [2/2]

GriddedField2::GriddedField2 ( const String s)
inline

Construct an empty GriddedField2 with the given name.

Parameters
[in]sName.

Definition at line 236 of file gridded_fields.h.

Member Function Documentation

◆ checksize()

virtual bool GriddedField2::checksize ( ) const
inlinevirtual

Consistency check.

Check if the sizes of the grids match the data dimension.

Returns
True if sizes match.

Reimplemented from GriddedField.

Definition at line 244 of file gridded_fields.h.

References data, GriddedField::get_grid_size(), ConstMatrixView::ncols(), and ConstMatrixView::nrows().

Referenced by main().

◆ resize() [1/2]

void GriddedField2::resize ( const GriddedField2 gf)
inline

Make this GriddedField2 the same size as the given one.

Parameters
[in]gfSource gridded field.

Definition at line 254 of file gridded_fields.h.

References data, GriddedField::get_grid_size(), and Matrix::resize().

◆ resize() [2/2]

void GriddedField2::resize ( Index  r,
Index  c 
)
inline

Resize the data matrix.

See also
Matrix::resize

Definition at line 262 of file gridded_fields.h.

References data, and Matrix::resize().

Friends And Related Function Documentation

◆ operator<<

ostream& operator<< ( ostream &  os,
const GriddedField2 gf 
)
friend

Output operator for GriddedField2.

Outputs the given GriddedField2.

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

Definition at line 300 of file gridded_fields.cc.

Member Data Documentation

◆ data

Matrix GriddedField2::data

Definition at line 269 of file gridded_fields.h.

Referenced by checksize(), main(), and resize().


The documentation for this class was generated from the following file: