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

Let GDAL judge the existence of files #23

Open
nathanhilbert opened this issue Sep 12, 2016 · 1 comment
Open

Let GDAL judge the existence of files #23

nathanhilbert opened this issue Sep 12, 2016 · 1 comment

Comments

@nathanhilbert
Copy link
Contributor

I'm trying to read HDF4 files in as seen here, but although the subsets are read as files, they cannot be resolved with the file existence check. What do you guys think about just returning the path if it is a file without checking if the file exists and letting gdal raise the error if it can't understand the path?

@aman-thakral
Copy link
Contributor

That seems reasonable. If the path is not found, gdal will return None for a dataset. Can use that to throw an IOError and inform the user that the path does not exist.

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