exojax.plot packageο
Submodulesο
exojax.plot.atmplot moduleο
plotting tool for atmospheric structure.
- exojax.plot.atmplot.factor_labelx_for_unit()ο
- exojax.plot.atmplot.imshow_custom(vmin, vmax, ltau, extent, ax)ο
- exojax.plot.atmplot.plot_maxpoint(mask, Parr, maxcf, maxcia, mol='CO')ο
Plotting max contribution function points.
- Parameters:
mask β weak line mask
Parr β Paressure array
maxcf β max contribution function of the molecules
maxcia β max contribution function of CIA
mol β molecular name
- exojax.plot.atmplot.plotcf(nus, dtauM, Tarr, Parr, dParr, unit='cm-1', log=False, normalize=True, cmap='bone_r', optarr=None, leftxlabel='Warning: specify leftxpanel', leftxlog=False)ο
plot the contribution function. This function gives a plot of contribution function, optionally w/ a T-P (or any) profile.
- Parameters:
nus β wavenumber
dtauM β dtau matrix
Tarr β temperature profile
Parr β perssure profile
dParr β perssure difference profile
unit β x-axis unit=cm-1, um (wavelength microns), nm = (wavelength nm), AA = (wavelength Angstrom),
log β True=use log10(cf)
normalize β normalize cf for each wavenumber?
cmap β colormap
optarr β the optional profile X, i.e. a X-P profile of the left panel, instead of a T-P profile
leftxlabel β xlable of the left panel
leftxlog β if True, log for the x grid of the left panel
- Returns:
contribution function
- exojax.plot.atmplot.plottau(nugrid, dtauM, Tarr=None, Parr=None, unit=None, mode=None, vmin=-3, vmax=3)ο
Plot optical depth (tau). This function gives the color map of log10(tau) (or log10(dtau)), optionally w/ a T-P profile.
- Parameters:
nus β wavenumber in linear scale
dtauM β dtau matrix
Tarr β temperature profile
Parr β perssure profile
unit β x-axis unit=um (wavelength microns), nm = (wavelength nm), AA = (wavelength Angstrom),
mode β mode=None (plotting tau), mode=dtau (plotting delta tau for each layer)
vmin β color value min (default=-3)
vmax β color value max (default=3)
exojax.plot.ditplot moduleο
Plotting tool for DIT/MODIT.
- exojax.plot.ditplot.plot_dgm(dgm_sigmaD, dgm_gammaL, sigmaDM, gammaLM, js=0, je=10)ο
plot DIT grid matrix (dgm)
- Parameters:
dgm_sigmaD β DIT grid matrix of sigmaD (Nlayer x Ngrid)
dgm_gammaL β DIT grid matrix of gammaL (Nlayer x Ngrid)
sigmaDM β sigmaD matrix (Nlayer x Nline)
gammaLM β gammaL matrix (Nlayer x Nline)
js β layer index for start to display
je β layer index for end to display
- exojax.plot.ditplot.plot_dgmn(Parr, dgm_ngammaL, ngammaLM, js, je)ο
plot MODIT grid matrix (dgm)
- Parameters:
Parr β pressure layer (Nlayer)
dgm_ngammaL β DIT grid matrix of ngammaL (Nlayer x Ngrid)
ngammaLM β ngammaL matrix (Nlayer x Nline)
js β layer index for start to display
je β layer index for end to display
exojax.plot.opaplot moduleο
- exojax.plot.opaplot.plot_broadening_parameters_grids(ngamma_ref_grid, n_Texp_grid, nu_grid, resolution, gamma_ref_in, n_Texp_in, crit, figname)ο
- exojax.plot.opaplot.plot_lbd(lbd_coeff, elower_grid, ngamma_ref_grid, n_Texp_grid, multi_index_uniqgrid, nu_grid, vmin=-70, vmax=-20, order=0, number_of_ticks=10)ο
Plots the line basis density
Note
See #548 for more details.
Examples
- nu_grid, wav, resolution = wavenumber_grid(
22900.0, 27000.0, 200000, unit=βAAβ, xsmode=βpremoditβ
) mdb = MdbExomol(β.database/CO/12C-16O/Li2015/β, nurange=nu_grid) opa = OpaPremodit(mdb, nu_grid, auto_trange=[500.0, 1000.0], dit_grid_resolution=0.2) lbd, midx, gegrid, gngamma, gn, R, pm = opa.opainfo plot_lbd(lbd, gegrid, gngamma, gn, midx, nu_grid)
- Parameters:
lbd_coeff (array) β line basis density coefficients
elower_grid (array) β elower grid
ngamma_ref_grid (array) β n_gamma_ref grid
n_Texp_grid (array) β n_Texp grid
multi_index_uniqgrid (array) β multi index grid
nu_grid (array) β wavenumber grid
vmin (int, optional) β min value of color. Defaults to -70.
vmax (int, optional) β max value of color. Defaults to -20.
order (int, optional) β order of the LBD coefficient. Defaults to 0.
number_of_ticks (int, optional) β number of ticks. Defaults to 10.
exojax.plot.rtplot moduleο
- exojax.plot.rtplot.comparison_with_pure_absorption(cumThat, Qhat, spectrum, trans_coeff, scat_coeff, piB)ο
- exojax.plot.rtplot.panel_imshow(val1, val2, title1, title2)ο