ramjet.data_interface.moa_data_interface¶
Code for interacting with MOA light curve files and metadata.
Module Contents¶
Classes¶
MoaDataInterface |
A class for interacting with MOA light curve files and metadata. |
-
class
MoaDataInterface[source]¶ A class for interacting with MOA light curve files and metadata.
-
survey_tag_to_path_list_dictionary_:Union[Dict[str, List[Path]], None]¶
-
no_tag_string= no_tag¶
-
survey_tag_to_path_list_dictionary:Dict[str, List[Path]]¶ Property allowing the survey tag to path list dictionary to only be loaded once.
Returns: The survey tag to path list dictionary
-
static
read_corrected_nine_year_events_table_as_data_frame(path: Path)[source]¶ Reads Takahiro Sumi’s 9-year events table as a Pandas data frame, correcting for updates that appear on Yuki Hirao’s website of the events (http://iral2.ess.sci.osaka-u.ac.jp/~moa/anomaly/9year/).
Parameters: path – The path to the events table file. Returns: The data frame.
-
static
read_takahiro_sumi_nine_year_events_table_as_data_frame(path: Path)[source]¶ Reads Takahiro Sumi’s 9-year events table as a Pandas data frame.
Parameters: path – The path to the events table file. Returns: The data frame.
-
static
get_yuki_hirao_events_data_frame()[source]¶ Loads the events data from Yuki Hirao’s website of events (http://iral2.ess.sci.osaka-u.ac.jp/~moa/anomaly/9year/).
Returns: The data frame of the events.
-
get_tag_for_path_from_data_frame(self, path: Path, events_data_frame: pd.DataFrame)[source]¶ Gets the event tag of a light curve from the events data frame.
Parameters: - path – The path of the light curve whose event tag should be retrieved.
- events_data_frame – Takahiro Sumi’s 9-year events data frame.
Returns: The string of the tag of the event. None if no tag exists.
-