evTools
Tools to manipulate and display output from the binary stellar-evolution code ev/STARS/TWIN
 All Classes Files Functions Variables Pages
Data Types | Functions/Subroutines
plt_functions.f90 File Reference

(evTools version 0.4.1, revision 191, hash 60997ac (2015-04-25))

Functions and subroutines for plotplt* in the evTools package that need pgplot. More...

Data Types

module  plt_funcs
 Procedures for plt functions. More...
 

Functions/Subroutines

subroutine getpltlabels (nf, nvar, pglabels, asclabels, defvar)
 Provides the labels for the plot axes of a *.plt? file in plotplt. More...
 
subroutine set_plotpltn_labels (pglabels, asclabels, maxi)
 Provides the labels for the plot axes of a *.plt? file in plotpltn (obsolescent) More...
 
subroutine printpltvarlist (nf)
 Print the list of variables in a *.plt? file to screen, for input menu of plotplt. More...
 
subroutine read_plt_bse (u, fname, nmax, nvar, nc, verbose, datf, nfi, version)
 Read the *.plt[12] file fname from unit u and return its length and the contents. More...
 
subroutine read_plt (u, fname, nn, nvar, nc, verbose, dat, n, version)
 Read the *.plt[12] file fname from unit u and return its length and the contents. More...
 
subroutine read_bse (u, fname, nn, nvar, verbose, dat, n, version)
 Read a BSE binary.dat file fname from unit u and return its length and contents. More...
 
subroutine changepltvars (nn, nvar, n, dat, labels, dpdt)
 Change (e.g. de-log) and add plot variables for a *.plt? file. More...
 

Detailed Description

Functions and subroutines for plotplt* in the evTools package that need pgplot.

Function/Subroutine Documentation

subroutine changepltvars ( integer, intent(in)  nn,
integer, intent(in)  nvar,
integer, intent(in)  n,
real(double), dimension(nvar,nn), intent(inout)  dat,
character, dimension(99), intent(inout)  labels,
integer, intent(out)  dpdt 
)

Change (e.g. de-log) and add plot variables for a *.plt? file.

Parameters
nnMaximum number of model lines
nvarNumber of variables
nNumber of models read
Return values
datData array (I/O)
labelsVariable labels (I/O)
dpdtPdot mode: 0: dJ/dt, 1: dP/dt, 2: timescales

References plt_funcs::compute_zeta_ad(), plt_funcs::compute_zeta_rl(), lt2ubv(), and p2a().

Referenced by plotplt(), plt2dat(), and selplt().

subroutine getpltlabels ( integer, intent(in)  nf,
integer, intent(in)  nvar,
character, dimension(99), intent(out)  pglabels,
character, dimension(99), intent(out)  asclabels,
integer, dimension(0:nvar), intent(out)  defvar 
)

Provides the labels for the plot axes of a *.plt? file in plotplt.

Parameters
nfNumber of input files
nvarNumber of variables
Return values
pglabelsPGPlot labels
asclabelsASCII labels
defvarVariable is defined (1) or not (0)

Referenced by plotplt(), and plt2dat().

subroutine printpltvarlist ( integer, intent(in)  nf)

Print the list of variables in a *.plt? file to screen, for input menu of plotplt.

Parameters
nfNumber of input files

Referenced by plotplt().

subroutine read_bse ( integer, intent(in)  u,
character, dimension(*), intent(in)  fname,
integer, intent(in)  nn,
integer, intent(in)  nvar,
integer, intent(in)  verbose,
real(double), dimension(nvar,nn), intent(out)  dat,
integer, intent(out)  n,
integer, intent(out)  version 
)

Read a BSE binary.dat file fname from unit u and return its length and contents.

Parameters
uInput unit
fnameInput file name
nnMaximum number of model lines
nvarNumber of variables
verboseVerbosity (0,1)
Return values
datData array
nNumber of models read
versionCode-output version

References a2j(), a2p(), and quit_program().

Referenced by read_plt_bse().

subroutine read_plt ( integer, intent(in)  u,
character, dimension(*), intent(in)  fname,
integer, intent(in)  nn,
integer, intent(in)  nvar,
integer, intent(in)  nc,
integer, intent(in)  verbose,
real(double), dimension(nvar,nn), intent(out)  dat,
integer, intent(out)  n,
integer, intent(out)  version 
)

Read the *.plt[12] file fname from unit u and return its length and the contents.

Parameters
uInput unit
fnameInput file name
nnMaximum number of model lines
nvarNumber of variables
ncExpected number of columns in the input file - no longer used
verboseVerbosity (0,1)
Return values
datData array
nNumber of models read
versionCode-output version

References quit_program().

Referenced by read_plt_bse().

subroutine read_plt_bse ( integer, intent(in)  u,
character, dimension(*), intent(in)  fname,
integer, intent(in)  nmax,
integer, intent(in)  nvar,
integer, intent(in)  nc,
integer, intent(in)  verbose,
real(double), dimension(nvar,nmax), intent(out)  datf,
integer, intent(out)  nfi,
integer, intent(out)  version 
)

Read the *.plt[12] file fname from unit u and return its length and the contents.

Parameters
uInput unit
fnameInput file name
nmaxMaximum number of model lines
nvarNumber of variables
ncExpected number of columns in the input file - no longer used
verboseVerbosity (0,1)
Return values
datfData array
nfiNumber of models read
versionCode-output version

References read_bse(), and read_plt().

Referenced by plotplt(), plt2dat(), and selplt().

subroutine set_plotpltn_labels ( character, dimension(*), intent(out)  pglabels,
character, dimension(*), intent(out)  asclabels,
integer, intent(in)  maxi 
)

Provides the labels for the plot axes of a *.plt? file in plotpltn (obsolescent)

Return values
pglabelsPGPlot labels
asclabelsASCII labels
Parameters
maxiSize of the arrays