Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the parameters of the straylight #6

Open
reza35 opened this issue Apr 5, 2018 · 0 comments
Open

Changing the parameters of the straylight #6

reza35 opened this issue Apr 5, 2018 · 0 comments

Comments

@reza35
Copy link

reza35 commented Apr 5, 2018

according to explanations in https://aasensio.github.io/hazel2/programmatically.html, one can use the following command to modify the straylight parameters:

mod.atmospheres['st1'].set_parameters([0.0, 1.0])

but I experience a crash by calling it. it complains that there are more parameters.

~/python/vtt/synthesize_hazel2_1c.py in synthesize_hazel2_1c_stray(bfd, theta, phi, vel, dopp, tau, wave)
     69     mod.add_parametric({'Name': 'st1', 'Spectral region': 'spec1', 'Wavelength': [wave[0], wave[1]]})
     70     # straylight parameters are vel and ff.
---> 71     mod.atmospheres['st1'].set_parameters([0., 0.1])
     72 
     73     # we need to finalize the setup

/data/miniconda/envs/rpy3/lib/python3.6/site-packages/hazelinv-1.9.0-py3.6-linux-x86_64.egg/hazel/parametric.py in set_parameters(self, pars)
     89         self.parameters['lambda0'] = pars[0]
     90         self.parameters['sigma'] = pars[1]
---> 91         self.parameters['depth'] = pars[2]
     92         self.parameters['a'] = pars[3]
     93         self.parameters['ff'] = pars[4]

IndexError: list index out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant