Skip to content

Commit

Permalink
can enter atl03 fields as transect dataframe
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutterley committed Nov 27, 2023
1 parent 1c931e4 commit 21b48ce
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion clients/python/sliderule/ipysliderule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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) &
Expand Down

0 comments on commit 21b48ce

Please sign in to comment.