Download envs/kitoverlay/skimage/io/_plugins/gdal_plugin.py from AVSim/simulation-package: direct link, hf CLI and curl.
- Browser
- Download file 349 Bytes
-
https://huggingface.co/datasets/AVSim/simulation-package/resolve/main/envs/kitoverlay/skimage/io/_plugins/gdal_plugin.py
- Command line
-
hf download hf://datasets/AVSim/simulation-package/envs/kitoverlay/skimage/io/_plugins/gdal_plugin.py
-
curl -L -o gdal_plugin.py https://huggingface.co/datasets/AVSim/simulation-package/resolve/main/envs/kitoverlay/skimage/io/_plugins/gdal_plugin.py
349 Bytes
| __all__ = ['imread'] | |
| try: | |
| import osgeo.gdal as gdal | |
| except ImportError: | |
| raise ImportError( | |
| "The GDAL Library could not be found. " | |
| "Please refer to http://www.gdal.org/ " | |
| "for further instructions." | |
| ) | |
| def imread(fname): | |
| """Load an image from file.""" | |
| ds = gdal.Open(fname) | |
| return ds.ReadAsArray() | |