ARTS  1.0.222
Functions | Variables
m_io.cc File Reference

This file contains IO workspace methods. More...

#include <math.h>
#include "arts.h"
#include "atm_funcs.h"
#include "file.h"
#include "math_funcs.h"
#include "messages.h"
#include "auto_md.h"
#include "make_array.h"
#include "complex.h"

Go to the source code of this file.

Functions

void Echo (const String &message, const Index &output_level)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void Exit ()
 See the the online help (arts -d FUNCTION_NAME) More...
 
void Test ()
 
void IndexWriteAscii (const Index &v, const String &v_name, const String &f)
 
void IndexReadAscii (Index &v, const String &v_name, const String &f)
 
void NumericWriteAscii (const Numeric &v, const String &v_name, const String &f)
 
void NumericReadAscii (Numeric &v, const String &v_name, const String &f)
 
void VectorWriteAscii (const Vector &v, const String &v_name, const String &f)
 
void VectorReadAscii (Vector &v, const String &v_name, const String &f)
 
void MatrixWriteAscii (const Matrix &m, const String &m_name, const String &f)
 
void MatrixReadAscii (Matrix &m, const String &m_name, const String &f)
 
void ArrayOfIndexWriteAscii (const ArrayOfIndex &v, const String &v_name, const String &f)
 
void ArrayOfIndexReadAscii (ArrayOfIndex &v, const String &v_name, const String &f)
 
void ArrayOfVectorWriteAscii (const ArrayOfVector &av, const String &av_name, const String &f)
 
void ArrayOfVectorReadAscii (ArrayOfVector &av, const String &av_name, const String &f)
 
void ArrayOfMatrixWriteAscii (const ArrayOfMatrix &am, const String &am_name, const String &f)
 
void ArrayOfMatrixReadAscii (ArrayOfMatrix &am, const String &am_name, const String &f)
 
void StringWriteAscii (const String &s, const String &s_name, const String &f)
 
void StringReadAscii (String &s, const String &s_name, const String &f)
 
void ArrayOfStringWriteAscii (const ArrayOfString &as, const String &as_name, const String &f)
 
void ArrayOfStringReadAscii (ArrayOfString &as, const String &as_name, const String &f)
 
void TagGroupsSpeciesWriteAscii (const TagGroups &tgs, const String &tgs_name, const String &f)
 
void IndexSet (Index &x, const String &x_name, const Index &value)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void NumericSet (Numeric &x, const String &x_name, const Numeric &value)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void NumericCopyFirstOfVector (Numeric &x, const String &x_name, const Vector &v, const String &v_name)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void NumericCopyLastOfVector (Numeric &x, const String &x_name, const Vector &v, const String &v_name)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void VectorSet (Vector &x, const String &x_name, const Index &n, const Numeric &value)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void VectorSetLengthFromVector (Vector &x, const String &x_name, const Vector &z, const String &, const Numeric &value)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void VectorLinSpace (Vector &x, const String &x_name, const Numeric &start, const Numeric &stop, const Numeric &step)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void VectorNLinSpace (Vector &x, const String &x_name, const Numeric &start, const Numeric &stop, const Index &n)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void VectorPressuresForLinAltitudes (Vector &p, const String &, const Vector &p_abs, const Vector &z_abs, const Numeric &delta_z, const Numeric &p_start, const Numeric &p_stop)
 
void VectorNLogSpace (Vector &x, const String &x_name, const Numeric &start, const Numeric &stop, const Index &n)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void VectorCopy (Vector &y2, const String &name_y2, const Vector &y1, const String &name_y1)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void VectorCopyFromMatrix (Vector &v, const String &, const Matrix &m, const String &, const String &orientation, const Index &index)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void VectorFlip (Vector &y2, const String &name_y2, const Vector &y1, const String &name_y1)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void VectorPlanck (Vector &y, const String &y_name, const Vector &f, const String &, const Numeric &t)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void VectorCalcLog10 (Vector &out, const String &out_name, const Vector &in, const String &in_name)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void VectorAdd (Vector &out, const String &out_name, const Vector &in, const String &in_name, const Numeric &value)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void VectorScale (Vector &out, const String &out_name, const Vector &in, const String &in_name, const Numeric &value)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void VectorMatrixMultiply (Vector &y, const String &, const Matrix &M, const Vector &x, const String &M_name, const String &x_name)
 Compute y = M*x. More...
 
