Skip to content

Commit

Permalink
Merge pull request #64 from earthdaily/dev
Browse files Browse the repository at this point in the history
release(0.1.2)
  • Loading branch information
nkarasiak committed May 15, 2024
2 parents 35b2b39 + 515d39e commit a894a2c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.2] - 2024-05-15

### Fixed

- Wrong clear_percent/clear_pixels when having multiple geometries in datacube request

## [0.1.1] - 2024-05-13

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion earthdaily/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# to hide warnings from rioxarray or nano seconds conversion
warnings.filterwarnings("ignore")

__version__ = "0.1.1"
__version__ = "0.1.2"
4 changes: 2 additions & 2 deletions earthdaily/earthdatastore/cube_utils/custom_reducers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def mode(data_array_grouped, optional_arg=None):
@staticmethod
def register_custom_reducers():
# register custom methods fo DataArrayGroupBy
xr.core.groupby.DataArrayGroupBy.mode = CustomReducers.mode
xr.core.groupby.DatasetGroupBy.mode = CustomReducers.mode
groupby.DataArrayGroupBy.mode = CustomReducers.mode
groupby.DatasetGroupBy.mode = CustomReducers.mode
np.mode = CustomReducers._np_mode


Expand Down
2 changes: 1 addition & 1 deletion earthdaily/earthdatastore/mask/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(self, dataset: xr.Dataset, intersects=None, bbox=None):
if bbox and intersects is None:
intersects = _bbox_to_intersects(bbox)
if isinstance(intersects, gpd.GeoDataFrame):
intersects = intersects.to_crs(self._obj.rio.crs).head(1)
intersects = intersects.to_crs(self._obj.rio.crs)
self.intersects = intersects

def ag_cloud_mask(
Expand Down

0 comments on commit a894a2c

Please sign in to comment.