Skip to content

More cluster methods for matched filter #150

Description

@zxdawn

See this paper: https://www.sciencedirect.com/science/article/pii/S2590162126000055#sec5:~:text=Hard%20Clustering%2C%20Fuzzy%20Clustering%20and%20Spectral%20angle%20Mapper. We can add more cluster methods for matched filter.

if cluster:
segmentation = PCA_kmeans(self.radiance)
elif land_mask:
# get lon and lat from area attrs
lons, lats = self.radiance.attrs['area'].get_lonlats()
# create land mask
segmentation = Land_mask(lons, lats, land_mask_source)
else:
# set all pixels as the same type
segmentation = xr.DataArray(np.ones((self.radiance.sizes['y'],
self.radiance.sizes['x'])),
dims=['y', 'x'],
)
segmentation.attrs['description'] = ''

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions