Parent Sample¶
The Base Class¶
- class timewise.parent_sample_base.ParentSampleBase(base_name)[source]¶
Base class for parent sample. Any subclass must implement
ParentSample.df: A pandas.DataFrame consisting of minimum three columns: two columns holding the sky positions of each object in the form of right ascension and declination and one row with a unique identifier.
ParentSample.default_keymap: a dictionary, mapping the column in ParentSample.df to ‘ra’, ‘dec’ and ‘id’
- Parameters:
base_name – determining the location of any data in the timewise data directory.
- plot_cutout(ind, arcsec=20, interactive=False, **kwargs)[source]¶
Plot the coutout images in all filters around the position of object with index i
- Parameters:
ind (int or list-like) – the index in the sample
arcsec (float) – the radius of the cutout
interactive (bool) – interactive mode
kwargs – any additional kwargs will be passed to matplotlib.pyplot.subplots()
- Returns:
figure and axes if interactive=True