Skip to content

Commit

Permalink
VP native load: specify 'basic' with 'like'
Browse files Browse the repository at this point in the history
  • Loading branch information
uchchwhash committed Oct 3, 2019
1 parent a6637da commit f68b5f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions datacube/virtual/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class VirtualProduct(Mapping):

_GEOBOX_KEYS = {'output_crs', 'resolution', 'align'}
_GROUPING_KEYS = {'group_by'}
_LOAD_KEYS = {'measurements', 'fuse_func', 'resampling', 'dask_chunks'}
_LOAD_KEYS = {'measurements', 'fuse_func', 'resampling', 'dask_chunks', 'like'}
_ADDITIONAL_KEYS = {'dataset_predicate'}

_NON_SPATIAL_KEYS = _GEOBOX_KEYS | _GROUPING_KEYS
Expand Down Expand Up @@ -416,7 +416,9 @@ def fetch(self, grouped: VirtualDatasetBox, **load_settings: Dict[str, Any]) ->

if grouped.load_natively:
canonical_names = [measurement.name for measurement in measurement_dicts.values()]
dataset_geobox = geobox_union_conservative([native_geobox(ds, measurements=canonical_names)
dataset_geobox = geobox_union_conservative([native_geobox(ds,
measurements=canonical_names,
basis=merged.get('like'))
for ds in grouped.box.sum().item()])

if grouped.geopolygon is not None:
Expand Down

0 comments on commit f68b5f9

Please sign in to comment.