class_docstr: PAR/REC header
class_docstr_tok: ["PAR\/REC","header"]
docstr: Convert PAR parameters to NIFTI1 format
docstr_tok: ["Convert","PAR","parameters","to","NIFTI1","format"]
code: def as_analyze_map(self):
      """Convert PAR parameters to NIFTI1 format"""
      # Entries in the dict correspond to the parameters found in
      # the NIfTI1 header, specifically in nifti1.py `header_dtd` defs.
      # Here we set the parameters we can to simplify PAR/REC
      # to NIfTI conversion.
      descr = (
          f"{self.general_info['exam_name']};"
          f"{self.general_info['patient_name']};"
          f"{self.general_info['exam_date'].replace(' ', '')};"
          f"{self.general_info['protocol_name']}"
      )[:80]
      is_fmri = self.general_info["max_dynamics"] > 1
      # PAR/REC uses msec, but in _calc_zooms we convert to sec
      t = "sec" if is_fmri else "unknown"
      xyzt_units = unit_codes["mm"] + unit_codes[t]
      return dict(descr=descr, xyzt_units=xyzt_units)
  
imports: import re
  import warnings
  from collections import OrderedDict
  from copy import deepcopy
  from io import StringIO
  from locale import getpreferredencoding
  import numpy
  from .affines import apply_affine, dot_reduce, from_matvec
  from .eulerangles import euler2mat
  from .fileslice import fileslice, strided_scalar
  from .nifti1 import unit_codes
  from .openers import ImageOpener
  from .spatialimages import SpatialHeader, SpatialImage
  from .volumeutils import Recoder, array_from_file
label_desc: Use image node_id 5 for calling the PARRECHeader obj's underlying member method code with example usage: obj.as_analyze_map() and returns: dict