CCI-Tools / cate

ESA CCI Toolbox (Cate)
MIT License
50 stars 15 forks source link

trend_line_parameter_request #692

Open Evadzi opened 6 years ago

Evadzi commented 6 years ago

@JanisGailis Is it possible to have one additional parameter for the 'plot' operation to display trend (line ) for time series plot?

this parameter should also be created/enabled for the 'create time series plot from selected placemark' feature for the highlighted variable in the Cate's Workspace area.

JanisGailis commented 6 years ago

Do you mean doing a linear regression, or just adding a line y = ax + b, where a and b can be defined? What do you mean by trend value?

I think it's possible only to add this for the time-series plot, as plot() is a very generic operation that works on all kinds of data.

Evadzi commented 6 years ago

@JanisGailis Thank you. yes for now the line y=ax+b that best fits a data set in the least squares sense is okay. In the future with regards to the plot() operator, Is it possible to have option for multiple plots?

JanisGailis commented 6 years ago

That is a question for @forman. If I remember correctly he researched that option and it was not trivial (impossible) to implement with the current plotting library.

forman commented 6 years ago

Yes, that's a very reasonable if not mandatory requirement for any data analysis. It should become part at least of the scatter plot. I don't remember the actual problem at that time anymore, but it should be easy to do in matplotlib, see here for example.