void MatrixSet (Matrix &x, const String &x_name, const Index &nrows, const Index &ncols, const Numeric &value)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void MatrixCopy (Matrix &y2, const String &name_y2, const Matrix &y1, const String &name_y1)
 
void MatrixFillWithVector (Matrix &m, const String &name_m, const Vector &y, const String &name_y, const Index &n)
 
void MatrixScale (Matrix &out, const String &out_name, const Matrix &in, const String &in_name, const Numeric &value)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void MatrixDiagonal (Matrix &x, const String &x_name, const Index &nrows, const Numeric &value)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void MatrixMatrixMultiply (Matrix &Y, const String &, const Matrix &M, const Matrix &X, const String &M_name, const String &X_name)
 Compute Y = M*X. More...
 
void ArrayOfMatrixMatrixMultiply (ArrayOfMatrix &Y, const String &, const Matrix &M, const ArrayOfMatrix &X, const String &M_name, const String &X_name)
 
void MatrixMatrixAdd (Matrix &Y, const String &, const Matrix &M, const Matrix &X, const String &M_name, const String &X_name)
 Compute Y = M+X. More...
 
void StringSet (String &s, const String &s_name, const String &s2)
 See the the online help (arts -d FUNCTION_NAME) More...
 
void ArrayOfStringSet (ArrayOfString &sa, const String &sa_name, const ArrayOfString &sa2)
 See the the online help (arts -d FUNCTION_NAME) More...
 

Variables

const Numeric DEG2RAD
 See the the online help (arts -d FUNCTION_NAME) More...
 

Detailed Description

This file contains IO workspace methods.

The functions are of two types:

  1. Functions with overall influence on ARTS
  2. Reading and writing to/from ASCII files.
  3. Creation by workspace method keywords and generic input
Author
Patrick Eriksson
Date
2000-11-01

Definition in file m_io.cc.

Function Documentation

◆ ArrayOfIndexReadAscii()

void ArrayOfIndexReadAscii ( ArrayOfIndex v,
const String v_name,
const String f 
)

Definition at line 424 of file m_io.cc.

◆ ArrayOfIndexWriteAscii()

void ArrayOfIndexWriteAscii ( const ArrayOfIndex v,
const String v_name,
const String f 
)

Definition at line 403 of file m_io.cc.

◆ ArrayOfMatrixMatrixMultiply()

void ArrayOfMatrixMatrixMultiply ( ArrayOfMatrix Y,
const String ,
const Matrix M,
const ArrayOfMatrix X,
const String M_name,
const String X_name 
)

Definition at line 1321 of file m_io.cc.

◆ ArrayOfMatrixReadAscii()

void ArrayOfMatrixReadAscii ( ArrayOfMatrix am,
const String am_name,
const String f 
)

Definition at line 559 of file m_io.cc.

◆ ArrayOfMatrixWriteAscii()

void ArrayOfMatrixWriteAscii ( const ArrayOfMatrix am,
const String am_name,
const String f 
)

Definition at line 541 of file m_io.cc.

◆ ArrayOfStringReadAscii()

void ArrayOfStringReadAscii ( ArrayOfString as,
const String as_name,
const String f 
)

Definition at line 647 of file m_io.cc.

◆ ArrayOfStringSet()

