{ } Raw JSON

bundles / astropy latest / astropy / io / fits / hdu / base / _BaseHDU / _writedata_direct_copy

function

astropy.io.fits.hdu.base:_BaseHDU._writedata_direct_copy

source: /astropy/io/fits/hdu/base.py :689

Signature

def   _writedata_direct_copy ( self fileobj )

Summary

Copies the data directly from one file/buffer to the new file.

Extended Summary

For now this is handled by loading the raw data from the existing data (including any padding) via a memory map or from an already in-memory buffer and using Numpy's existing file-writing facilities to write to the new file.

If this proves too slow a more direct approach may be used.

Aliases

  • astropy.io.fits.convenience._BaseHDU._writedata_direct_copy