In order to maximize the work done, an effort to make available also the generic functions is carried out with this script.
Most of them follow a similar structure:
$ python generic.py -o [operation] -S [values]
In most of the cases
[values] is a string which contains a list of values separated by a character
[sep], becomming the value as:
[values]=[val1][sep][val2][sep][...[valN]]
One can obtain all the list of operations and their instructions by demanding to the script:
$ python generic.py -o list_operations
For almost all operations, one can obtain all the help of a specific operation by:
$ python generic.py -o [operation] -S h
One should be able to obtain an example of execution by
$ cat generic.py | grep [operation] | grep 'e.g.'
Available operations:
- coincident_CFtimes: Function to make coincident times for two different sets of CFtimes
- count_cond: Function to count values of a variable which attain a condition
- datetimeStr_conversion: Function to transform a string date to an another date object
- grid_combinations: Function to provide all the possible grid points combination for a given pair of values
- x,y= pair of grid points
- interpolate_locs: Function to provide interpolate locations on a given axis
- PolyArea: Function to compute the area of the polygon following 'Shoelace formula'
- radial_points: Function to provide a number of grid point positions for a given angle
- radius_dist: Function to generate a matrix with the distance at a given point
- rmNOnum: Removing from a string all that characters which are not numbers
- running_mean: Function to compute a running mean of a series of values
- significant_decomposition: Function to decompose a given number by its signifcant potencies
- squared_radial: Function to provide the series of radii as composite of pairs (x,y) of gid cells
- Npt= largest amount of grid points on x and y directions
- table_tex_file: Function to write into a file a LaTeX tabular from a table of values
- unitsDate: Function to know how many units of time are from a given pair of dates
- variables_values: Function to provide values to plot the different variables values from ASCII file
- wdismean: Function to compute the mean value weighted to its 4 distances