Downloading packages#
Note: Instrument packages are kept in a separate repository: the Instrument Reference Database (IRDB)
Before simulating anything we need to get the relevant instrument packages. Packages are split into the following categories
Locations (e.g. Armazones, LaPalma)
Telescopes (e.g. ELT, GTC)
Instruments (e.g. MICADO, METIS, MORFEO, OSIRIS, MAAT)
We need to amke sure we have all the packages required to built the optical system. E.g. observing with MICADO is useless without including the ELT.
import scopesim as sim
from tempfile import TemporaryDirectory
tmpdir = TemporaryDirectory()
sim.set_inst_pkgs_path(tmpdir.name)
scopesim.download_packages()#
Stable packages#
The simplest way is to simply get the latest stable versions of the packages by calling their names.
Call list_packages() or see the IRDB for names.
sim.list_packages()
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/atmo/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/example_data/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/instruments/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/locations/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/psfs/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/telescopes/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/instruments/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/locations/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/telescopes/ "HTTP/1.1 200 OK"
['HAWKI',
'MAORY',
'METIS',
'MICADO',
'MICADO_Sci',
'MORFEO',
'MOSAIC',
'NIRCam',
'OSIRIS',
'WFC3',
'test_package',
'Armazones',
'LaPalma',
'Paranal',
'ELT',
'GTC',
'HST',
'JWST',
'LFOA',
'VLT',
'ViennaLT']
sim.download_packages(["Armazones", "ELT", "MICADO"])
astar.scopesim.server.database - Gathering information from server ...
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/atmo/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/example_data/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/instruments/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/locations/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/psfs/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/telescopes/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/instruments/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/locations/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/telescopes/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/atmo/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/example_data/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/instruments/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/locations/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/psfs/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/telescopes/ "HTTP/1.1 200 OK"
astar.scopesim.server.database - Connection successful, starting download ...
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/locations/Armazones.2023-07-11.zip "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/telescopes/ELT.2025-10-26.zip "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/instruments/MICADO.2026-04-17.zip "HTTP/1.1 200 OK"
[PosixPath('/tmp/tmpq2brithz/Armazones.zip'),
PosixPath('/tmp/tmpq2brithz/ELT.zip'),
PosixPath('/tmp/tmpq2brithz/MICADO.zip')]
Development version#
Use the release="latest" parameter to get the latest stable development verions of the packages
sim.download_packages("test_package", release="latest")
astar.scopesim.server.database - Gathering information from server ...
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/atmo/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/example_data/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/instruments/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/locations/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/psfs/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/telescopes/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/instruments/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/locations/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/telescopes/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/atmo/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/example_data/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/instruments/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/locations/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/psfs/ "HTTP/1.1 200 OK"
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/telescopes/ "HTTP/1.1 200 OK"
astar.scopesim.server.database - Connection successful, starting download ...
httpxyz - HTTP Request: GET https://scopesim.univie.ac.at/InstPkgSvr/instruments/test_package.2023-07-21.dev.zip "HTTP/1.1 200 OK"
[PosixPath('/tmp/tmpq2brithz/test_package.zip')]