
Another tool from the A* Vienna software team
A library of templates and helper functions for creating
scopesim.source.source.Source
objects that can be used to run ScopeSim
simulations.
In short scopesim.source.source.Source
objects contain a description of the spatial and
spectral information of the source. For more information see here.
Warning
July 2022: The downloadable content server was retired and the data migrated to a new server.
ScopeSim_templates v0.4.2 and above have been redirected to a new server URL.
For older verions, please either upgrade to the latest version (pip install --upgrade scopesim_templates
), or follow these instructions to update the server URL in the config file.
Installation¶
This package has been released on PyPi:
pip install scopesim_templates
From basic to advanced helper functions¶
ScopeSim Templates is a python package, and is therefore by nature infinitely extendable.
As it is impossible for us to know all the details about your specific science case, we provide a small selection of basic objects (star cluster, elliptical galaxy, etc). Feel free to start with these to get started with ScopeSim.
However if your needs outgrow the basic objects, we encourage you to extended the objects to fit your specific science case. In this case we strongly encourage you to get in contact with us adding your code in the form of a subpackage. You can do this either by opening an issue on Github, or by emailing one of the developers.
Available subpackages¶
Documentation for all the helper functions contained in each package can be found in the API documentation for each package.
stellar
:star()
: Places a single star on the fieldstars()
: Places a list of stars on the fieldcluster()
: Creates an age=0 cluster with a user selected massstars_field()
: Creates field of stars with random positionsstar_grid()
: Creates a field of stars with regular positions
extragalactic
galaxy()
: A simple sersic model with a user selected SED from thespeXtra
databasegalaxy3D()
: A more complex model that includes a velocity field and velocity dispersion fieldspiral_two_component()
: Simple two component model with an outer spiral young SED and an old SED bulgeelliptical()
: Another sersic model using the Brown SEDs
misc
point_source()
: similar tostar()
but using any SED from thespeXtra
databaseuniform_source()
: Creates a uniform source with any SED fromspeXtra
source_from_image_hdu()
: creates a source from anImageHDU
with an arbitrary flux and scalesource_from_imagehdu_with_flux()
: creates a source from anImageHDU
where the flux/pixel is knownsource_from_file()
: Load the source from a fits file. Depending on the characteristics otherfunctions may be more suitable
source_from_array()
: General function to create a source from a 2Dnumpy
arraysource_from_cube()
: Wrapper to create a source from a 3D datacube
calibration
:empty_sky()
: To simulate a sky without no other sourceslamp()
: Simulates a calibration lamp, i.e. a homogenous source with emissions linesflat_field()
: Simulates a flat field
Contact¶
If you find an issue with ScopeSim Templates, please let us know via the Github issues page