-
Notifications
You must be signed in to change notification settings - Fork 11
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
Can not input xarray data #14
Comments
The xarray interface is not implemented in the latest release of magics-python (v1.0.6). If you want to use it you'll need to use the master branch of this repo instead. @sylvielamythepaut when is the next expected release date? |
Thanks, Daniel. Will the future magics-python release support xarray data? If so, that's will be great! |
Hi, |
Thanks very much. |
Hi, Thanks |
Thanks. Can you update the conda-forge channel? I want to install with "conda install -c conda-forge magics-python ". |
Good Point, should be updated soon . |
Hi,
I try to input xarray to magics, like:
from Magics import macro as magics
import xarray as xr
data = xr.open_mfdataset('2t.nc')
data = magics.mxarray(data, 't2m')
but I get the following errors, so why? Much thanks!
NameError Traceback (most recent call last)
in
1 data = xr.open_mfdataset('2t.nc')
----> 2 data = magics.mxarray(data, 't2m')
~/anaconda3/lib/python3.7/site-packages/Magics/macro.py in mxarray(dataset, var)
423
424
--> 425 return data
426
427
NameError: name 'data' is not defined
The text was updated successfully, but these errors were encountered: