dctools.utilities.misc_utils
Miscellaneous utility functions.
Functions
|
Add Gaussian noise to a NumPy array to achieve a desired SNR (in decibels). |
|
Simplified version that handles special types better. |
Get the user home directory path in a cross-platform way. |
|
|
Return a list of datetime.datetime objects for each day between dates. |
|
Make an object JSON serializable. |
Convert datetime columns in a DataFrame to ISO format strings. |
|
|
Recursively replace NaN values with None in an object (dict, list, or scalar). |
|
Convert object to JSON-serializable form efficiently for large structures. |
|
Serialize a complex object into JSON and save to file. |
|
Recursively converts all float64 data to float32 in xarray objects or dicts. |
|
Recursively apply a function to all elements of a nested structure in place. |