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

Consesearch with date restriction #657

Open
JulienPeloton opened this issue Sep 26, 2024 · 1 comment
Open

Consesearch with date restriction #657

JulienPeloton opened this issue Sep 26, 2024 · 1 comment
Labels
bug Something isn't working conesearch
Milestone

Comments

@JulienPeloton
Copy link
Member

This query leads to wrong results:

"05:49:08.40" "+17:29:24.8" r=2d  after=2019-01-01 before=2019-01-30

as some alerts show with jd outside the range. However they have a jdstarthist within that window which confuses the search. We should restrict to jd values only.

CC: @hopkins9942

@JulienPeloton
Copy link
Member Author

Same appears on the API:

In [7]: import io
   ...: import requests
   ...: import pandas as pd
   ...: 
   ...: # Get all objects falling within (center, radius) = ((ra, dec), radius)
   ...: # between 2021-06-25 05:59:37.000 (included) and 2021-07-01 05:59:37.000 (excluded)
   ...: r = requests.post(
   ...:   "https://fink-portal.org/api/v1/explorer",
   ...:   json={
   ...:     "ra": "05:49:08.40",
   ...:     "dec": "+17:29:24.8",
   ...:     "radius": "7200",
   ...:     "startdate": "2019-01-01",
   ...:     "window": 29 # in days
   ...:   }
   ...: )
   ...: 
   ...: # Format output in a DataFrame
   ...: pdf = pd.read_json(io.BytesIO(r.content))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working conesearch
Projects
Status: New
Development

No branches or pull requests

1 participant