Add Save Method to NDCube

Open
#111 20 comments 0 reactions 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
Mostly clear
Activity status
Stale
Tech stack
python
Domain
data

Research direction

Start by reading the NDCube implementation to understand how its data, mask, uncertainty, unit, extra coordinates, and WCS are represented. Then determine how the requested save(filename, file_type="FITS") API should standardize those components in FITS; done means the information in an NDCube can be preserved in the saved output.

Written by the indexing model from the issue text.

Description

new feature

Add a save method to NDCube with the following API:
NDCube.save(self, filename, file_type="FITS"):
For now it should just support FITS. More file types can be added later. The method should save the information in an NDCube, including data, mask, uncertainty, unit, extra coordinates, WCS, etc., in a standardized way.

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.