goes2go icon indicating copy to clipboard operation
goes2go copied to clipboard

goes2go xarray accessors could not be imported.

Open jimmycrackc0rn7 opened this issue 1 year ago • 2 comments

Hello,

First off, thank you for providing this package. I'll admit that I am not so experienced with python and python environments (come from nodejs background).

When trying to import goes2go after installing, I get the following error:

UserWarning: goes2go xarray accessors could not be imported.
  warnings.warn("goes2go xarray accessors could not be imported.")

This prevents me from using the package. Not sure how to resolve and would love some guidance.

jimmycrackc0rn7 avatar Jul 26 '23 16:07 jimmycrackc0rn7

I'll have to look into this.

This warning means the xarray accessors could not be imported. My first guess is that you might not have Cartopy installed, which is required for some of the accessors to work (see accessors.py).

import cartopy.crs as ccrs

I suppose the setup.py file should be updated to require cartopy as a dependency.

I admit, the design isn't super robust; cartopy is only required if you are using the field-of-view accessors, not the RGB accessors.

You shouldn't need the accessors to just download GOES data.

blaylockbk avatar Jul 26 '23 18:07 blaylockbk

For what it's worth, I have installed Cartopy from this source: https://www.lfd.uci.edu/~gohlke/pythonlibs/ Cartopy-0.20.2-cp310-cp310-win_amd64.whl

jimmycrackc0rn7 avatar Jul 26 '23 20:07 jimmycrackc0rn7