Skip to content

Commit 585ee3d

Browse files
authored
Merge pull request #150 from betonr/master
prepare to release 0.8.0
2 parents de15823 + e5aee6f commit 585ee3d

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

CHANGES.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@
99
Changes
1010
=======
1111

12+
Version 0.8.0 (2021-06-29)
13+
--------------------------
14+
15+
- Allow creating grid with others SRID
16+
- generate file with full nodata when not scenes in tile/step (`#141 <https://github.com/brazil-data-cube/cube-builder-aws/issues/141>`_)
17+
- Add support to hamonization between landsat collections, using (`sensor-harm <https://github.com/brazil-data-cube/sensor-harm>`_) package
18+
- Update get_qa_statistics function to use with landsat Collection 2 (qa_pixel band with bitwise)
19+
- Accept nodata value parameter
20+
- Create datasource band
21+
22+
1223
Version 0.6.0 (2021-04-23)
1324
--------------------------
1425

cube_builder_aws/cube_builder_aws/controller.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
from .config import ITEM_PREFIX
2828
from .constants import (CLEAR_OBSERVATION_ATTRIBUTES, CLEAR_OBSERVATION_NAME,
29-
COG_MIME_TYPE, DATASOURCE_ATTRIBUTES,
29+
COG_MIME_TYPE, DATASOURCE_ATTRIBUTES, DATASOURCE_NAME,
3030
PROVENANCE_ATTRIBUTES, PROVENANCE_NAME,
3131
SRID_ALBERS_EQUAL_AREA, TOTAL_OBSERVATION_ATTRIBUTES,
3232
TOTAL_OBSERVATION_NAME)
@@ -533,6 +533,7 @@ def start_process(self, params):
533533

534534
bands_expressions = dict()
535535

536+
internal_bands = [CLEAR_OBSERVATION_NAME, TOTAL_OBSERVATION_NAME, PROVENANCE_NAME, DATASOURCE_NAME]
536537
bands_list = []
537538
bands_ids_list = {}
538539
quality_nodata = 0
@@ -543,7 +544,7 @@ def start_process(self, params):
543544
bands_ids_list[band.id] = band.name
544545
if band.name == quality_band:
545546
quality_nodata = band.nodata
546-
else:
547+
elif band.name not in internal_bands:
547548
nodata = band.nodata
548549

549550
elif band._metadata and band._metadata.get('expression') and band._metadata['expression'].get('value'):

cube_builder_aws/cube_builder_aws/maestro.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ def merge_warped(self, activity):
616616
new_url = url
617617
if landsat_harmonization:
618618
if not is_quality_band:
619-
key_path = new_url.replace(HARMONIZATION['landsat']['bucket_src'], '')
619+
key_path = new_url.replace(f'{HARMONIZATION["landsat"]["bucket_src"]}/', '')
620620
if services.s3_file_exists(bucket_name=landsat_harmonization['bucket_dst'], key=key_path, request_payer=True):
621621
bucket_src = HARMONIZATION['landsat']['bucket_src'].replace('s3://', '')
622622
new_url = new_url.replace(bucket_src, landsat_harmonization['bucket_dst'])

0 commit comments

Comments
 (0)