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

adding additional time constraint between observations? #462

Open
amanda-pagul opened this issue Jul 12, 2020 · 5 comments
Open

adding additional time constraint between observations? #462

amanda-pagul opened this issue Jul 12, 2020 · 5 comments

Comments

@amanda-pagul
Copy link

Hello!

I was wondering if there was a way to add a time constraint between observations of different objects, i.e. adding a fixed amount of time on top of the slew rate? There is some telescope/observatory overhead that is not related to read_out nor the slew_rate. I'm assuming this would go into "Transitioner". I thought at first that time_resolution would do the trick, but I think I'm misinterpreting what time_resolution does (i.e. if I set time_resolution = 500*u.second, it doesn't seem to add 500 seconds between observations).

Thanks in advance!
Amanda

@amanda-pagul
Copy link
Author

Hello! Any chance I could get an answer/help with this please?

@wtgee
Copy link
Contributor

wtgee commented Sep 14, 2020

Hi @amendochka, sorry for the silence. Can you give a more concrete or code example using the Transitioner that didn't work as per the example here:

from astroplan.scheduling import Transitioner

# Initialize a transitioner object with the slew rate and/or the
# duration of other transitions (e.g. filter changes)
slew_rate = .8*u.deg/u.second
transitioner = Transitioner(slew_rate,
                            {'filter':{('B','G'): 10*u.second,
                                       ('G','R'): 10*u.second,
                                       'default': 30*u.second}})

I guess I'm wondering if you have overhead that doesn't somehow fit into the default transition time available via the configuration-switcher dictionary?

@amanda-pagul
Copy link
Author

It doesn't fit in the default transition time in the sense that the overhead doesn't exist between filters, just between observations. My setup looks the same as what you posted (with different values for slew_rate, filter transition, etc.)--I just took from the example.

@wtgee
Copy link
Contributor

wtgee commented Sep 14, 2020

TBH I haven't worked with the Transitioner much, by my understanding is that there is no magic to the "filter" keyword there. So you could:

transitioner = Transitioner(slew_rate,
                            {'filter':{('B','G'): 10*u.second,
                                       ('G','R'): 10*u.second,
                                       'default': 30*u.second},
                            {'other-overhead':{'default': 90*u.second}})

Although in writing that it seems like you would want to control the order.

@amanda-pagul
Copy link
Author

oh cool! I will try that out, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants