Skip to content

SkycalcTERCurve does not offer a possibility to change parameters programmatically #818

@oczoske

Description

@oczoske

skycalc has many parameters that can be used to tune the conditions under which the atmospheric spectra are to be computed. However, the Scopesim effect SkycalcTERCurve does not expose these parameters in a user-friendly way. They can be set when the effect is instantiated individually (this is tested to a limited extent in test_SkycalcTERCurve.py). They can also be set in a yaml file, although Armazones.yaml does not actually do that. There is, as far as I can tell, no way to change the parameters in the UserCommands or in the effect once the OpticalTrain has been built. This would be useful to study the influence of atmospheric conditions on the data.

  • The easiest way to do it might be an .update(**kwargs) method, which accepts skycalc parameters and triggers a new query to the skycalc server. Validating the kwargs might be a bit tricky.
  • In UserCommands it may or may not be possible to accept the parameters in the !ATMO category. Do they need to be predefined somewhere?
  • The docstring of SkycalcTERCurve should have a list of accepted skycalc parameters, or point to the appropriate skycalc documentation.

There's some relation to #804 .

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIHow users interact with the softwaredocumentationImprovements or additions to documentationeffectsRelated to a ScopeSim effect

    Projects

    Status

    ✅ Done

    Status

    ✅ Implemented

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions