AstarVienna / ScopeSim_Templates

GNU General Public License v3.0
2 stars 4 forks source link

METIS calibration pinhole mask #31

Closed astronomyk closed 5 months ago

astronomyk commented 2 years ago

Code block for adding a pinhole mask to the METIS calibration package for the LMS mode

No particular assignee, no time frame, just whoever wants an easy win one day.

Code used by TM - would be better to create a grid of x,y coord then initialise via an astropy Table

src = sim.source.source_templates.star(x=0, y=0, flux=0.0001*u.Jy)
nx=5; X = np.linspace(-0.45,0.45,nx)
ny=28; Y = np.linspace(-0.27945,0.27945,ny)
​
for y in Y:
    for x in X :
        src += sim.source.source_templates.star(x=x, y=y, flux=randint(1,12)*u.Jy)
hugobuddel commented 5 months ago

Just shy of the 2-year mark. Thanks