Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add contributions/Vessel_Density_from_Sentinel-1.ipynb (ID: 9dc6586e-9aea-485e-acac-755f4eb5ef17) #219

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

eurodatacube-submissions
Copy link
Member

{"path": "contributions/Vessel_Density_from_Sentinel-1.ipynb", "id": "9dc6586e-9aea-485e-acac-755f4eb5ef17", "license": "Commercial", "name": "Vessel Density based on Copernicus Sentinel-1", "requirements": ["eurodatacube", "eurodatacube-xcube-gen"], "tags": ["EO Data", "Download Service", "Jupyter", "Sentinel Hub", "Vector Data", "xcube"], "tosAgree": true, "type": "Jupyter Notebook", "version": "0.0.1", "license_price": "5.00", "license_notes": null, "description": "Vessel Density based on Copernicus Sentinel-1", "authors": [{"id": "d8a2b943-31ef-402a-a1c9-315163cc36f1", "name": "[email protected]"}]}

@github-actions
Copy link

I have scheduled automatic execution for all changed notebooks on the EDC cluster. The results should arrive within minutes.

@eurodatacube-submissions
Copy link
Member Author

❌ The execution resulted in errors:

---------------------------------------------------------------------------
Exception encountered at "In [5]":
---------------------------------------------------------------------------
CPLE_OpenFailedError                      Traceback (most recent call last)
File fiona/_shim.pyx:83, in fiona._shim.gdal_open_vector()

File fiona/_err.pyx:291, in fiona._err.exc_wrap_pointer()

CPLE_OpenFailedError: grid100k_geo.geojson: No such file or directory

During handling of the above exception, another exception occurred:

DriverError                               Traceback (most recent call last)
Cell In [5], line 6
      3 client_secret = os.environ['SH_CLIENT_SECRET']
      5 grid_name = "grid100k_geo.geojson"
----> 6 grid100k = gpd.read_file(grid_name)
      8 res1 = 0.0054 # 0.00054 # lower resolution for satellite footprints
      9 res2 = 0.00018 # Higher resolution for vessel shape and number

File /opt/conda/envs/edc-default-2022.10-14/lib/python3.9/site-packages/geopandas/io/file.py:253, in _read_file(filename, bbox, mask, rows, engine, **kwargs)
    250     path_or_bytes = filename
    252 if engine == "fiona":
--> 253     return _read_file_fiona(
    254         path_or_bytes, from_bytes, bbox=bbox, mask=mask, rows=rows, **kwargs
    255     )
    256 elif engine == "pyogrio":
    257     return _read_file_pyogrio(
    258         path_or_bytes, bbox=bbox, mask=mask, rows=rows, **kwargs
    259     )

File /opt/conda/envs/edc-default-2022.10-14/lib/python3.9/site-packages/geopandas/io/file.py:294, in _read_file_fiona(path_or_bytes, from_bytes, bbox, mask, rows, **kwargs)
    291     reader = fiona.open
    293 with fiona_env():
--> 294     with reader(path_or_bytes, **kwargs) as features:
    295 
    296         # In a future Fiona release the crs attribute of features will
    297         # no longer be a dict, but will behave like a dict. So this should
    298         # be forwards compatible
    299         crs = (
    300             features.crs["init"]
    301             if features.crs and "init" in features.crs
    302             else features.crs_wkt
    303         )
    305         # handle loading the bounding box

File /opt/conda/envs/edc-default-2022.10-14/lib/python3.9/site-packages/fiona/env.py:408, in ensure_env_with_credentials.<locals>.wrapper(*args, **kwargs)
    405 @wraps(f)
    406 def wrapper(*args, **kwargs):
    407     if local._env:
--> 408         return f(*args, **kwargs)
    409     else:
    410         if isinstance(args[0], str):

File /opt/conda/envs/edc-default-2022.10-14/lib/python3.9/site-packages/fiona/__init__.py:264, in open(fp, mode, driver, schema, crs, encoding, layer, vfs, enabled_drivers, crs_wkt, **kwargs)
    261     path = parse_path(fp)
    263 if mode in ('a', 'r'):
--> 264     c = Collection(path, mode, driver=driver, encoding=encoding,
    265                    layer=layer, enabled_drivers=enabled_drivers, **kwargs)
    266 elif mode == 'w':
    267     if schema:
    268         # Make an ordered dict of schema properties.

File /opt/conda/envs/edc-default-2022.10-14/lib/python3.9/site-packages/fiona/collection.py:162, in Collection.__init__(self, path, mode, driver, schema, crs, encoding, layer, vsi, archive, enabled_drivers, crs_wkt, ignore_fields, ignore_geometry, **kwargs)
    160 if self.mode == 'r':
    161     self.session = Session()
--> 162     self.session.start(self, **kwargs)
    163 elif self.mode in ('a', 'w'):
    164     self.session = WritingSession()

File fiona/ogrext.pyx:540, in fiona.ogrext.Session.start()

File fiona/_shim.pyx:90, in fiona._shim.gdal_open_vector()

DriverError: grid100k_geo.geojson: No such file or directory

@totycro
Copy link
Member

totycro commented Feb 1, 2023

I've contacted the author about the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants