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

Kl/rics viking fields #29

Merged
merged 8 commits into from
Apr 19, 2022
Merged

Kl/rics viking fields #29

merged 8 commits into from
Apr 19, 2022

Conversation

astronomyk
Copy link
Collaborator

For @hugobuddel, and possible to be shared with Yixian and Ric, once we have an example script/notebook for them
Also need to push this to master and then update the ScopeSim-Templates pypi package

This tackles at least one aspect of issue #26.
The viking fields are the ones Ric sent 3 weeks ago - 3 star fields and 3 background galaxy distributions for a 1 arcminute field of view.

  • The function viking_field() [ in full calibration.micado.viking_fields.viking_field()] generates a single Source object containing ~1000 background galaxies and a table of the background stars in the field.
  • There are 3 background galaxy distributions that can be used interchangeably ["1", "2", "3"]
  • The 3 star fields are labelled ["illum", "science", "stdstar"] are are obviously meant for different purposes.

The choice of field can be set thusly:

from scopesim_templates.calibration.micado import viking_fields as vf

# Standard random star and galaxy generation at 0.004" resolution
src = vf.viking_field(star_cat_id="illum", gal_cat_id="1")

if we want to oversample the galaxies (and thus take longer to process, we set the pixel_scale to smaller than the default 0.004 arcsec. Additionally we can ensure reproducibility of the galaxy positions by setting the random_seed to a certain integer

# For oversampling the galaxies and fixing their positions:
src = vf.viking_field(star_cat_id="science", gal_cat_id="2",
                      pixel_scale=0.002, random_seed=9001)

The resulting Source-object (i.e. src) is a regular source that can be used in the regular way with ScopeSim and MICADO
For example: (not tested)

from scopesim_templates.calibration.micado import viking_fields as vf
import scopesim as sim

bg_scene_src = vf.viking_field(star_cat_id="illum", gal_cat_id="1")

micado = sim.OpticalTrain("MICADO")
micado.observe(bg_scene_src)
micado.readout(filename="test_output.fits")

@astronomyk astronomyk added enhancement New feature or request ScopeSim-Templates labels Apr 14, 2022
@astronomyk astronomyk requested a review from hugobuddel April 14, 2022 12:08
@astronomyk astronomyk linked an issue Apr 14, 2022 that may be closed by this pull request
@astronomyk astronomyk merged commit 4259b6f into dev_master Apr 19, 2022
@astronomyk astronomyk deleted the kl/rics_viking_fields branch October 13, 2022 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MICADO Science calibration Source objects
2 participants