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

This logic doesn't work all the time #45

Open
benda18 opened this issue Apr 3, 2024 · 1 comment
Open

This logic doesn't work all the time #45

benda18 opened this issue Apr 3, 2024 · 1 comment

Comments

@benda18
Copy link
Owner

benda18 commented Apr 3, 2024

ecl_type <- c("total" = min(abs(min(when_next$tret[when_next$tret > 0]) -
swe_sol_eclipse_when_glob(jd_start = min(when_next$tret[when_next$tret > 0]),
ephe_flag = 4,
ifltype = SE$ECL_TOTAL,
backward = F)$tret)),
"annular" = min(abs(min(when_next$tret[when_next$tret > 0]) -
swe_sol_eclipse_when_glob(jd_start = min(when_next$tret[when_next$tret > 0]),
ephe_flag = 4,
ifltype = SE$ECL_ANNULAR,
backward = F)$tret)),
"partial" = min(abs(min(when_next$tret[when_next$tret > 0]) -
swe_sol_eclipse_when_glob(jd_start = min(when_next$tret[when_next$tret > 0]),
ephe_flag = 4,
ifltype = SE$ECL_PARTIAL,
backward = F)$tret)))

@benda18
Copy link
Owner Author

benda18 commented Apr 3, 2024

The following inputs return TOTAL ECLIPSE when Wikipedia says ANNULAR

start.date <- mdy("april 9, 2024")
obs.gte    <- 0.05
var.lon    <- 51.47888  
var.lat    <- -8.597059

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

1 participant