Reproject NDCubeSequence to NDCube

Open
#430 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
data

Research direction

Start at the NDCubeSequence API and inspect NDCube.resample from issue #429. Implement the requested operation using the first cube's WCS, stacking reprojected arrays with a leading dimension and adding a pixel-based axis. Done means a new (n+1)-D NDCube is returned with only the stacked data and new WCS.

Written by the indexing model from the issue text.

Description

Resample
Description

Create a method on NDCubeSequence that:

  • Uses NDCube.resample (#429) reprojects each NDCube in the sequence to the WCS of the first NDCube;
  • Stacks the data arrays along an additional 0th array dimension
  • Generates a new WCS that adds an initial array axis to the WCS of the first cube. Let this new axis simply be in pixel units. A later issue can generate physical coordinates for this axis based on user input of cube global_coords.
  • Returns a new (n+1)-D NDCube using the just the reprojected and stacked data array and the newly generated WCS object. Drop all other information to start with.
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.