Keywords: gildas-python

Next: Special commands Up: Using SIC from Python Previous: Using SIC from Python Contents Index

### PyGildas modules

Most of the Gildas packages can be directly imported as Python modules:

- `import pysic`
- `import pygreg`
- `import pyastro`
- `import pyclass`6
- `import pyclic`
- `import pymapping`

During the import, 3 steps are executed:

- SIC (resp. GreG) is initialized as a background process,
- the `Sic` object is instantiated into Python `__main__` (see subsection 2.3.4),
- all SIC variables are imported into Python `__main__` (see subsection 2.4).

From this point, you can use the (shared) variables, jump to SIC prompt, and use any of the methods the module defines (see hereafter).