Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
viking_field()
[ in fullcalibration.micado.viking_fields.viking_field()
] generates a singleSource
object containing ~1000 background galaxies and a table of the background stars in the field."1", "2", "3"
]["illum", "science", "stdstar"]
are are obviously meant for different purposes.The choice of field can be set thusly:
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 integerThe resulting
Source
-object (i.e.src
) is a regular source that can be used in the regular way with ScopeSim and MICADOFor example: (not tested)