22 dggal vibes
In [ ]:
Copied!
% pip install --index-url https://pypi.org/simple --extra-index-url https://test.pypi.org/simple/ dgg-vibes
% pip install --index-url https://pypi.org/simple --extra-index-url https://test.pypi.org/simple/ dgg-vibes
Looking in indexes: https://test.pypi.org/simple/
Collecting dggal==0.0.7rc1
Using cached https://test-files.pythonhosted.org/packages/41/3c/a5dea86b4bd5b9fc0a3b1f2ca009201064ffdf2ffbec473f2591219bb8a1/dggal-0.0.7rc1-cp313-cp313-win_amd64.whl.metadata (34 kB)
Collecting ecrt>=0.0.7rc1 (from dggal==0.0.7rc1)
Using cached https://test-files.pythonhosted.org/packages/87/29/4c6fac8af80a3d5c0a4ace6e5710c145417170e3dee38475c740f69d02fe/ecrt-0.0.7rc1-cp313-cp313-win_amd64.whl.metadata (4.0 kB)
Requirement already satisfied: cffi>=1.0.0 in d:\github\vgrid\.venv\lib\site-packages (from dggal==0.0.7rc1) (2.0.0)
Requirement already satisfied: pycparser in d:\github\vgrid\.venv\lib\site-packages (from cffi>=1.0.0->dggal==0.0.7rc1) (2.23)
Using cached https://test-files.pythonhosted.org/packages/41/3c/a5dea86b4bd5b9fc0a3b1f2ca009201064ffdf2ffbec473f2591219bb8a1/dggal-0.0.7rc1-cp313-cp313-win_amd64.whl (260 kB)
Using cached https://test-files.pythonhosted.org/packages/87/29/4c6fac8af80a3d5c0a4ace6e5710c145417170e3dee38475c740f69d02fe/ecrt-0.0.7rc1-cp313-cp313-win_amd64.whl (541 kB)
Installing collected packages: ecrt, dggal
Attempting uninstall: ecrt
Found existing installation: ecrt 0.0.6
Uninstalling ecrt-0.0.6:
---------------------------------------- 0/2 [ecrt]
---------------------------------------- 0/2 [ecrt]
Successfully uninstalled ecrt-0.0.6
---------------------------------------- 0/2 [ecrt]
---------------------------------------- 0/2 [ecrt]
Attempting uninstall: dggal
---------------------------------------- 0/2 [ecrt]
Found existing installation: dggal 0.0.6
---------------------------------------- 0/2 [ecrt]
Uninstalling dggal-0.0.6:
---------------------------------------- 0/2 [ecrt]
-------------------- ------------------- 1/2 [dggal]
Successfully uninstalled dggal-0.0.6
-------------------- ------------------- 1/2 [dggal]
-------------------- ------------------- 1/2 [dggal]
-------------------- ------------------- 1/2 [dggal]
-------------------- ------------------- 1/2 [dggal]
---------------------------------------- 2/2 [dggal]
Successfully installed dggal-0.0.7rc1 ecrt-0.0.7rc1
Note: you may need to restart the kernel to use updated packages.
In [ ]:
Copied!
python -m app = Application(appGlobals=globals())
!dgg-import gebco.tif --dggrs IVEA4R --fields Elevation
python -m app = Application(appGlobals=globals())
!dgg-import gebco.tif --dggrs IVEA4R --fields Elevation
[IMPORT] has_overviews=False aggregate=True [IMPORT] computed data level from raster: 14 [IMPORT] using default depth (get64KDepth) = 8 ['Elevation'] [IMPORT] Wrote collection config to data\gebco\collection.json [IMPORT] Computed levels: data_level=14 depth=8 finest_root_level=6 max_base_level=2 batch_size=32 [DIAG] using groupSize=5 (recommended default is 5) [LEVEL 6] #1: base_zone=C0-F [LEVEL 6] #1 BATCH 1: handling 32 roots [BATCH] processing batch base_zone=C0-F roots=32 aggregate=False
concurrent.futures.process._RemoteTraceback: """ Traceback (most recent call last): File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python313\Lib\concurrent\futures\process.py", line 254, in _process_worker r = call_item.fn(*call_item.args, **call_item.kwargs) File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python313\Lib\site-packages\dgg_vibes\dggsImport\rasterImport.py", line 34, in _sample_package_worker store = DGGSDataStore(data_root, collection, config=collection_config) File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python313\Lib\site-packages\dggsStore\store.py", line 276, in __init__ self.dggrs = get_or_create_dggrs(dggrsID) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python313\Lib\site-packages\dggsStore\store.py", line 188, in get_or_create_dggrs dggrs = cls() File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python313\Lib\site-packages\dggal\dggal.py", line 1787, in __init__ self.init_args(list(args), kwArgs) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python313\Lib\site-packages\dggal\dggal.py", line 1785, in init_args def init_args(self, args, kwArgs): init_args(IVEA4R, self, args, kwArgs) ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python313\Lib\site-packages\ecrt\ecrt.py", line 111, in init_args super(c, self).init_args([] if hasattr(c, 'private_inheritance') else args, kwArgs) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python313\Lib\site-packages\dggal\dggal.py", line 1140, in init_args def init_args(self, args, kwArgs): init_args(RhombicIcosahedral4R, self, args, kwArgs) ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python313\Lib\site-packages\ecrt\ecrt.py", line 111, in init_args super(c, self).init_args([] if hasattr(c, 'private_inheritance') else args, kwArgs) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python313\Lib\site-packages\dggal\dggal.py", line 382, in init_args def init_args(self, args, kwArgs): init_args(DGGRS, self, args, kwArgs) ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python313\Lib\site-packages\ecrt\ecrt.py", line 111, in init_args super(c, self).init_args([] if hasattr(c, 'private_inheritance') else args, kwArgs) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python313\Lib\site-packages\ecrt\ecrt.py", line 372, in init_args c = c.__bases__[0] ~~~~~~~~~~~^^^ IndexError: tuple index out of range """ The above exception was the direct cause of the following exception: Traceback (most recent call last): File "\\?\C:\Users\LENOVO\AppData\Local\Programs\Python\Python313\Scripts\dgg-import-script.py", line 33, in <module> sys.exit(load_entry_point('dgg_vibes==0.0.1rc7', 'console_scripts', 'dgg-import')()) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python313\Lib\site-packages\dgg_vibes\dgg_import.py", line 118, in main rc = import_raster( ds=ds, ...<9 lines>... max_workers=args.max_workers ) File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python313\Lib\site-packages\dgg_vibes\dggsImport\rasterImport.py", line 279, in import_raster written = _process_batch( store, ds, raster_crs, dggrs, dggrs_uri, base_zone, batch_zones, ...<2 lines>... max_workers = max_workers ) File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python313\Lib\site-packages\dgg_vibes\dggsImport\rasterImport.py", line 134, in _process_batch entries = _build_blobs_processes( store_worker_config=worker_config, ...<11 lines>... max_workers=max_workers ) File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python313\Lib\site-packages\dgg_vibes\dggsImport\rasterImport.py", line 96, in _build_blobs_processes fields_map = fut.result() File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python313\Lib\concurrent\futures\_base.py", line 449, in result return self.__get_result() ~~~~~~~~~~~~~~~~~^^ File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python313\Lib\concurrent\futures\_base.py", line 401, in __get_result raise self._exception IndexError: tuple index out of range