6.1.2. Basic PYSPEX commandsΒΆ
The main PYSPEX commands that can be used in Python are designed to follow the SPEX command names. The syntax, however, deviates slightly because it needs to follow the Python syntax. This page contains the full list of the basic PYSPEX commands that are available.
This manual intents to show the basic usage of the commands intended for users already familiar with the SPEX syntax. If you need more information what the command does, please check the SPEX reference manual. For each command, the equivalent SPEX command will be mentioned for reference.
In the examples below, we assume PYSPEX has been started in python as follows:
>>> from pyspex import spex
>>> s = spex.Session()
Welcome user to SPEX version 3.05.00
NEW in this version of SPEX:
11-06-2018 Added Ext_Rate column to new spo files
18-12-2018 SPEX is now using the GPL license
Currently using SPEXACT version 2.07.00. Type `help var calc` for details.
>>>
Note
Note that only one SPEX session can be used within one Python run or program.
- 6.1.2.1. Data related commands
- 6.1.2.2. Model related commands
- 6.1.2.2.1. Abundance
- 6.1.2.2.2. Aerror
- 6.1.2.2.3. Calculate
- 6.1.2.2.4. Components
- 6.1.2.2.5. Distance
- 6.1.2.2.6. Energy grid
- 6.1.2.2.7. Flux & Luminosity
- 6.1.2.2.8. Ionisation balance
- 6.1.2.2.9. Ion selection
- 6.1.2.2.10. Setting parameters
- 6.1.2.2.11. Sectors
- 6.1.2.2.12. Differential Emission Measure (DEM) modeling
- 6.1.2.2.13. Plasma model parameters
- 6.1.2.3. Ascdump commands
- 6.1.2.4. Optimization commands
- 6.1.2.5. Plot commands
- 6.1.2.6. Log commands