Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Apr 21, 2024
1 parent ef9d990 commit 3869f93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 3 additions & 2 deletions hypercoast/hypercoast.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import leafmap

from .emit import read_emit, plot_emit, viz_emit, emit_to_netcdf, emit_to_image
from .ui import SpectralWidget


class Map(leafmap.Map):
Expand Down Expand Up @@ -36,6 +35,8 @@ def add(self, obj, position="topright", **kwargs):

if isinstance(obj, str):
if obj == "spectral":
from .ui import SpectralWidget

SpectralWidget(self, position=position)

else:
Expand Down Expand Up @@ -231,5 +232,5 @@ def spectral_to_df(self, **kwargs):
"""
import pandas as pd

df = pd.DataFrame(self._spectral_data)
df = pd.DataFrame(self._spectral_data, **kwargs)
return df
3 changes: 0 additions & 3 deletions hypercoast/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ def handle_interaction(**kwargs):
self._host_map._plot_marker_cluster = marker_cluster

ds = self._host_map.cog_layer_dict[layer_name]["xds"]
# ds["reflectance"].data[
# :, :, ds["good_wavelengths"].data == 0
# ] = np.nan
da = ds.sel(latitude=lat, longitude=lon, method="nearest")[
"reflectance"
]
Expand Down

0 comments on commit 3869f93

Please sign in to comment.