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 – sequence of datetime
  • y – variable to plot
  • mpl_cmap – matplotlib colormap
yatsm.cli.pixel.plot_TS(dates, y, seasons)[source]

Create a standard timeseries plot

Parameters:
  • dates – sequence of datetime
  • y – variable to plot
  • seasons – 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 – sequence of datetime
  • y – variable to plot
  • mpl_cmap – matplotlib colormap
  • reps – 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 – plot results for this band
  • cfg – YATSM configuration dictionary
  • model – fitted YATSM timeseries model
  • design_info – patsy design information
  • result_prefix – Prefix to ‘coef’ and ‘rmse’
  • plot_type – type of plot to add results to (TS, DOY, or VAL)
yatsm.cli.pixel.trawl_replace_keys(d, key, value, s='')[source]

Return modified dictionary d