diff --git a/clients/python/sliderule/ipysliderule.py b/clients/python/sliderule/ipysliderule.py index 29016827..359a0574 100644 --- a/clients/python/sliderule/ipysliderule.py +++ b/clients/python/sliderule/ipysliderule.py @@ -2198,7 +2198,13 @@ def plot(self, **kwargs): PT = int(kwargs['PT']) # extract orbital cycle parameters cycle = int(kwargs['cycle']) - if (kwargs['atl03'] is not None): + if (kwargs['atl03'] == 'dataframe'): + # reduce entered data frame to RGT, ground track and cycle + atl03 = self._gdf[(self._gdf['rgt'] == RGT) & + (self._gdf['track'] == PT) & + (self._gdf['pair'] == LR) & + (self._gdf['cycle'] == cycle)] + elif (kwargs['atl03'] is not None): # reduce ATL03 data frame to RGT, ground track and cycle atl03 = kwargs['atl03'][(kwargs['atl03']['rgt'] == RGT) & (kwargs['atl03']['track'] == PT) &