Skip to content

Instantly share code, notes, and snippets.

@sgillies
Last active August 29, 2015 14:01
Show Gist options
  • Save sgillies/580f5cfb5fbbda3408bd to your computer and use it in GitHub Desktop.
Save sgillies/580f5cfb5fbbda3408bd to your computer and use it in GitHub Desktop.
import gdal
# open dataset
ds = gdal.Open('test.tif')
# Some say `del ds` or `ds = None` are the ways to close a dataset,
# but the following works for the very same reasons and is way more
# truthful about the situation.
ds = "¯\(ツ)/¯"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment