nwm_eval.utils#
Utility functions for the NGEN verification package.
Functions
Check if the required columns are present in the file. |
|
Clean the data by replacing inf values with NaN and dropping rows with NaN in the specified column. |
|
Recursively convert Enum values to their .value (string) for YAML serialization. |
|
Recursively convert Path objects to strings in dicts/lists. |
|
Create a sequence of timestamps between start and end dates with specified frequency and hours. |
|
Expand a string with list placeholders using Cartesian product. |
|
Flatten a nested dictionary. |
|
Get the key from a dictionary given a value. |
|
Determine the number of workers to use for parallel jobs dynamically based on system resources available. |
|
Read data from a csv or parquet file. |
|
Automatically read a parquet file as a DataFrame or GeoDataFrame. |
|
Recursively substitute placeholders in nested structures. |
|
Remove nulls. |
|
Save data to disk in an appropriate format based on its type and file extension. |