Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QDataSet BUNDLE dependency ambiguity #107

Open
jbfaden opened this issue Apr 30, 2024 · 1 comment
Open

QDataSet BUNDLE dependency ambiguity #107

jbfaden opened this issue Apr 30, 2024 · 1 comment

Comments

@jbfaden
Copy link
Member

jbfaden commented Apr 30, 2024

QDataSet's bundle is used to make a set of correlated datasets (Juno density, fce, bmag, mlt) and also a color plot of X,Y → Z. When rendering the first one, we would like a stack of traces vs time. When rendering the second, we would like a color scatter plot. The two datasets are so similar in form that one is often mistaken for the other.

When bundling three rank 1 time series datasets, I was expecting to get the stack of three traces against time, and I forgot that you must manually assert the DEPEND_0 for the bundle to get this behavior.

I'm not sure if this is a documentation issue, or if there should be a new method which is more deliberate. It's also tempting to have the bundle command add the DEPEND_0 property automatically when each dataset has the same DEPEND_0, but I'm sure that would break some people's scripts. This ticket is to address the ambiguity.

BXYZ= getDataSet('vap+hapi:https://cdaweb.gsfc.nasa.gov/hapi?id=AC_K0_MFI&timerange=2024-04-20&parameters=Time,BGSEc')
BX= unbundle(BXYZ,0)
BY= unbundle(BXYZ,1)
BZ= unbundle(BXYZ,2)

ds= bundle( BX, BY, BZ )

plot( 0, ds, ytitle='color scatter' )

ds= bundle( BX, BY, BZ )
ds= dataset( xtags(BX),ds )

plot( 1, ds, ytitle='time series bundle' )
jbfaden added a commit to autoplot/dev that referenced this issue Apr 30, 2024
@jbfaden
Copy link
Member Author

jbfaden commented Apr 30, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant