In [11]:
from pivpy import io
from pivpy import graphics
import xarray as xr
import numpy as np

import pkg_resources as pkg

In [12]:
# read the arrays
filename = pkg.resource_filename('pivpy','data/VC7/2Ca.VC7')
data = io.load_vc7(filename)

In [13]:
graphics.quiver(data,arrScale=10)


Warning: function for a single frame, using the first frame, supply data.isel(t=N)
Out[13]:
(<Figure size 432x288 with 1 Axes>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f1a20df5550>)

In [15]:
# we created a shortcut to the above cells in pivpy.io
data = io.load_vc7( pkg.resource_filename('pivpy','data/VC7/2Cb.VC7'))

In [16]:
graphics.quiver(data,arrScale=10)


Warning: function for a single frame, using the first frame, supply data.isel(t=N)
Out[16]:
(<Figure size 432x288 with 1 Axes>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f1a20208a90>)

In [ ]: