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

Support loading multiple images through a list or comma-separated string #331

Open
mheppner opened this issue Jun 9, 2016 · 0 comments
Open

Comments

@mheppner
Copy link

mheppner commented Jun 9, 2016

With the current thunder.images.fromtif() call, either a single image or a glob of images in a directory can be loaded. To load specific images, you have to do something like this:

rdds = [
    thunder.images.fromtif('path1'),
    thunder.images.fromtif('path2'),
]
bigRdd = sc.union(rdds)
data = thunder.images.fromrdd(bigRdd)

It would be better for .fromtif() to support a comma-separated string, like Spark's loading functions do:

paths = '/mnt/img1.tif,/mnt/img2.tif,/mnt/img3.tif'
data = thunder.images.fromtif(paths)

And by using a list:

paths = [
    '/mnt/img1.tif',
    '/mnt/img2.tif',
]
data = thunder.iamges.fromtif(paths)
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

1 participant