Skip to main content
Ctrl+K
SunPy
  • About
    • Our Mission
    • SunPy Project
    • Presentations
    • Community Roles
    • Meetings
    • Code of Conduct
  • Documentation
    • sunpy
    • ndcube
    • drms
    • sunraster
    • sunkit-image
    • aiapy
    • sunpy-soar
    • roentgen
    • sunkit-instruments
    • demcmc
    • dkist
    • solarmach
    • sunkit-magex
    • pyflct
    • radiospectra
  • Affiliated Packages
  • Get Help
  • Contribute
  • Blog
  • About
    • Our Mission
    • SunPy Project
    • Presentations
    • Community Roles
    • Meetings
    • Code of Conduct
  • Documentation
    • sunpy
    • ndcube
    • drms
    • sunraster
    • sunkit-image
    • aiapy
    • sunpy-soar
    • roentgen
    • sunkit-instruments
    • demcmc
    • dkist
    • solarmach
    • sunkit-magex
    • pyflct
    • radiospectra
  • Affiliated Packages
  • Get Help
  • Contribute
  • Blog
Logo image

ndcube 2.2.2 documentation

  • An introduction to ndcube
  • Installing ndcube
  • Explaining ndcube
    • ND objects
    • Slicing ND objects
    • Coordinate transformations
    • Tabular coordinates
    • Reprojecting ND objects
    • Visualizing ND objects
  • Acknowledging ndcube
  • API Reference
    • ndcube (ndcube)
      • NDCube
      • NDCubeSequence
      • NDCollection
      • ExtraCoords
      • GlobalCoords
      • ExtraCoordsABC
      • GlobalCoordsABC
      • NDCubeBase
      • NDCubeSequenceBase
      • NDCubeABC
      • NDCubeLinkedDescriptor
    • extra_coords (ndcube.extra_coords)
      • TimeTableCoordinate
      • MultipleTableCoordinate
      • SkyCoordTableCoordinate
      • QuantityTableCoordinate
      • BaseTableCoordinate
    • mixins (ndcube.mixins)
      • NDCubeSlicingMixin
    • visualization (ndcube.visualization)
      • BasePlotter
      • PlotterDescriptor
      • MatplotlibPlotter
      • MatplotlibSequencePlotter
      • SequenceAnimator
      • prep_plot_kwargs
      • set_wcsaxes_format_units
    • utils (ndcube.utils)
      • assert_aligned_axes_compatible
      • sanitize_wcs
      • sanitize_crop_inputs
      • get_crop_item_from_points
      • propagate_rebin_uncertainties
      • unique_sorted
      • convert_quantities_to_units
      • cube_like_index_to_sequence_and_common_axis_indices
      • cube_like_tuple_item_to_sequence_items
      • SequenceItem
      • array_indices_for_world_objects
      • convert_between_array_and_pixel_axes
      • calculate_world_indices_from_axes
      • pixel_axis_to_world_axes
      • world_axis_to_pixel_axes
      • pixel_axis_to_physical_types
      • physical_type_to_pixel_axes
      • physical_type_to_world_axis
      • get_dependent_pixel_axes
      • get_dependent_array_axes
      • get_dependent_world_axes
      • get_dependent_physical_types
      • array_indices_for_world_objects
      • validate_physical_types
    • tests (ndcube.tests)
      • figure_test
      • get_hash_library_name
      • assert_extra_coords_equal
      • assert_metas_equal
      • assert_cubes_equal
      • assert_cubesequences_equal
      • assert_wcs_are_equal
    • wcs (ndcube.wcs)
      • CompoundLowLevelWCS
      • ReorderedLowLevelWCS
      • ResampledLowLevelWCS
      • unwrap_wcs_to_fitswcs
  • Example Gallery
    • Examples of cropping an NDCube
    • How to create an NDCube from data stored in a FITS file
  • Extending ndcube in Other Packages
  • Upgrading from 1.x to 2.x
  • Release History
    • Full Changelog
  • Example Gallery

Example Gallery#

This gallery contains examples of how to use ndcube. Most of these examples require the sunpy sample data, which you can download by running:

>>> import sunpy.data.sample

Once downloaded the data will be stored in your user directory and you will not need to download it again.

Examples of cropping an NDCube

Examples of cropping an NDCube

How to create an NDCube from data stored in a FITS file

How to create an NDCube from data stored in a FITS file

Download all examples in Python source code: gallery_python.zip

Download all examples in Jupyter notebooks: gallery_jupyter.zip

Gallery generated by Sphinx-Gallery

previous

unwrap_wcs_to_fitswcs

next

Examples of cropping an NDCube

© Copyright 2024, The SunPy Community.

Code • Forum • Chat

Built with Sphinx 7.4.7.