guynir42 / AstroRetriever

A package used for downloading and processing images from various astronomical surveys
Other
4 stars 2 forks source link

Completed outline of tess.py with fetch_data_from_observatory #53

Closed felixzhu555 closed 1 year ago

guynir42 commented 1 year ago

@felixzhu555 I've merged some fixes to how the Dataset parses the time columns on the dataframe. To get this to work we need to read the units from the table that is read from the FITS file, and replace the "TIME" column name with the units, in the test case this was "BJD - 2457000, days". I think you can get that value by getting the table.info property, e.g., do something like table.['TIME'].unit.to_string(), and put that as the name of the column instead of 'TIME'. That will allow the Dataset to parse the time offset and save the timestamp properly as BJD.

felixzhu555 commented 1 year ago

Resolved: "TIME" column replaced with "BJD - 2457000, days"