das-developers / das2java

The original das2 library. Provides interactive publication-ready 2-D plotting
https://das2.org
GNU Lesser General Public License v3.0
4 stars 0 forks source link

ambiguity between join of rank 1 datasets, rank 2 table dataset, and waveform dataset #95

Open jbfaden opened 10 months ago

jbfaden commented 10 months ago

I find that Autoplot is getting confused when a rank 2 join of rank 1 datasets is loaded, where I was intending for it to plot this as a spectrogram. I realize now that a rank 2 waveform dataset has almost the same appearance as well. I was hoping I could add a switch to Autoplot's aggregation code and have it load each rank 1 slice into a table for plotting.

Rank 2 join of rank 1 datasets

A "join" dimension is just the "array of" operation. Clients should do what they do with each rank 1 dataset, but for all datasets. A Join dataset should have a "JOIN_0" property.

Rank 2 table

A rank 2 table is a table with DEPEND_0 and DEPEND_1. In this case, there is no DEPEND_1, and I was hoping there would be an implicit DEPEND_1.

Rank 2 waveform

A rank 2 waveform is just a special case of Rank 2 table, where offsets for DEPEND_1 are added to DEPEND_0 to locate any point in the units of DEPEND_0. Note this means there can be no rank 2 table where the units of DEPEND_1 are offsets of the units of DEPEND_0. (e.g. seconds and us2000)