-
Notifications
You must be signed in to change notification settings - Fork 177
Read in new HLSPs, fix search #1383
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
base: main
Are you sure you want to change the base?
Conversation
"I added start and end times for the datasets as astropy.time.Time objects, and implemented a slightly hacky fix for the incorrect Kepler dates." --> which Kepler dates are incorrect? If it's a database issue I'd love to see if that's something we could improve at MAST if there are inaccurracies in any fo the reported dates/times. |
@scfleming it's the |
A related issue: currently, there is a known bug of Search for TIC doing a cone search #1073
What about ID and mission, e.g.,
The change would be somewhat backward incompatible, e.g., if someone relies on If the full backward compatibility is deemed necessary, an alternative is to keep mission as-is, and expose project (TESS/Kepler/K2) and sequence. Some of the relevant columns from the current mission project sequence_number obs_collection provenance_name
-------------- ------- --------------- -------------- -----------------
TESS Sector 09 TESS 9 TESS SPOC
TESS Sector 35 TESS 35 HLSP TESS-SPOC
TESS Sector 63 TESS 63 HLSP QLP
TESS Sector 08 TESS 8 HLSP GSFC-ELEANOR-LITE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some things I notices will cause problems
|
||
def _warn_bonus_file(filename): | ||
with fits.open(filename, lazy_load_hdus=True) as hdulist: | ||
if hdulist[0].header["KEPMAG"] < 12: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will crash when "KEPMAG" is empty for sources not in the KIC. We should also compare to GMAG
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great, is GMAG always set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, GMAG always has values.
Right now there are some problems with search which are only becoming apparent as we have more and more data from TESS;
astropy.time.Time
objects, and implemented a slightly hacky fix for the incorrect Kepler dates.mission
andsequence
so that it's easier for people to narrow down based on a mission or a particular sequence of quarter, campaign, sector etc.For readers I'm adding in a reader for the new KBONUS HLSP.
This is a weird one, because there are extensions in the file for each quarter, so we need a way to return a LightCurveCollection as well as a LightCurve. I've added a special case for if quarters are passed.
@jorgemarpa is going to write a tutorial on how to use this reader that I can add to the docs.