-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
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.
Lines 107 to 120 in 09f7ab2
| 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'] = '' |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request