Paparazzi UAS
v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
|
Public Member Functions | |
def | __init__ |
def | get_points |
def | get_wind |
Data Fields | |
data | |
grid_coordinates | |
grid_shape | |
Static Public Attributes | |
list | data = [] |
interpolator = None | |
boundsmax = None | |
boundsmin = None | |
Private Member Functions | |
def | _get_interpolator |
def | _slicyfy |
def | _get_var_values |
def | _apply_bounds |
Interpolation in space-time from mesoNH data over a grid. The functions valued on the grid are assumed to be periodic in the x and y axis (south->north and west->east) : f(x)=f(x+xmax-xmin) where [xmin,xmax] are the bounds on x of the mesoNH grid. Clipping is done on the z (height) and time axis : f(z)=f(min(max(z,zmin),zmax)) where [zmin,zmax] are the bound on z of the mesoNH grid. Two interpolation methods are currently supported : nearest neighbour and linear. Uses RegularGridInterpolator from scipy package.
Definition at line 49 of file mesonh_atmosphere.py.
def mesonh.mesonh_atmosphere.MesoNHAtmosphere.__init__ | ( | self, | |
files, | |||
tstep, | |||
tinit = 0 |
|||
) |
Definition at line 74 of file mesonh_atmosphere.py.
|
private |
Definition at line 126 of file mesonh_atmosphere.py.
References mesonh.mesonh_atmosphere.MesoNHAtmosphere.boundsmax, and mesonh.mesonh_atmosphere.MesoNHAtmosphere.boundsmin.
Referenced by mesonh.mesonh_atmosphere.MesoNHAtmosphere.get_points().
|
private |
Definition at line 106 of file mesonh_atmosphere.py.
References mesonh.mesonh_atmosphere.MesoNHAtmosphere._get_var_values(), and mesonh.mesonh_atmosphere.MesoNHAtmosphere._slicyfy().
Referenced by mesonh.mesonh_atmosphere.MesoNHAtmosphere.get_points().
|
private |
Definition at line 123 of file mesonh_atmosphere.py.
References MedianFilterInt.data, Hmc5843.data, Ms5611_I2c.data, actuators_mkk_v2_struct.data, Ms5611_Spi.data, data, Adxl345_I2c.data, Lis302dl_Spi.data, Adxl345_Spi.data, Ms2100.data, Ak8963.data, dc_shot_union.data, mesonh.mesonh_atmosphere.MesoNHAtmosphere.data, Hmc58xx.data, Ak8975.data, L3g4200.data, Itg3200.data, mora_status_union.data, MedianFilterFloat.data, ESC32_response.data, Ads1220.data, mt9v117_patch_t.data, BatMonBus.data, and BatMonBal.data.
Referenced by mesonh.mesonh_atmosphere.MesoNHAtmosphere._get_interpolator().
|
private |
Definition at line 112 of file mesonh_atmosphere.py.
References mesonh.mesonh_atmosphere.find_gt(), mesonh.mesonh_atmosphere.find_le(), and mesonh.mesonh_atmosphere.MesoNHAtmosphere.grid_coordinates.
Referenced by mesonh.mesonh_atmosphere.MesoNHAtmosphere._get_interpolator().
def mesonh.mesonh_atmosphere.MesoNHAtmosphere.get_points | ( | self, | |
points, | |||
var, | |||
method = 'nearest' |
|||
) |
Get value of variable on points Arguments: points: a ndarray containing the point coordinates on the last dimension var: the name of the variable in the mesoNH file(s) method: 'nearest' and 'linear' interpolation are currently supported
Definition at line 90 of file mesonh_atmosphere.py.
References mesonh.mesonh_atmosphere.MesoNHAtmosphere._apply_bounds(), mesonh.mesonh_atmosphere.MesoNHAtmosphere._get_interpolator(), and mesonh.mesonh_atmosphere.MesoNHAtmosphere.interpolator.
Referenced by mesonh.mesonh_atmosphere.MesoNHAtmosphere.get_wind().
def mesonh.mesonh_atmosphere.MesoNHAtmosphere.get_wind | ( | self, | |
points, | |||
method = 'nearest' |
|||
) |
Convenience method for getting 3D wind. See get_points.
Definition at line 142 of file mesonh_atmosphere.py.
References mesonh.mesonh_atmosphere.MesoNHAtmosphere.get_points().
|
static |
Definition at line 71 of file mesonh_atmosphere.py.
Referenced by mesonh.mesonh_atmosphere.MesoNHAtmosphere._apply_bounds().
|
static |
Definition at line 72 of file mesonh_atmosphere.py.
Referenced by mesonh.mesonh_atmosphere.MesoNHAtmosphere._apply_bounds().
|
static |
Definition at line 68 of file mesonh_atmosphere.py.
Referenced by mesonh.mesonh_atmosphere.MesoNHAtmosphere._get_var_values().
mesonh.mesonh_atmosphere.MesoNHAtmosphere.data |
Definition at line 76 of file mesonh_atmosphere.py.
mesonh.mesonh_atmosphere.MesoNHAtmosphere.grid_coordinates |
Definition at line 87 of file mesonh_atmosphere.py.
Referenced by mesonh.mesonh_atmosphere.MesoNHAtmosphere._slicyfy().
mesonh.mesonh_atmosphere.MesoNHAtmosphere.grid_shape |
Definition at line 88 of file mesonh_atmosphere.py.
|
static |
Definition at line 70 of file mesonh_atmosphere.py.
Referenced by mesonh.mesonh_atmosphere.MesoNHAtmosphere.get_points().