Add custom function to calculate error after ndcube rebin

Open
#702 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
data

Research direction

Start by locating the NDCube rebin entry point and the propagate_uncertainties path described in the issue. Review how UnknownUncertainty is handled, then determine the interface and expected behavior for a custom uncertainty operation. Done means custom uncertainty propagation works during rebin without the current warning, with focused coverage for this case.

Written by the indexing model from the issue text.

Description

Describe the feature

I was trying to rebin some EIS spectral data with propagate_uncertainties=True. I think because the error array is UnknownUncertainty with intensity measurement, it gave the following warning:
"UserWarning: self.uncertainty is of type UnknownUncertainty which does not support uncertainty propagation."

I got away by propagating the rebinned error myself and setting it externally. Would be great to allow custom operation on the uncertainty within NDCube rebin.

Proposed solution

Add custom operation on the uncertainty within NDCube rebin

Dominant language
Python
Stars
49
Forks
56
Avg merge
5h 54m
Merged PRs (30d)
9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sunpy/ndcube

All issues in sunpy/ndcube

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.