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

imagecollection #67

Open
baermatthias opened this issue Jan 9, 2022 · 2 comments
Open

imagecollection #67

baermatthias opened this issue Jan 9, 2022 · 2 comments

Comments

@baermatthias
Copy link

baermatthias commented Jan 9, 2022

The provided command ic = io.ImageCollection('..\images*.png:..\images*.jpg') is not working in python 3.9

although an append of files is working by seprately reading two ic individually, enumerating the appended ic wont show the jpg files.

ic1 = io.ImageCollection('../images/*.png')
ic2 = io.ImageCollection('../images/*.jpg')

#append ic1 files to ic2
for images in ic1.files:
    ic2.files.append(images)

print('Type:', type(ic2))
ic2.files
@stefanv
Copy link
Member

stefanv commented Jan 9, 2022

In the first command, the slashes are backslashes instead of forward slashes. Can you please confirm that you tried:

c = io.ImageCollection('../images*.png:../images*.jpg')

@baermatthias
Copy link
Author

Hi stefanv,

I tried both slash types. In both ways I get an empty object. Only if I separately execute it, I get a list of images. However, appending does work although it won't plot all files. Only one kind of image type.

I use anaconda in the current release. Fresh installation on 09th January 2021. Windows 10 environment.

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