yatsm.cli.pixel module¶
Command line interface for running YATSM algorithms on individual pixels
-
yatsm.cli.pixel.
plot_DOY
(dates, y, mpl_cmap)[source]¶ Create a DOY plot
Parameters: - dates (iterable) – sequence of datetime
- y (np.ndarray) – variable to plot
- mpl_cmap (colormap) – matplotlib colormap
-
yatsm.cli.pixel.
plot_TS
(dates, y, seasons)[source]¶ Create a standard timeseries plot
Parameters: - dates (iterable) – sequence of datetime
- y (np.ndarray) – variable to plot
- seasons (bool) – Plot seasonal symbology
-
yatsm.cli.pixel.
plot_VAL
(dates, y, mpl_cmap, reps=2)[source]¶ Create a “Valerie Pasquarella” plot (repeated DOY plot)
Parameters: - dates (iterable) – sequence of datetime
- y (np.ndarray) – variable to plot
- mpl_cmap (colormap) – matplotlib colormap
- reps (int, optional) – number of additional repetitions
-
yatsm.cli.pixel.
plot_results
(band, cfg, model, design_info, result_prefix='', plot_type='TS')[source]¶ Plot model results
Parameters: - band (int) – plot results for this band
- cfg (dict) – YATSM configuration dictionary
- model (YATSM model) – fitted YATSM timeseries model
- design_info (patsy.DesignInfo) – patsy design information
- result_prefix (str) – Prefix to ‘coef’ and ‘rmse’
- plot_type (str) – type of plot to add results to (TS, DOY, or VAL)