diff --git a/bugs/2024/20240429/demoBundleBMagBug.jy b/bugs/2024/20240429/demoBundleBMagBug.jy new file mode 100644 index 00000000..a341e128 --- /dev/null +++ b/bugs/2024/20240429/demoBundleBMagBug.jy @@ -0,0 +1,25 @@ +setScriptDescription('''Autoplot never exposes bundled data +xtags, so you need to explicitly add them in. I believe +it's because if I automatically look for DEPEND_0 on any of +the bundled datasets, then sometimes a variable intended for +the X values is ignored. There really needs to be something +that disambiguates this.''') + +# here is where it is not intended to assert a depenency. +BXYZ= getDataSet('vap+hapi:https://cdaweb.gsfc.nasa.gov/hapi?id=AC_K0_MFI&timerange=2024-04-20¶meters=Time,BGSEc') +BX= unbundle(BXYZ,0) +BY= unbundle(BXYZ,1) +BZ= unbundle(BXYZ,2) + +ds= bundle( BX, BY, BZ ) + +print ds +print xtags(ds) +print xtags(unbundle(ds,0)) + +plot( 0, ds ) + +ds= bundle( BX, BY, BZ ) +ds= dataset( xtags(BX),ds ) + +plot( 1, ds )