code: def to_pascal(arr, is_dp=False):
      
      threshold = 400 if is_dp else 1200
      if np.max(np.abs(arr)) < threshold:
          warn_msg = "Conversion applied: hPa -> Pa to array: {}".format(arr)
          logging.debug(warn_msg)
          return arr*100.
      return arr
docs: Force data with units either hPa or Pa to be in Pa.