evTools
Tools to manipulate and display output from the binary stellar-evolution code ev/STARS/TWIN
|
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... | |
Functions and subroutines for plotplt* in the evTools package that need pgplot.
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.
nn | Maximum number of model lines |
nvar | Number of variables |
n | Number of models read |
dat | Data array (I/O) |
labels | Variable labels (I/O) |
dpdt | Pdot mode: 0: dJ/dt, 1: dP/dt, 2: timescales |
References plt_funcs::compute_zeta_ad(), plt_funcs::compute_zeta_rl(), lt2ubv(), and p2a().
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 | ||
) |
subroutine printpltvarlist | ( | integer, intent(in) | nf | ) |
Print the list of variables in a *.plt? file to screen, for input menu of plotplt.
nf | Number 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.
u | Input unit |
fname | Input file name |
nn | Maximum number of model lines |
nvar | Number of variables |
verbose | Verbosity (0,1) |
dat | Data array |
n | Number of models read |
version | Code-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.
u | Input unit |
fname | Input file name |
nn | Maximum number of model lines |
nvar | Number of variables |
nc | Expected number of columns in the input file - no longer used |
verbose | Verbosity (0,1) |
dat | Data array |
n | Number of models read |
version | Code-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.
u | Input unit |
fname | Input file name |
nmax | Maximum number of model lines |
nvar | Number of variables |
nc | Expected number of columns in the input file - no longer used |
verbose | Verbosity (0,1) |
datf | Data array |
nfi | Number of models read |
version | Code-output version |
References read_bse(), and read_plt().
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)
pglabels | PGPlot labels |
asclabels | ASCII labels |
maxi | Size of the arrays |