GithubHelp home page GithubHelp logo

Comments (4)

bradyrx avatar bradyrx commented on July 19, 2024

One thing we've come across at climpred is that polyfit and other functions return zeros or NaNs when they encounter missing data in a time series. This isn't a problem to worry about if you only anticipate esmlab to be used in climate model output, but observational data frequently has missing data.

We deal with this by temporarily doing a linear interpolation to fill in the NaNs, then force those back to NaNs on the returned output (in the case of detrending; wouldn't need to replace the NaNs if just getting the slope): https://github.com/bradyrx/climpred/blob/8c1700e94d124424f5f2adf5250a22f2ff8bb3dc/climpred/stats.py#L118

We also have some snippets in there to handle Datasets in addition to DataArrays.

from esmlab.

klindsay28 avatar klindsay28 commented on July 19, 2024

@kmpaul , I'm curious why this issue was closed with no explanatory comment.
It doesn't look like the enhancement has been implemented.

from esmlab.

andersy005 avatar andersy005 commented on July 19, 2024

@klindsay28, I just re-opened it

from esmlab.

andersy005 avatar andersy005 commented on July 19, 2024

I am planning on working on this as part of pydata/xarray#3349

from esmlab.

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.