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

Composites made with create_mosiac don't display properly with rgb() function #1

Open
wscullen opened this issue Aug 29, 2018 · 1 comment

Comments

@wscullen
Copy link

I'm working through the jupyter notebook training folder, and everything is working well, but the composites don't display properly with rgb() function result is:

screenshot from 2018-08-29 12-48-05

Thanks!

@wscullen
Copy link
Author

wscullen commented Sep 5, 2018

Isolated to a problem in the dc_rbg.py util module, when there is no time dimension in the dataset, the indexes for the shape of the data are not being set properly. Fix is to check for time and change the indexes for the getting the data shape in rgb() :

    if 'time' in dataset:
        index = rgb.shape[1:3]
    else:
        index = rgb.shape[0:2]

    fig, ax = plt.subplots(figsize = aspect_ratio_helper(*index, fixed_width = width))

If you don't do the above you get a very small value (3) for the width, so it results in the result in my first comment. Hope this helps.

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