insarviz.PlotModel module
- class insarviz.PlotModel.PlotModel(loader, nMaxPoints)[source]
Bases:
PyQt5.QtCore.QObject
Model for plots get and transform date/band values (timestamps, datetime or int) get and prepare data for plots (temporal plot = time/band vs displacement;
spatial plot = distance along trace vs displacement)
- loaderQObject
Loader used to extract the dataset from a file
None.
- on_data_loaded()[source]
called by MainWindow when loading new data format date/band values from loaded dataset
None.
- update_pointer_values()[source]
load current pointer data (for plots) launched by mouseMoveEvent and MousePressEvent on Map
None.
- update_ref_values(ref_pointers)[source]
update values to be used as ref for plotting data if one px selected, its data is the ref if more than one px selected (rectangle), mean of all px data is ref
- ref_pointerslist
list of tuple (i, j) coordinates of ref point(s).
None.
- update_values(profile_points=None)[source]
update values for plots : if interactive tool selected:
displacement corresponding to current pointer position;
- if points:
all selected positions and corresponding data for temporal and spatial plots; if number of selected points exceedes limit, earliest selected positions are erased;
- if profile:
if number of points between points selected as start and end of profile is under limit, all selected positions and corresponding data for temporal and spatial plots if is over the limit, downsample (random) within those
None.