Skip to content

Commit

Permalink
refactor: change transect accessor to icesat2
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutterley committed Nov 30, 2023
1 parent 41d43b5 commit 0fa759b
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions clients/python/sliderule/ipysliderule.py
Original file line number Diff line number Diff line change
Expand Up @@ -2475,8 +2475,8 @@ def GeoData(self, m, **kwargs):
kwargs.setdefault('colorbar', True)
kwargs.setdefault('position', 'topright')
# set map and map coordinate reference system
self.map = m.map
self.crs = m.crs
self.map = m
self.crs = m.crs['name']
# remove any prior instances of a data layer
if self.geojson is not None:
self.map.remove(self.geojson)
Expand Down Expand Up @@ -2649,15 +2649,12 @@ def add_colorbar(self, **kwargs):
self.map.add(self.colorbar)
plt.close()

@gpd.pd.api.extensions.register_dataframe_accessor("transect")
class Transect:
"""A geopandas GeoDataFrame extension for transect plotting
@gpd.pd.api.extensions.register_dataframe_accessor("icesat2")
class ICESat2:
"""A geopandas GeoDataFrame extension for plotting ICESat-2 transects
"""

def __init__(self, gdf):
# initialize map
self.map = None
self.crs = None
# initialize geodataframe
self._gdf = gdf
# initialize data for time series plot
Expand Down

0 comments on commit 0fa759b

Please sign in to comment.