Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Public Member Functions | |
def | __init__ (self, files, tstep, tinit=0) |
def | get_points (self, points, var, method='nearest') |
def | get_wind (self, points, method='nearest') |
Data Fields | |
data | |
grid_coordinates | |
grid_shape | |
Static Public Attributes | |
list | data = [] |
interpolator = None | |
boundsmax = None | |
boundsmin = None | |
Private Member Functions | |
def | _get_interpolator (self, bounds, var, method="nearest") |
def | _slicyfy (self, bounds) |
def | _get_var_values (self, var, idx=Ellipsis) |
def | _apply_bounds (self, point) |
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 mt9v117_patch_t.data, faulhaber_parser_t.data, ESC32_response.data, MedianFilterInt.data, MedianFilterFloat.data, rawData.data, BatMonBus.data, BatMonBal.data, crtp_message_t.data, syslink_message_t.data, dc_shot_union.data, mora_status_union.data, telemetrySequenceMarker_s.data, telemetryData_s.data, telemetryBuffer_s.data, telemetryPayload_s.data, smartPortPayload_s.data, Ads1220.data, Adxl345_I2c.data, Adxl345_Spi.data, Ak8963.data, Ak8975.data, Hmc5843.data, Hmc58xx.data, IST8310.data, Itg3200.data, L3g4200.data, Lis302dl_Spi.data, Lis3mdl.data, Lps25h_I2c.data, Ms2100.data, Ms5611_I2c.data, Ms5611_Spi.data, Qmc5883l.data, Rm3100.data, and mesonh.mesonh_atmosphere.MesoNHAtmosphere.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.
Referenced by mesonh.mesonh_atmosphere.MesoNHAtmosphere._get_var_values().
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().