Skip to main content
Ctrl+K
Astropy v6.0.0 - Home

Site Navigation

  • Getting Started
  • User Guide
  • Development
  • Project details
  • Tutorials
  • GitHub

Site Navigation

  • Getting Started
  • User Guide
  • Development
  • Project details
  • Tutorials
  • GitHub

Section Navigation

Data structures and transformations

  • Constants (astropy.constants)
  • Units and Quantities (astropy.units)
  • N-Dimensional Datasets (astropy.nddata)
  • Data Tables (astropy.table)
  • Time and Dates (astropy.time)
  • Time Series (astropy.timeseries)
  • Astronomical Coordinate Systems (astropy.coordinates)
  • World Coordinate System (astropy.wcs)
  • Models and Fitting (astropy.modeling)
  • Uncertainties and Distributions (astropy.uncertainty)

Files, I/O, and Communication

  • Unified File Read/Write Interface
  • FITS File Handling (astropy.io.fits)
  • ASCII Tables (astropy.io.ascii)
  • VOTable XML Handling (astropy.io.votable)
  • Miscellaneous: HDF5, YAML, Parquet, pickle (astropy.io.misc)
  • SAMP (Simple Application Messaging Protocol) (astropy.samp)

Computations and utilities

  • Cosmological Calculations (astropy.cosmology)
  • Convolution and Filtering (astropy.convolution)
  • IERS data access (astropy.utils.iers)
  • Data Visualization (astropy.visualization)
  • Astrostatistics Tools (astropy.stats)

Nuts and bolts

  • Configuration System (astropy.config)
  • I/O Registry (astropy.io.registry)
  • Logging system
  • Python warnings system
  • Astropy Core Package Utilities (astropy.utils)
    • IERS data access (astropy.utils.iers)
    • Downloadable Data Management (astropy.utils.data)
    • Masked Values (astropy.utils.masked)
    • Reference/API
  • Astropy Glossary
  • User Guide
  • Reference/API
  • unbroadcast

unbroadcast#

astropy.utils.shapes.unbroadcast(array)[source]#

Given an array, return a new array that is the smallest subset of the original array that can be re-broadcasted back to the original array.

See https://stackoverflow.com/questions/40845769/un-broadcasting-numpy-arrays for more details.

previous

simplify_basic_index

next

NDArrayShapeMethods

Edit on GitHub

© Copyright 2011–2023, The Astropy Developers.

Created using Sphinx 7.2.6.

Built with the PyData Sphinx Theme 0.14.4.