| ntcontour | analysis.nebular | ntcontour |
ntcontour -- Plot contours of N_e- or T_e-sensitive line ratios
ntcontour atom spectrum primary
This task computes and plots curves that show the range of electron temperatures (T_e), electron densities (N_e), and/or intensity ratios that are consistent with a specified diagnostic. A family of secondary curves may optionally be plotted, where each curve may be specified explicitly or as a set of successive, small differences from the reference ratio, giving the appearance of contours. Though for most ions there are default diagnostics for N_e and T_e, it is possible to customize the diagnostic to the ratio of any of the supported transitions. This task may be run interactively, so that it is possible to investigate any number of diagnostics quickly. This task is particularly useful for determining the range of N_e and T_e where a particular diagnostic is sensitive, for investigating non-traditional diagnostics, and for estimating the consequences of a given level of uncertainty in an observed line ratio. The diagnostics are computed within the N-level atom approximation. For more details about this approximation, type "help nlevel".
The user specifies the name and the spectrum number of the ion, and an expression for the fixed value of interest (i.e., the N_e, T_e, or the reddening-corrected diagnostic line ratio, as appropriate). The output will be a plot with a curve of the specified type, with the abscissa axis being either N_e or T_e, and the ordinate axis being either T_e or the intensity ratio depending upon the setting of the "plot_type" parameter. For plot_types of "IN" or "IT" the intended type of diagnostic is apparent (density or temperature, respectively) and the default ratio can be determined, but for plot_type=TN it is possible that the selected ion could serve as either a density or a temperature indicator. In this case the type of diagnostic will be determined from the value of the "diag_type" parameter. The default diagnostic line ratios for the various ions can be viewed in the on-line help for "nlevel". It is possible to customize the line ratio using the "transition" parameter and an expression for the ratio of interest. For details, see the explanation for this parameter and the examples below.
Secondary curves may in addition be plotted, and are specified in one of two ways. The most direct way is to provide a list of values in the "clist" parameter which (like the "primary" value) specify the fixed quantities for the curves. The user may alternatively specify both a multiplicative increment (in dex, the decimal exponent) to the primary (or reference) ratio, and the number of desired contour pairs above/below the reference curve. In this case the task will plot a pair of curves for each value/increment of the diagnostic. The number of pairs plotted is set with the "ncontours" task parameter.
A number of optional parameters specify the appearance of the initial plot. A dotted curve denotes the reference value of interest, and the solid curves denote secondary contours. The user may specify the color of each type of curve, provided the output device supports color. Note that if the reference ratio falls out of bounds (i.e., is unphysical), those points on the curve(s) will not be plotted; if no points can be plotted on the reference curve, the task will report an error.
This task will by default run interactively, allowing the plot axes, the appearance, and the selected ion to be changed with a set of simple cursor and colon commands.
c Report the world coordinates of the cursor q Quit the task r Redraw the graph I Interrupt task immediately ? Display this help document : Enter command/value pairs
:atom [string] Set the atom
:clist [string] Set the list of secondary contours
:diagtype [string] Set the diagnostic type (density|temperature)
:dmin [real] Set the minimum density plot limit
:dmax [real] Set the maximum density plot limit
:dscale [string] Select log/linear plot scale for N_e
:imin [real] Set the minimum intensity plot limit
:imax [real] Set the maximum intensity plot limit
:iscale [string] Select log/linear plot scale for intensity
:interval [real] Set the interval (in dex) between contours
:ion [int] Set the ion
:ncontours [int] Set no. contours above/below primary curve
:plottype [string] Set the type of plot: TN, IN, IT
:primary [string] Set the expression for the primary contour
:refcolor [int] Set color of the reference curve
:resolution [int] Set the curve resolution
:title [string] Set the title ("default" selects default title)
:tmin [real] Set the minimum temperature plot limit
:tmax [real] Set the maximum temperature plot limit
:tscale [string] Select log/linear plot scale for T_e
:transition [string] Set the transition for a custom diagnostic
1. Plot 5 curves in the N_e, T_e plane that are consistent with the [S II] density diagnostic ratio centered at ~0.7, in increments of dex(0.05), and adjust the default plot limits such that N_e < 1.e+6/cm^3 and T_e < 50,000 K.
cl> ntcontour sulfur 2 3.2/4.51 diag_type=density delta=0.05 \
>>> ncont=2 max_dens=1.E6 max_temp=5.e+4 interact-
2. Plot curves in the N_e, intensity plane that are consistent with the [O II] density diagnostic ratio for T_e=10000. K, with secondary curves corresponding to T_e=5000 and T_e=15000.
cl> ntcontour oxygen 2 1.e4 plot_type=IN clist="5000. 1.5e4"
Once in interactive mode, change the plot limits to intensity < 4, 1.e2 < N_e < 1.e6, then replot:
:imax 4 dmin 1.e2 dmax 1.e6
r
Now change the plot to T_e vs. N_e; set the diagnostic ratio to 2.0 and the secondary curves to 1.0 and 3.0, then replot:
:plottype TN primary 2. clist "1. 3."
r
3. Investigate the utility of a custom temperature diagnostic for O III. Plot curves in the N_e, T_e plane that are consistent with the ratio I(1661+1666)/I(4363) for values of 1.0 (primary), 0.5 and 1.5 (secondary). (Note that the transitions corresponding to these wavelengths can be found by running the "ionic" task first.)
cl> ntcont oxygen 3 1. diag_type=temperature clist="0.5 1.5" \
>>> transition="(j(6,3)+j(6,2))/j(5,4)" interact-
The 5-level atom program, upon which this package is based, was originally written by M.M. DeRobertis, R. Dufour, and R. Hunt. This package was written by R.A. Shaw (STScI). A description was published by R.A. Shaw & R.J. Dufour (1994). Type "help nlevel" for additional information about the N-level atom approximation, and for references to the atomic parameters and the other literature references. Support for this software development was provided by the Astrophysics Data Program through NASA grant NAG5-1432, and through STScI internal research funds.
For general information about this package, type "help nebular opt=sysdoc".