Usage Guide for detrend_relstart_transect_timeseries.py¶
Use this script to detrend each transect relative to the initial condition. The initial condition is defined by the number, N
, or data points to use at the start. Must be 1 or more. Typically this number would be less than 20.
The script reads a CSV file containing shoreline data and detrends each based on the mean of the first N
data points on that transect. The processed data is saved to a new CSV file, and a comparison plot of the original and filtered 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 should 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 detrends the values from the transect_time_series_coastsat_inpainted.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: