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

Add recommended exposure times OSN instruments in the admin #143

Merged
merged 3 commits into from
Oct 23, 2024

Conversation

juanep97
Copy link
Owner

@juanep97 juanep97 commented Oct 7, 2024

This PR adds some columns indicating the recommended exposure time for Sierra Nevada instruments, following the request of the observers. Something like:
imagen

From Alfredo's email:

Los cálculos que tengo son los siguientes:
Texp T90 = (s/n)^2*9,77*10^-16*10^(0,8*R), con s/n=150. Si se quiere mas s/n, pues se cambia en la fórmula.
Texp 150 = Text T90 * 0.36

Después los tiempos que salen se redondean a 5 tiempo (60s, 150s, 300s, 450s y 600s) con esta fórmula:
Para el T150: =IF(T<30; 60; IF(T<=100; 150; IF(T<=250; 300; IF(T<=400; 450; 600))))
Para el T90: =IF(T<30; 60; IF(T<=100; 150; IF(T<=250; 300; IF(T<=400; 450; IF(T<=800; 600; "X")))))

Para el tiempo de exposición de DIPOL se usa esta fórmula: =IF(T<=300; CEILING(T; 10)+10; IF(T<=2000;300; "X"))
Y para las repeticiones esta: =IF(TD<=20; 8; IF(TD<=40; 4; IF(TD<=80; 2; 1))), donde TD es el tiempo de la fórmula anterior.

@juanep97 juanep97 requested review from morcuended and joteros October 7, 2024 18:47
@juanep97 juanep97 closed this Oct 7, 2024
@juanep97 juanep97 reopened this Oct 7, 2024
@juanep97 juanep97 marked this pull request as ready for review October 7, 2024 22:10
@juanep97
Copy link
Owner Author

juanep97 commented Oct 8, 2024

@joteros Could check that the results are what they should? I am not sure what is that "X" in the formulas from the observer.

@joteros
Copy link
Collaborator

joteros commented Oct 8, 2024

@joteros Could check that the results are what they should? I am not sure what is that "X" in the formulas from the observer.

I think it is something related with the excel spreadsheet, that if a certain condition is/is not fulfilled, in the excel it automatically writes and X in the corresponding cell (see the OSN tab here: https://docs.google.com/spreadsheets/d/1E5ji4X0PK3fLrdXUX8x7t98kYREC5aL2lsILn0lianA/edit?usp=sharing). Maybe too faint targets are directly not computed for exposures with DIPOL? We should check with Alfredo.

EDIT: Indeed, it looks like that. I copy from Alfredo's email a while ago:

Con esto se calcula el tiempo de exposición necesario para que un Blazar de magnitud m tenga una s/n de 150.
Pero luego redondeo para simplificar las secuencias de Maxim-DL con esta fórmula:
=SI(C8<30; 60; SI(C8<=100; 150; SI(C8<=250; 300; SI(C8<=400; 450; SI(C8<=800; 600; "X")))))

Que significa lo siguiente (para el T90):
Si el tiempo calculado para tener una s/n de 150 es menor de 30s, le doy 60s de exposición.
Si el tiempo está entre 30s y 100s, le doy 150s
Si el tiempo está entre 100s y 250s, le doy 300s
Si el tiempo está entre 250s y 400s le doy 450s
Si el tiempo está entre 400s y 800s le doy 600s
A partir de 800s pongo una 'X' que significa que no se puede observar en el T90 y hay que hacerlo en el T150

iop4lib/db/astrosource.py Outdated Show resolved Hide resolved
iop4lib/db/astrosource.py Show resolved Hide resolved
iop4lib/db/astrosource.py Outdated Show resolved Hide resolved
@juanep97 juanep97 requested a review from morcuended October 9, 2024 09:58
@morcuended morcuended merged commit 973a53a into main Oct 23, 2024
5 checks passed
@morcuended morcuended deleted the integration_times branch October 23, 2024 08:45
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

Successfully merging this pull request may close these issues.

3 participants