Skip to content

Commit

Permalink
Fix wavelength bug
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed May 9, 2024
1 parent 269793b commit 85ca4d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hypercoast/hypercoast.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from .common import download_file, netcdf_groups
from .emit import read_emit, plot_emit, viz_emit, emit_to_netcdf, emit_to_image
from .pace import *
from .ui import SpectralWidget


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

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

SpectralWidget(self, position=position)
self.set_plot_options(add_marker_cluster=True)
Expand Down
2 changes: 1 addition & 1 deletion hypercoast/pace.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def grid_pace(dataset, wavelengths=None, method="nearest", **kwargs):

gridded_data_dict = {}
for wavelength in wavelengths:
data = dataset.sel(wavelength=wavelength)["Rrs"]
data = dataset.sel(wavelength=wavelength, method=method)["Rrs"]
gridded_data = griddata(
(lat.data.flatten(), lon.data.flatten()),
data.data.flatten(),
Expand Down

0 comments on commit 85ca4d3

Please sign in to comment.