If during the piv process the interrogation or search window size or distance is decreased, the velocity field has to be scaled to the new GridSpec.
piv.velocity_scaler.
VelocityUpscaler
(new_grid_spec, old_grid_spec)[source]¶Class for scaling the velocity field according to GridSpec
Initialization of the scaler.
The old and new grid specifications are loaded and a meshgrid according to the new grid is calculated.
Parameters: |
---|
After the setup the scaling is done by an other function.
VelocityUpscaler.
scale_field
(f)[source]¶Scaling of the field according to calculated meshgrid.
For the interpolation rectangular bivariate Splines are used. These are implemented from the scipy function RectBivariateSpline.
Parameters: | f – field to be interpolated |
---|---|
Returns: | field after interpolation |