void ArrayOfStringSet ( ArrayOfString sa,
const String sa_name,
const ArrayOfString sa2 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2000-?-?

Definition at line 1446 of file m_io.cc.

◆ ArrayOfStringWriteAscii()

void ArrayOfStringWriteAscii ( const ArrayOfString as,
const String as_name,
const String f 
)

Definition at line 629 of file m_io.cc.

◆ ArrayOfVectorReadAscii()

void ArrayOfVectorReadAscii ( ArrayOfVector av,
const String av_name,
const String f 
)

Definition at line 504 of file m_io.cc.

◆ ArrayOfVectorWriteAscii()

void ArrayOfVectorWriteAscii ( const ArrayOfVector av,
const String av_name,
const String f 
)

Definition at line 476 of file m_io.cc.

◆ Echo()

void Echo ( const String message,
const Index output_level 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Oliver Lemke/Axel von Engeln
Date
2003-07-23

Definition at line 68 of file m_io.cc.

◆ Exit()

void Exit ( )

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2000-?-?

Definition at line 93 of file m_io.cc.

◆ IndexReadAscii()

void IndexReadAscii ( Index v,
const String v_name,
const String f 
)

Definition at line 200 of file m_io.cc.

◆ IndexSet()

void IndexSet ( Index x,
const String x_name,
const Index value 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2000-?-?

Definition at line 698 of file m_io.cc.

◆ IndexWriteAscii()

void IndexWriteAscii ( const Index v,
const String v_name,
const String f 
)

Definition at line 181 of file m_io.cc.

◆ MatrixCopy()

void MatrixCopy ( Matrix y2,
const String name_y2,
const Matrix y1,
const String name_y1 
)

Definition at line 1194 of file m_io.cc.

◆ MatrixDiagonal()

void MatrixDiagonal ( Matrix x,
const String x_name,
const Index nrows,
const Numeric value 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2001-02-21

Definition at line 1269 of file m_io.cc.

◆ MatrixFillWithVector()

void MatrixFillWithVector ( Matrix m,
const String name_m,
const Vector y,
const String name_y,
const Index n 
)

Definition at line 1209 of file m_io.cc.

◆ MatrixMatrixAdd()

void MatrixMatrixAdd ( Matrix Y,
const String ,
const Matrix M,
const Matrix X,
const String M_name,
const String X_name 
)

Compute Y = M+X.

Works also if Y and X are the same matrix.

For more information see the the online help (arts -d FUNCTION_NAME).

Author
Patrick Eriksson
Date
2002-01-19

Definition at line 1376 of file m_io.cc.

◆ MatrixMatrixMultiply()

void MatrixMatrixMultiply ( Matrix Y,
const String ,
const Matrix M,
const Matrix X,
const String M_name,
const String X_name 
)

Compute Y = M*X.

Works also if Y and X are the same Matrix.

For more information see the the online help (arts -d FUNCTION_NAME).

Author
Stefan Buehler
Date
2001-10-02

Definition at line 1295 of file m_io.cc.

◆ MatrixReadAscii()

void MatrixReadAscii ( Matrix m,
const String m_name,
const String f 
)

Definition at line 371 of file m_io.cc.

◆ MatrixScale()

void MatrixScale ( Matrix out,
const String out_name,
const Matrix in,
const String in_name,
const Numeric value 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2001-01-17

Definition at line 1231 of file m_io.cc.

◆ MatrixSet()

void MatrixSet ( Matrix x,
const String x_name,
const Index nrows,
const Index ncols,
const Numeric value 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2001-02-21

Definition at line 1178 of file m_io.cc.

◆ MatrixWriteAscii()

void MatrixWriteAscii ( const Matrix m,
const String m_name,
const String f 
)

Definition at line 347 of file m_io.cc.

◆ NumericCopyFirstOfVector()

void NumericCopyFirstOfVector ( Numeric x,
const String x_name,
const Vector v,
const String v_name 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2001-03-28

Definition at line 737 of file m_io.cc.

◆ NumericCopyLastOfVector()

void NumericCopyLastOfVector ( Numeric x,
const String x_name,
const Vector v,
const String v_name 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2003-09-07

Definition at line 758 of file m_io.cc.

◆ NumericReadAscii()

void NumericReadAscii ( Numeric v,
const String v_name,
const String f 
)

Definition at line 252 of file m_io.cc.

◆ NumericSet()

void NumericSet ( Numeric x,
const String x_name,
const Numeric value 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2000-?-?

Definition at line 719 of file m_io.cc.

◆ NumericWriteAscii()

void NumericWriteAscii ( const Numeric v,
const String v_name,
const String f 
)

Definition at line 234 of file m_io.cc.

◆ StringReadAscii()

void StringReadAscii ( String s,
const String s_name,
const String f 
)

Definition at line 601 of file m_io.cc.

◆ StringSet()

void StringSet ( String s,
const String s_name,
const String s2 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2000-?-?

Definition at line 1428 of file m_io.cc.

◆ StringWriteAscii()

void StringWriteAscii ( const String s,
const String s_name,
const String f 
)

Definition at line 579 of file m_io.cc.

◆ TagGroupsSpeciesWriteAscii()

void TagGroupsSpeciesWriteAscii ( const TagGroups tgs,
const String tgs_name,
const String f 
)

Definition at line 666 of file m_io.cc.

◆ Test()

void Test ( )

Definition at line 109 of file m_io.cc.

◆ VectorAdd()

void VectorAdd ( Vector out,
const String out_name,
const Vector in,
const String in_name,
const Numeric value 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2001-01-17

Definition at line 1064 of file m_io.cc.

◆ VectorCalcLog10()

void VectorCalcLog10 ( Vector out,
const String out_name,
const Vector in,
const String in_name 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2000-?-?

Definition at line 1044 of file m_io.cc.

◆ VectorCopy()

void VectorCopy ( Vector y2,
const String name_y2,
const Vector y1,
const String name_y1 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2001-06-12

Definition at line 932 of file m_io.cc.

◆ VectorCopyFromMatrix()

void VectorCopyFromMatrix ( Vector v,
const String ,
const Matrix m,
const String ,
const String orientation,
const Index index 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Oliver Lemke/Axel von Engeln
Date
2003-07-23

Definition at line 952 of file m_io.cc.

◆ VectorFlip()

void VectorFlip ( Vector y2,
const String name_y2,
const Vector y1,
const String name_y1 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2001-06-12

Definition at line 991 of file m_io.cc.

◆ VectorLinSpace()

void VectorLinSpace ( Vector x,
const String x_name,
const Numeric start,
const Numeric stop,
const Numeric step 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2000-?-?

Definition at line 824 of file m_io.cc.

◆ VectorMatrixMultiply()

void VectorMatrixMultiply ( Vector y,
const String ,
const Matrix M,
const Vector x,
const String M_name,
const String x_name 
)

Compute y = M*x.

Works also if y and x are the same Vector.

For more information see the the online help (arts -d FUNCTION_NAME).

Author
Stefan Buehler
Date
2001-10-02

Definition at line 1143 of file m_io.cc.

◆ VectorNLinSpace()

void VectorNLinSpace ( Vector x,
const String x_name,
const Numeric start,
const Numeric stop,
const Index n 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2000-?-?

Definition at line 849 of file m_io.cc.

◆ VectorNLogSpace()

void VectorNLogSpace ( Vector x,
const String x_name,
const Numeric start,
const Numeric stop,
const Index n 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2000-?-?

Definition at line 904 of file m_io.cc.

◆ VectorPlanck()

void VectorPlanck ( Vector y,
const String y_name,
const Vector f,
const String ,
const Numeric t 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2000-?-?

Definition at line 1019 of file m_io.cc.

◆ VectorPressuresForLinAltitudes()

void VectorPressuresForLinAltitudes ( Vector p,
const String ,
const Vector p_abs,
const Vector z_abs,
const Numeric delta_z,
const Numeric p_start,
const Numeric p_stop 
)

Definition at line 870 of file m_io.cc.

◆ VectorReadAscii()

void VectorReadAscii ( Vector v,
const String v_name,
const String f 
)

Definition at line 309 of file m_io.cc.

◆ VectorScale()

void VectorScale ( Vector out,
const String out_name,
const Vector in,
const String in_name,
const Numeric value 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2001-01-17

Definition at line 1102 of file m_io.cc.

◆ VectorSet()

void VectorSet ( Vector x,
const String x_name,
const Index n,
const Numeric value 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2000-?-?

Definition at line 781 of file m_io.cc.

◆ VectorSetLengthFromVector()

void VectorSetLengthFromVector ( Vector x,
const String x_name,
const Vector z,
const String ,
const Numeric value 
)

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2000-?-?

Definition at line 801 of file m_io.cc.

◆ VectorWriteAscii()

void VectorWriteAscii ( const Vector v,
const String v_name,
const String f 
)

Definition at line 279 of file m_io.cc.

Variable Documentation

◆ DEG2RAD

const Numeric DEG2RAD
extern

See the the online help (arts -d FUNCTION_NAME)

Author
Patrick Eriksson
Date
2001-05-15