From 2d577b16f41b042b8d0d3612313c9d09c0788529 Mon Sep 17 00:00:00 2001 From: Lauren Gallic Date: Thu, 2 Nov 2023 17:09:40 +0000 Subject: [PATCH] put kerchunk indices inline --- setup.cfg | 4 --- .../ecmwf_forecast/constant_kerchunk.json | 29 --------------- src/stactools/ecmwf_forecast/stac.py | 35 ++++++++++++++++--- 3 files changed, 30 insertions(+), 38 deletions(-) delete mode 100644 src/stactools/ecmwf_forecast/constant_kerchunk.json diff --git a/setup.cfg b/setup.cfg index 590d0e0..d5ed47d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -35,10 +35,6 @@ install_requires = fsspec numcodecs kerchunk -include_package_data = True - -[options.package_data] -stactools-ecmwf-forecast = *.json [options.packages.find] where = src diff --git a/src/stactools/ecmwf_forecast/constant_kerchunk.json b/src/stactools/ecmwf_forecast/constant_kerchunk.json deleted file mode 100644 index 92ce811..0000000 --- a/src/stactools/ecmwf_forecast/constant_kerchunk.json +++ /dev/null @@ -1,29 +0,0 @@ -{'refs': { - '.zattrs': '{"GRIB_centre":"ecmf","GRIB_centreDescription":"European Centre for Medium-Range Weather Forecasts","GRIB_edition":2,"GRIB_subCentre":0,"coordinates":"meanSea latitude longitude step time valid_time","institution":"European Centre for Medium-Range Weather Forecasts"}', - '.zgroup': '{"zarr_format":2}', - 'meanSea/0': 'base64:AAAAAAAAAAA=', - 'latitude/0': 'base64:AAAAAACAVkCamZmZmZlWwJqZmZmZmdm/', - 'longitude/0': 'base64:AAAAAACAZsAAAAAAAIBmQJqZmZmZmdk/', - 'mp2/.zarray': '{"chunks":[1,451,900],"compressor":null,"dtype":" Item: p.filename, media_type=media_type, roles=roles, - extra_fields={"ecmwf:step": p.step, "kerchunk:indices:unique": kerchunk_indices} if not split_by_step else {"kerchunk:indices": kerchunk_indices}, + extra_fields={"ecmwf:step": p.step, "kerchunk:indices:unique": kerchunk_indices} if not split_by_step else {"kerchunk:indices:unique": kerchunk_indices}, ), )