code: def create_frvect(timeseries):
      
      # create timing dimension
      dims = frameCPP.Dimension(
          timeseries.size, timeseries.dx.value,
          str(timeseries.dx.unit), 0)
      # create FrVect
      vect = frameCPP.FrVect(
          timeseries.name or '', FRVECT_TYPE_FROM_NUMPY[timeseries.dtype.type],
          1, dims, str(timeseries.unit))
      # populate FrVect and return
      vect.GetDataArray()[:] = numpy.require(timeseries.value,
                                             requirements=['C'])
      return vect
docs: Create a `~frameCPP.FrVect` from a `TimeSeries`
  
      This method is primarily designed to make writing data to GWF files a
      bit easier.
  
      Parameters
      ----------
      timeseries : `TimeSeries`
          the input `TimeSeries`
  
      Returns
      -------
      frvect : `~frameCPP.FrVect`
          the output `FrVect`