Module: jointfit_functions#
- kbmod.jointfit_functions.get_mpc_times(filename)[source]#
Read in a file with observations in MPC format and return the coordinates.
- Parameters:
- filename: str
The name of the file with the MPC-formatted observations.
- Returns:
- c: astropy SkyCoord object
A SkyCoord object with the ra, dec of the observations.
- kbmod.jointfit_functions.load_pg_names(file_path)[source]#
Load the pointing group numbers, ccd numbers, and indexes based on the file names of the detected objects
- kbmod.jointfit_functions.load_pg_names_from_df(file_path, good_list_path, pg_name=None, suffix='FAKE_DEEP_hyak')[source]#
Load the pointing group numbers, ccd numbers, and indexes from the dataframe generated for the vetting of the images with the fakes injected.
- Parameters:
- file_path: str
The path to the dataframe containing all the metadata for the results
- good_list_path: str
The path to the text file containing the obj_ids for the candidates labelled as “good”
- pg_name: str
Optional parameter to slice the dataframe based on a single pointing group
- suffix: str
Slice the dataframe based on the kbmod suffix
- kbmod.jointfit_functions.load_pg_names_from_df_w_suffix(file_path, good_list_path=None, pg_name=None)[source]#
Load the pointing group numbers, ccd numbers, and indexes from the dataframe generated for the vetting of the images with the fakes injected.
- Parameters:
- file_path: str
The path to the dataframe containing all the metadata for the results
- good_list_path: str
The path to the text file containing the obj_ids for the candidates labelled as “good”
- pg_name: str
Optional parameter to slice the dataframe based on a single pointing group