2. Data Frame toolbox (Auxiliary functions)¶
2.1. Data-Frame tools module¶
This is the main toolbox designed to aid main processsing the Mixed-layer height data frames through the use of the Python Module Pandas.
-
dftools.
ut_5tout_6
(df)[source]¶ Convert times in UTC-5 to UTC-6 and make database time-homogeneus.
Parameters
- df: pandas.dataframe
- Pandas Data-Frame object containing a datetime index and columns of MLH.
Return type: df pandas dataframe See Also
mlhtodf.
-
dftools.
minutes
(df, odf, show, rmean, save, name, wstd, c)[source]¶ Plot mean diurnal evolution of MLH
Parameters
- df: pandas.dataframe
- Pandas Data-Frame object containing a datetime index and columns of MLH.
- odf: pandas.dataframe
- Second Pandas Data-Frame object containing a datetime index and columns of MLH if anomaly is to be plotted.
- show: Boolean
- True or False if you wish the plot to be shown.
- rmean: Boolean
- True or False if you wish to see the plot smoothed by our own function of runnin mean runningMeanFast.
- save:Boolean
- True or False if you wish to save the plot.
- name:str
- String of saved plot
- wstd:Boolean
- True or False if intention is to plot standard deviaiton and not mean.
- c:string
- Color string: choose from colors
Return type: df pandas dataframe See Also
bsicplot.
-
dftools.
bsicplot
(titles, y, tvec, show, save, name, ylabel, c)[source]¶ Basic plot function for a 24-hr plot
Parameters
- titles: string
- String for title of plot
- y: np.array
- Array to plot
- tvec:np.array
- Time-vector.
- show: Boolean
- True or False if you wish the plot to be shown.
- rmean: Boolean
- True or False if you wish to see the plot smoothed by our own function of runnin mean runningMeanFast.
- save:Boolean
- True or False if you wish to save the plot.
- name:str
- String of saved plot
- ylabel:string
- Label of y-axis.
- c:string
- Color string: choose from colors
Return type: df pandas dataframe See Also
minutes.