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

Incorrect path construction in generate_kerchunk_stac Method #1

Open
E-O-Conchas opened this issue Jul 25, 2024 · 1 comment
Open

Comments

@E-O-Conchas
Copy link

The generate_kerchunk_stac method in the Raster2STAC class constructs output file paths incorrectly, causing a FileNotFoundError. This seems to happen due to improper concatenation of paths.

`An error occurred: [Errno 2] No such file or directory: 'S:\ebv_portal\kerchunk\test-data\output_test\kerchunk/S:\ebv_portal\kerchunk\test-data\sp_2001_crs.nc.json''

@clausmichele
Copy link
Member

clausmichele commented Aug 2, 2024

Hi @E-O-Conchas, are you using it on Windows? That's probably the root of the problem. I will try to fix it and let you know!

Update: I just tried the Kerchunk example in the Readme and for me it works fine also on Windows. Could you give me some more details? In which part of the code is the error occurring?

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

No branches or pull requests

2 participants