Giter Club home page Giter Club logo

Comments (4)

malmans2 avatar malmans2 commented on September 25, 2024 1

The latest versions of xesmf have been developed here: https://github.com/pangeo-data/xESMF
You are probably using xesmf 0.5.0 or 0.5.1, and I think you are experiencing this issue: pangeo-data/xESMF#64

You have a few options:

  • Downgrade to xesmf<0.5.0 (e.g. conda install -c conda-forge "xesmf!=0.5.0,!=0.5.1")
  • The breaking change has been fixed but I don't think it was released yet. You could install from github (e.g., pip install git+https://github.com/pangeo-data/xESMF.git)

Alternatively, you have to create the regridder using a dataset with only one latitude/longitude coordinate, where the coordinates are defined by the standard_name attribute. For example, if you drop lon and lat in your dataset, xesmf will use the coordinates named i and j.

Looks like you already have installed cf_xarray, so for a recap of the cf attributes associated with your dataset:

import cf_xarray
ds.cf.describe()

from xesmf.

dcherian avatar dcherian commented on September 25, 2024

can you show ds.i.attrs and ds.lon.attrs

from xesmf.

eocene avatar eocene commented on September 25, 2024

Sure!

Screenshot 2021-01-22 at 14 59 25

from xesmf.

eocene avatar eocene commented on September 25, 2024

Thanks yes, I had fixed it reverting back. Will wait for push to conda before doing update.

Cheers!

from xesmf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.