home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 1742035781

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
1742035781 I_kwDOAMm_X85n1VtF 7894 Can a "skipna" argument be added for Dataset.integrate() and DataArray.integrate()? 35968931 open 0     2 2023-06-05T15:32:35Z 2023-06-05T21:59:45Z   MEMBER      

Discussed in https://github.com/pydata/xarray/discussions/5283

<sup>Originally posted by **chfite** May 9, 2021</sup> I am using the Dataset.integrate() function and noticed that because one of my variables has a NaN in it the function returns a NaN for the integrated value for that variable. I know based on the trapezoidal rule one could not get an integrated value at the location of the NaN, but is it not possible for it to calculate the integrated values where there were regular values? Assuming 0 for NaNs does not work because it would still integrate between the values before and after 0 and add additional area I do not want. Using DataArray.dropna() also is not sufficient because it would assume the value before the NaN is then connected to the value after the NaN and again add additional area that I would not want included. If a "skipna" functionality or something could not be added to the integrate function, does anyone have a suggestion for another way to get around to calculating my integrated area while excluding the NaNs?
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/7894/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    13221727 issue

Links from other tables

  • 1 row from issues_id in issues_labels
  • 2 rows from issue in issue_comments
Powered by Datasette · Queries took 0.671ms · About: xarray-datasette