Skip to content

Commit b36c6ab

Browse files
committed
Always decimate to avoid creating cell area files with a different grid than the main dataset
1 parent 50e6417 commit b36c6ab

File tree

1 file changed

+0
-5
lines changed
  • src/ref_sample_data/data_request

1 file changed

+0
-5
lines changed

src/ref_sample_data/data_request/base.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,6 @@ def decimate_dataset(self, dataset: xr.Dataset) -> xr.Dataset | None:
120120
xr.Dataset
121121
The downscaled dataset
122122
"""
123-
# If less than 10 MB skip decimating
124-
small_file_threshold = 10 * 1024**2
125-
if dataset.nbytes < small_file_threshold:
126-
return dataset
127-
128123
if "time" in dataset.dims and self.time_span is not None:
129124
result = dataset.sel(time=slice(*self.time_span))
130125
if result.time.size == 0:

0 commit comments

Comments
 (0)