The different pysynphot [[model families][http://pysynphot.readthedocs.io/en/latest/appendixa.html#pysynphot-appendixa] all have different types of required parameters to specify which model to choose, and specifying them in a scene.ini file might not be obvious.
The simplest way of finding which properties are required for a specific model is to use the python notes from the pysynphot page to load the model into the mirisim version of pysynphot, attach the loaded SED to an existing source, and print out the source properties. This printout (to the screen) will show the SED properties of the created source.
An example follows below for the Phoenix models, which require a temperature, metalicity and log_g. These properties are specified on the pysynphot website assp = S.Icat('phoenix', 10000, 0.1, 3.0)
and are added as sedpars in mirisim:
>>> from mirisim.skysim import PYSPSed,Point >>> pt = Point(Cen=(0,0)) 2018-04-23 11:50:34,489 - INFO - Initializing Point >>> sed = PYSPSed(family='phoenix', sedpars=[10000,0.1,3.0], flux=5., wref=10.) >>> pt.set_SED(sed) >>> print pt Source of Type: <class 'mirisim.skysim.basicsources.Point'> Point Source Cen=(0.00,0.00), flux=5.000,wref=10.000,vel=0.00,z=0.00 ===============SED================== Sed of type: <class 'mirisim.skysim.wrap_pysynphot.PYSPSed'> family: phoenix subfamily: sedpars:[10000,0.1,3.0] sedname: ===========END=SED==============These parameters can then be specified in the scene.ini file as:
[[sed]] Type = pysynphot family = phoenix sedpars = 3000 0.5 3.0 wref = 10 flux = 5
Copyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.