astroplan icon indicating copy to clipboard operation
astroplan copied to clipboard

adding additional time constraint between observations?

Open amanda-pagul opened this issue 4 years ago • 5 comments

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 avatar Jul 12 '20 03:07 amanda-pagul

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

amanda-pagul avatar Sep 14 '20 18:09 amanda-pagul

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?

wtgee avatar Sep 14 '20 19:09 wtgee

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.

amanda-pagul avatar Sep 14 '20 19:09 amanda-pagul

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.

wtgee avatar Sep 14 '20 20:09 wtgee

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

amanda-pagul avatar Sep 14 '20 20:09 amanda-pagul