BHAC Python tools
Public Member Functions | Public Attributes | List of all members
read.postrad Class Reference

Load binary postrad data. More...

Public Member Functions

def __init__ (self, offset, file='data', headersize=256, nvars=8)
 

Public Attributes

 offset
 
 filenameout
 
 headersize
 
 nvars
 
 indices
 
 data
 
 grid
 
 header
 
 filename_vars
 
 filename_grid
 
 file_vars
 
 file_grid
 

Detailed Description

Load binary postrad data.

Definition at line 750 of file read.py.

Constructor & Destructor Documentation

◆ __init__()

def read.postrad.__init__ (   self,
  offset,
  file = 'data',
  headersize = 256,
  nvars = 8 
)

Definition at line 752 of file read.py.

752  def __init__(self,offset,file='data',headersize=256,nvars=8):
753  self.offset=offset
754  self.filenameout = file
755  self.headersize = headersize
756  self.nvars =8
757 
758  self.indices={'r':0,'theta':1,'phi':2,'rho':0,'vr':1,'vtheta':2,'vphi':3,'p':4,'br':5,'btheta':6,'bphi':7}
759 
760  self.data=-1
761  self.grid=-1
762  self.header=-1
763 
764  self.__makefilenames()
765  self.__openfiles()
766  self.__read()
767  self.__closefiles()
768 
def __init__(self, offset, file='data', headersize=256, nvars=8)
Definition: read.py:752

Member Data Documentation

◆ data

read.postrad.data

Definition at line 760 of file read.py.

◆ file_grid

read.postrad.file_grid

Definition at line 775 of file read.py.

◆ file_vars

read.postrad.file_vars

Definition at line 774 of file read.py.

◆ filename_grid

read.postrad.filename_grid

Definition at line 771 of file read.py.

◆ filename_vars

read.postrad.filename_vars

Definition at line 770 of file read.py.

◆ filenameout

read.postrad.filenameout

Definition at line 754 of file read.py.

◆ grid

read.postrad.grid

Definition at line 761 of file read.py.

◆ header

read.postrad.header

Definition at line 762 of file read.py.

◆ headersize

read.postrad.headersize

Definition at line 755 of file read.py.

◆ indices

read.postrad.indices

Definition at line 758 of file read.py.

◆ nvars

read.postrad.nvars

Definition at line 756 of file read.py.

◆ offset

read.postrad.offset

Definition at line 753 of file read.py.


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