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