sup3r.utilities.utilities
Miscellaneous utilities for computing features, preparing training data, timing functions, etc
Functions
|
Squared Brunt Vaisala Frequency |
|
If running on windows we need to replace backslashes with double backslashes so paths can be parsed correctly with safe_open_json |
|
Temporal coarsening for daily average climate change data. |
|
Finds a random temporal slice from data starting at midnight |
|
Estimate max number of workers based on available memory |
|
Expand path(s) |
|
Average neighboring values in an array. |
|
Generate random string with given length. |
|
Get array slices of corresponding chunk size |
|
Get the DataHandler class. |
|
Method to get shape of raster_index |
|
Get data source type |
|
Get the name of the time dimension in the given file. |
|
Get wrf date range for cleaner log output. |
|
Formula for the gradient richardson number - related to the bouyant production or consumption of turbulence divided by the shear production of turbulence. |
Get file path which matches fp while ignoring case |
|
|
Inverse Monin - Obukhov Length |
|
Potential temperature of fluid at pressure P and temperature T |
|
Transform u and v back to windspeed and winddirection |
|
Coarsen lat_lon according to s_enhance resolution |
|
Fill any NaN values in an np.ndarray from the nearest non-nan values. |
|
Convert np.bytes_ times to DatetimeIndex |
|
Takes a 5D array and reduces the axis=3 temporal dim to daylight hours. |
|
Finds a random sample during daylight hours of a day. |
|
A simple wrapper on the pd.date_range() method that handles the closed vs. |
|
Potential temperature of fluid at pressure P and temperature T |
|
Potential temp average calculation |
|
Potential temp difference calculation |
|
Area of circular section between two heights |
|
Calculate rotor equivalent wind speed. |
|
Method to round elements in an array or list. |
|
Smooth data using a gaussian filter |
|
Coarsen data according to s_enhance resolution |
|
Simple enhancing according to s_enhance resolution |
|
Spatiotemporal bilinear interpolation for low resolution field on a regular grid. |
|
Coarsen data according to t_enhance resolution |
|
Upsample data according to t_enhance resolution |
|
Transform windspeed/direction to u and v and align u and v with grid |
|
Extracts a sample cut from data. |
|
Extracts a temporal slice from data. |
|
Returns the vorticity field. |
|
Extracts a temporal slice from data with selection weighted based on provided weights |
|
Extracts a temporal slice from data with selection weighted based on provided weights |
|
Windspeed log profile. |
Classes
|
Timer class for timing and storing function call times. |