aerosandbox.tools.webplotdigitizer_reader ========================================= .. py:module:: aerosandbox.tools.webplotdigitizer_reader .. autoapi-nested-parse:: A series of utilities for working with CSV data extracted from WebPlotDigitizer. https://automeris.io/WebPlotDigitizer/ https://github.com/ankitrohatgi/WebPlotDigitizer Functions --------- .. autoapisummary:: aerosandbox.tools.webplotdigitizer_reader.string_to_float aerosandbox.tools.webplotdigitizer_reader.remove_nan_rows aerosandbox.tools.webplotdigitizer_reader.read_webplotdigitizer_csv Module Contents --------------- .. py:function:: string_to_float(s) Converts a string input to a float. If not possible, returns NaN. .. py:function:: remove_nan_rows(a) Removes any rows in a 2D ndarray where any of the entries are NaN. .. py:function:: read_webplotdigitizer_csv(filename) Reads a CSV file produced by WebPlotDigitizer (https://automeris.io/WebPlotDigitizer/). If there's only one data series, produces a Dict with key "data" and value 2D ndarray. If there are multiple data series, produces a Dict with keys of the names and values of 2D ndarrays. 2D ndarrays are sorted by their X-values before being returned. :param filename: Filename, as a string or pathlib Path, or equivalent. Returns: A dictionary where keys are series names and values are data points.