tropy.analysis_tools¶
tropy.analysis_tools.grid_and_interpolation¶
Given georeference of two grids in lon and lat, an index is built to map a field on grid 1 to grid 2. |
|
Smoothing filter depending on isoline curvature. |
|
Makes a cutout of a categorial field c for an object of class / number nc. |
|
Cuts out a field based on center pix index and box size. |
|
Cuts out a field or a list of similar fields given row and column slices. |
|
Given a point p the nearest grid point is returned. |
|
Returns an index set for a n-dim numpy array given an index i which points to a position within the same but flattened array. |
|
Given a sequence of points (or just one) a field (2d or 3d) given a grid is interpolated to the new positions. |
|
Calculates difference of a field at adjacent levels. |
|
Transformation between longitude and latitude and local Cartesian coordinates in west-east direction (x) and south-north direction (y). |
|
Applies a centered version of ll2xy. |
|
Calculates the layer mean of a field. |
|
Adds egde region to 2d data field. |
|
This simple routine makes an 2d index set for given row and column number of a 2d field. |
|
Makes a horizontal - vertical cut through a 3d field. |
|
Converts an mid-point based grid vector into an edge-based grid vector. |
|
Given a region of ((lon1,lon2),(lat1, lat2)) the routine provides a slicing ((row1, row2), (col1, col2)) than accomodates the region. |
|
Do nearest nearbor remapping on a simple equi-distant local cartesian coordiante grid. |
|
Approximates the grid box area of a lon - lat grid. |
|
Smoothes a curve with smooting spline. |
|
Performs tube cutout with given index set. |
|
Transformation between local Cartesian coordinates in west-east direction (x) and south-north direction (y) and longitude and latitude. |
tropy.analysis_tools.optical_flow¶
|
|
|
|
|
|
|
|
|
|
|
|
|
tropy.analysis_tools.segmentation¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tropy.analysis_tools.statistics¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tropy.analysis_tools.thermodynamic_variables¶
Calculates absolute humidity. |
|
Converts water and the vapor mass fraction to condensed water and vapor mixing ratio. |
|
Calculates dew point temperature after Markowski book p 13 eq (2.25) |
|
Calculates dry air density. |
|
Calculates dry air potential temperature. |
|
Calculates equivalent potential temperature. |
|
Converts relative humidity H into mixing ratio r. |
|
Calculates lifting condensation level temperature. |
|
Calculates gas constant of moist air. |
|
Calculates moist air potential temperature. |
|
Calculates specific heat at constant pressure of moist air. |
|
Calculates relative humidity. |
|
Calculates saturation water vapor pressure over ice. |
|
Calculates saturation water vapor pressure after Bolton (1980) MWR 108, p.1046, eq. |
|
Calculates specific humidity. |
|
Sets some thermodynamic constants. |
|
Calculates total density of moist air with hydrometeors. |
|
Converts water mass fraction to condensed water mixing ratio. |
|
Calculates water vapor pressure. |