Skip to content

GOES rgb recipes doesn't work out of the box #19

Answered by blaylockbk
data-panda asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @data-panda, sorry you are hitting a roadblock.

I'm not able to reproduce your problem. This is what I did...

from goes2go.data import goes_latest
import matplotlib.pyplot as plt
ds = goes_latest()

ds.rgb

rgb = ds.rgb.TrueColor()
rgb

plt.imshow(rgb)


That said, the rgb attribute in the statement ds.rgb.TrueColor() is an xarray Dataset accessor, which should be loaded when you import goes2go.

These lines are at the top of init.py when you import goes2go

try:
    import goes2go.accessors
except:
    warnings.warn("goes2go xarray accessors could not be imported.")

If you are getting the warning that goes2go xarray accessors could not be imported, then that would be your problem.

Thes…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@data-panda
Comment options

Answer selected by data-panda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants