From 002859549eb8b16ccf081524dc32f12b17e90388 Mon Sep 17 00:00:00 2001 From: Yang Date: Wed, 15 Nov 2023 10:07:36 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Bart Schilperoort --- src/zampy/datasets/land_cover.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/zampy/datasets/land_cover.py b/src/zampy/datasets/land_cover.py index f780c75..c399d82 100644 --- a/src/zampy/datasets/land_cover.py +++ b/src/zampy/datasets/land_cover.py @@ -164,13 +164,9 @@ def convert( data_files = list(ingest_folder.glob(data_file_pattern)) for file in data_files: - # start conversion process print(f"Start processing file `{file.name}`.") ds = xr.open_dataset(file) ds = converter.convert(ds, dataset=self, convention=convention) - # TODO: support derived variables - # TODO: other calculations - # call ds.compute() return True @@ -231,8 +227,8 @@ def extract_netcdf_to_zampy(file: Path) -> xr.Dataset: east=180, south=-90, west=-180, - resolution_lat=0.25, # same as resolution of ERA5 - resolution_lon=0.25, + resolution_lat=0.05, + resolution_lon=0.05, ) target_dataset = xarray_regrid.create_regridding_dataset(new_grid)