Usage Guide for inpaint_spacetime.py¶
Use this script to fill in the missing values after using the script filter_outliers_hampel_spacetime.py
to impute (inpaint) missing data from time series data.
The script inpaint_spacetime.py
reads a CSV file containing shoreline data and applies biharmonic inpainting to fill missing values in the data matrix. The processed data is saved to a new CSV file, and a comparison plot of the original and inpainted data matrices is generated and saved.
Need Help¶
To view the help documentation for the script, use the following command:
1 |
|
Command line arguments¶
-f
: Sets the file (csv) to be analyzed
More details
The csv format file shoule contain shoreline positions in each cell, with rows as time and columns as transects-p
: If 1, make a plot
More details
A flag to make (or suppress) a plotExamples¶
Example #1: Basic Usage¶
This example inpaints the missing values from the raw_transect_time_series_nooutliers.csv
file using the default parameters:
1 |
|
Here's an example screenshot
The (optional) plot is created. This shows the data as a 2d matrix of shoreline positions as a function of time and transect. This plot is purely for QA/QC purposes and is not intended to be a publication ready figure. This merely shows the data, as a convenience: