ConnectTool
 All Classes Namespaces Files Functions Variables Pages
Functions
ascii_cube3D Namespace Reference

Functions

def write
 Master routine for writing module_cube3D.Cube3D in different formats. More...
 
def read
 Master routine for reading module_cube3D.Cube3D in different formats. More...
 
def read_v0
 Read ascii v0 format cube3D file from SWD (same as Corfield). More...
 
def write_v0
 Write ascii v0 format cube3D file from SWD. More...
 

Function Documentation

def ascii_cube3D.read (   filepath)

Master routine for reading module_cube3D.Cube3D in different formats.

Here is the call graph for this function:

def ascii_cube3D.read_v0 (   ifile)

Read ascii v0 format cube3D file from SWD (same as Corfield).

Parameters
[in]ifile,:file ID of an open file
[out]fieldlines,:List of module_cube3D.Cube3D objects in HGC coordinates.

SWD/Corfield V0-format for cube3D file is the following:
Header (7 lines):

  • filename - ASCII datacube
  • Contents: grid (r, theta, phi), arrays (Br, Btheta, Bphi)
  • grid dims (nr, ntheta, nphi):
  • nr ntheta nphi
  • Arrays Br, Btheta, Bphi (ordering: phi, theta, r)
  • --------------------------------—

Data:

  • R(nr) E16.6
  • The(ntheta) E16.6
  • Phi(nphi) E16.6
  • Br(nphi,ntheta,nr) 9E16.6 using Fortran indexing
  • Btheta(nphi,ntheta,nr) 9E16.6 using Fortran indexing
  • Bphi(nphi,ntheta,nr) 9E16.6 using Fortran indexing

Here is the caller graph for this function:

def ascii_cube3D.write (   cube3D,
  filepath,
  version = 0 
)

Master routine for writing module_cube3D.Cube3D in different formats.

Here is the call graph for this function:

def ascii_cube3D.write_v0 (   cube3D,
  ifile 
)

Write ascii v0 format cube3D file from SWD.

Parameters
[in]coordinates,:List of module_cube3D.Cube3D objects in HGC coordinate.
[in]ifile,:file unit already open in proper mode (read...)

Here is the caller graph for this function: