pyopia.statistics#
Module containing tools for handling particle image statistics after processing
Functions
|
Calculates the most likely tensorflow classification and adds best guesses to stats dataframe. |
|
If you have a depth time-series, use this function to find the depth of each line in stats |
|
Eye-candy function for normalising the image brightness |
|
count the number of raw images used to generate stats |
|
Filters stats file based on whether the particles are within a rectangle specified by crop_stats. |
|
Calculate the d50 from the stats and settings |
|
Calculate d50 from a volume distribution |
|
Eye-candy function for exploding the contrast of a particle iamge (roi) |
|
Extracts the stats data from within the last number of seconds specified by window_size. |
|
Return statistics of the nth largest particle |
|
Return statistics of the nth longest particle |
|
Creates a new stats dataframe containing only oil, based on some thresholds on calculated statistics |
|
Generates a list of filenames suitable for making montages with |
|
Calculates the junge slope from a correctly-scale number distribution (number per micron per litre must be the units of nd) |
|
calculate the sample volume of one image |
Retrieve log-spaced size bins for PSD analysis by doing the same binning as LISST-100x, but with 53 size bins |
|
|
Makes nice looking montage from a directory of extracted particle images |
|
Makes a dataframe of time-series volume distribution and d50 similar to Sequoia LISST-100 output, and exportable to things like Excel or csv. |
|
Calculate the number concentration from the count and sample volume |
|
Calculates important summary statistics from a stats DataFrame |
|
Calculate number distirbution from stats units are number per bin per sample volume |
|
Calcualte a scaled number distribution from stats. |
|
Rescale a number distribution from number per bin per sample volume to number per micron per litre. |
|
Returns an image from the export_name string in the -STATS.h5 file |
|
prints metadata from an exported hdf5 file created from silcam process |
|
Convert old STATS.csv file to a STATS.h5 file |
|
Chops a STATS.h5 file given a start and end time |
|
Calculate volume concentration from particle count |
|
Calculate volume distribution from stats units of miro-litres per sample volume |
|
calculate number concentration from volume distribution |
|
convert volume distribution to number distribution |
Classes
|
PyOpia pipeline-compatible class for computing per-class number concentrations (in numbers/litre) for each processed image, and appending the result as a timestamp-indexed row to a CSV file. |