Project

General

Profile

Run independent simulations

We create two new method in the object Observation.
  • getSpectros() which return the list of spectro images to simulate
  • runOneSim() which run the simulation of one spectro image.

Example of usage:

inCat = "path to input catalog file" 
inSpc = "path to input spectra file" 

# initialize the class
obs = tips.Observation(inCat, inSpc)
obs.loadEUCLIDDefault()

# run simulation using runOneSim()
spectroList = obs.getSpectros()
for one in spectroList:
        obs.runOneSim(one)