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).
void Exit ()
 See the the online help (arts -d FUNCTION_NAME).
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).
void NumericSet (Numeric &x, const String &x_name, const Numeric &value)
 See the the online help (arts -d FUNCTION_NAME).
void NumericCopyFirstOfVector (Numeric &x, const String &x_name, const Vector &v, const String &v_name)
 See the the online help (arts -d FUNCTION_NAME).
void NumericCopyLastOfVector (Numeric &x, const String &x_name, const Vector &v, const String &v_name)
 See the the online help (arts -d FUNCTION_NAME).
void VectorSet (Vector &x, const String &x_name, const Index &n, const Numeric &value)
 See the the online help (arts -d FUNCTION_NAME).
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).
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).
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).
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).
void VectorCopy (Vector &y2, const String &name_y2, const Vector &y1, const String &name_y1)
 See the the online help (arts -d FUNCTION_NAME).
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).
void VectorFlip (Vector &y2, const String &name_y2, const Vector &y1, const String &name_y1)
 See the the online help (arts -d FUNCTION_NAME).
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).
void VectorCalcLog10 (Vector &out, const String &out_name, const Vector &in, const String &in_name)
 See the the online help (arts -d FUNCTION_NAME).
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).
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).
void VectorMatrixMultiply (Vector &y, const String &, const Matrix &M, const Vector &x, const String &M_name, const String &x_name)
 Compute y = M*x.
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).
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).
void MatrixDiagonal (Matrix &x, const String &x_name, const Index &nrows, const Numeric &value)
 See the the online help (arts -d FUNCTION_NAME).
void MatrixMatrixMultiply (Matrix &Y, const String &, const Matrix &M, const Matrix &X, const String &M_name, const String &X_name)
 Compute Y = M*X.
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.
void StringSet (String &s, const String &s_name, const String &s2)
 See the the online help (arts -d FUNCTION_NAME).
void ArrayOfStringSet (ArrayOfString &sa, const String &sa_name, const ArrayOfString &sa2)
 See the the online help (arts -d FUNCTION_NAME).

Variables

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


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

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

Definition at line 424 of file m_io.cc.

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

Definition at line 403 of file m_io.cc.

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.

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

Definition at line 559 of file m_io.cc.

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

Definition at line 541 of file m_io.cc.

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

Definition at line 647 of file m_io.cc.

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.

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

Definition at line 629 of file m_io.cc.

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

Definition at line 504 of file m_io.cc.

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

Definition at line 476 of file m_io.cc.

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.

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.

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

Definition at line 200 of file m_io.cc.

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.

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

Definition at line 181 of file m_io.cc.

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

Definition at line 1194 of file m_io.cc.

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.

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.

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.

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.

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

Definition at line 371 of file m_io.cc.

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.

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.

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

Definition at line 347 of file m_io.cc.

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.

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.

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

Definition at line 252 of file m_io.cc.

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.

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

Definition at line 234 of file m_io.cc.

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

Definition at line 601 of file m_io.cc.

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.

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

Definition at line 579 of file m_io.cc.

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

Definition at line 666 of file m_io.cc.

void Test (  ) 

Definition at line 109 of file m_io.cc.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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

Definition at line 309 of file m_io.cc.

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.

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.

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.

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

Definition at line 279 of file m_io.cc.


Variable Documentation

See the the online help (arts -d FUNCTION_NAME).

Author:
Patrick Eriksson
Date:
2001-05-15


Generated on Wed Feb 4 08:17:24 2009 for ARTS by  doxygen 1.5.6