Skip to content

Commit

Permalink
Merge branch 'karrNewSims'
Browse files Browse the repository at this point in the history
  • Loading branch information
JenniferKarr committed Apr 16, 2024
2 parents 50218a5 + 29f0693 commit 6cf24bb
Show file tree
Hide file tree
Showing 6 changed files with 813 additions and 49 deletions.
34 changes: 1 addition & 33 deletions ESO/raw_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,44 +18,12 @@
import scopesim_templates as sim_tp
import astropy.units as u

from simulationDefinitions import *

logger = get_logger(__file__)

# lookup table for scopesim modes based on !OBS.type, which seems to be a
# direct relation (if it's not, change ... something)
MODESDICT = {
"IMAGE,LM": "img_lm",
"IMAGE,N": "img_n",
"IFU": "ifu",
}

SOURCEDICT = {
"empty_sky": (sim_tp.empty_sky, {}),
"flat_field": (
sim_tp.calibration.flat_field,
{
"temperature": 200,
"amplitude": 0,
"filter_curve": "V",
"extend": 15,
}
),
"simple_star": (
sim_tp.stellar.star,
{
"filter_name":"V",
"amplitude": [12]*u.mag,
}
)
}
SOURCEMODEDICT = {
"DARK": "empty",
"DETLIN": "flat",
"RSRF": "flat",
}

DEFAULT_IRDB_LOCATION = "../IRDB/"
sim.download_packages(["Armazones", "ELT", "METIS"])

def simulate(fname, kwargs, source=None):
"""Run main function for this script."""
Expand Down
Loading

0 comments on commit 6cf24bb

Please sign in to comment.