code: def make_uhs(hmap, info):
      
      uhs = numpy.zeros(len(hmap), info['uhs_dt'])
      for p, poe in enumerate(info['poes']):
          for m, imt in enumerate(info['imtls']):
              if imt.startswith(('PGA', 'SA')):
                  uhs[str(poe)][imt] = hmap[:, m, p]
      return uhs
docs: Make Uniform Hazard Spectra curves for each location.
  
      :param hmap:
          array of shape (N, M, P)
      :param info:
          a dictionary with keys poes, imtls, uhs_dt
      :returns:
          a composite array containing uniform hazard spectra