class_docstr: Class for MGH format header
  
  The header also consists of the footer data which MGH places after the data
  chunk.
class_docstr_tok: ["Class","for","MGH","format","header","The","header","also","consists","of","the","footer","data","which","MGH","places","after","the","data","chunk","."]
docstr: Get zooms from header
  
  Returns the spacing of voxels in the x, y, and z dimensions.
  For four-dimensional files, a fourth zoom is included, equal to the
  repetition time (TR) in ms (see `The MGH/MGZ Volume Format
  <mghformat>`_).
  
  To access only the spatial zooms, use `hdr['delta']`.
  
  Returns
  -------
  z : tuple
     tuple of header zoom values
  
  .. _mghformat: https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MghFormat#line-82
docstr_tok: ["Get","zooms","from","header","Returns","the","spacing","of","voxels","in","the","x",",","y",",","and","z","dimensions",".","For","four-dimensional","files",",","a","fourth","zoom","is","included",",","equal","to","the","repetition","time","(","TR",")","in","ms","(","see","`","The","MGH\/MGZ","Volume","Format","<","mghformat",">","`","_",")",".","To","access","only","the","spatial","zooms",",","use","`","hdr","[","'delta","'","]","`",".","Returns","--","--","--","-","z",":","tuple","tuple","of","header","zoom","values","..","_mghformat",":","https",":","\/\/surfer.nmr.mgh.harvard.edu\/fswiki\/FsTutorial\/MghFormat","#","line-82"]
code: def get_zooms(self):
      """Get zooms from header
  
      Returns the spacing of voxels in the x, y, and z dimensions.
      For four-dimensional files, a fourth zoom is included, equal to the
      repetition time (TR) in ms (see `The MGH/MGZ Volume Format
      <mghformat>`_).
  
      To access only the spatial zooms, use `hdr['delta']`.
  
      Returns
      -------
      z : tuple
         tuple of header zoom values
  
      .. _mghformat: https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MghFormat#line-82
      """
      # Do not return time zoom (TR) if 3D image
      tzoom = (self["tr"],) if self._ndims() > 3 else ()
      return tuple(self._structarr["delta"]) + tzoom
  
imports: from os.path import splitext
  import numpy
  from ..affines import from_matvec, voxel_sizes
  from ..arrayproxy import ArrayProxy, reshape_dataobj
  from ..batteryrunners import BatteryRunner, Report
  from ..filebasedimages import SerializableImage
  from ..fileholders import FileHolder
  from ..filename_parser import _stringify_path
  from ..openers import ImageOpener
  from ..spatialimages import HeaderDataError, SpatialHeader, SpatialImage
  from ..volumeutils import Recoder, array_from_file, array_to_file, endian_codes
  from ..wrapstruct import LabeledWrapStruct
label_desc: Use image node_id 13 for calling the MGHHeader obj's underlying member method code with example usage: obj.get_zooms() and returns: unknown